Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(548)

Side by Side Diff: ppapi/ppapi_internal.gyp

Issue 10828023: PPAPI/NaCl: Make NaClIPCAdapter transfer handles more generally (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: re-add gyp files Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/ppapi_host.gypi ('k') | ppapi/ppapi_ipc.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 { 5 {
6 'variables': { 6 'variables': {
7 'chromium_code': 1, # Use higher warning level. 7 'chromium_code': 1, # Use higher warning level.
8 }, 8 },
9 'target_defaults': { 9 'target_defaults': {
10 'conditions': [ 10 'conditions': [
11 # Linux shared libraries should always be built -fPIC. 11 # Linux shared libraries should always be built -fPIC.
12 # 12 #
13 # TODO(ajwong): For internal pepper plugins, which are statically linked 13 # TODO(ajwong): For internal pepper plugins, which are statically linked
14 # into chrome, do we want to build w/o -fPIC? If so, how can we express 14 # into chrome, do we want to build w/o -fPIC? If so, how can we express
15 # that in the build system? 15 # that in the build system?
16 ['os_posix==1 and OS!="android" and OS!="mac"', { 16 ['os_posix==1 and OS!="android" and OS!="mac"', {
17 'cflags': ['-fPIC', '-fvisibility=hidden'], 17 'cflags': ['-fPIC', '-fvisibility=hidden'],
18 18
19 # This is needed to make the Linux shlib build happy. Without this, 19 # This is needed to make the Linux shlib build happy. Without this,
20 # -fvisibility=hidden gets stripped by the exclusion in common.gypi 20 # -fvisibility=hidden gets stripped by the exclusion in common.gypi
21 # that is triggered when a shared library build is specified. 21 # that is triggered when a shared library build is specified.
22 'cflags/': [['include', '^-fvisibility=hidden$']], 22 'cflags/': [['include', '^-fvisibility=hidden$']],
23 }], 23 }],
24 ], 24 ],
25 }, 25 },
26 'includes': [ 26 'includes': [
27 'ppapi_sources.gypi', 27 'ppapi_sources.gypi',
28 'ppapi_host.gypi', 28 'ppapi_host.gypi',
29 'ppapi_ipc.gypi',
29 'ppapi_proxy.gypi', 30 'ppapi_proxy.gypi',
30 'ppapi_shared.gypi', 31 'ppapi_shared.gypi',
31 'ppapi_tests.gypi', 32 'ppapi_tests.gypi',
32 ], 33 ],
33 'targets': [ 34 'targets': [
34 { 35 {
35 'target_name': 'ppapi_shared', 36 'target_name': 'ppapi_shared',
36 'type': '<(component)', 37 'type': '<(component)',
37 'variables': { 38 'variables': {
39 # Set the ppapi_shared_target variable, so that we will pull in the
40 # sources from ppapi_shared.gypi (and only from there). We follow the
41 # same pattern for the other targets defined within this file.
38 'ppapi_shared_target': 1, 42 'ppapi_shared_target': 1,
39 }, 43 },
40 'dependencies': [ 44 'dependencies': [
41 'ppapi.gyp:ppapi_c', 45 'ppapi.gyp:ppapi_c',
42 '../base/base.gyp:base', 46 '../base/base.gyp:base',
43 '../base/base.gyp:base_i18n', 47 '../base/base.gyp:base_i18n',
44 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations', 48 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations',
45 '../build/temp_gyp/googleurl.gyp:googleurl', 49 '../build/temp_gyp/googleurl.gyp:googleurl',
46 '../gpu/command_buffer/command_buffer.gyp:gles2_utils', 50 '../gpu/command_buffer/command_buffer.gyp:gles2_utils',
47 '../gpu/gpu.gyp:command_buffer_client', 51 '../gpu/gpu.gyp:command_buffer_client',
(...skipping 13 matching lines...) Expand all
61 'conditions': [ 65 'conditions': [
62 ['OS=="mac"', { 66 ['OS=="mac"', {
63 'link_settings': { 67 'link_settings': {
64 'libraries': [ 68 'libraries': [
65 '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework', 69 '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
66 ], 70 ],
67 }, 71 },
68 }], 72 }],
69 ], 73 ],
70 }, 74 },
71 { 75 ],
72 'target_name': 'ppapi_proxy', 76 'conditions': [
73 'type': '<(component)', 77 ['component=="static_library"', {
74 'variables': { 78 # In a static build, build ppapi_ipc separately.
75 'ppapi_proxy_target': 1, 79 'targets': [
76 }, 80 {
77 'dependencies': [ 81 'target_name': 'ppapi_ipc',
78 '../base/base.gyp:base', 82 'type': 'static_library',
79 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations', 83 'variables': {
80 '../gpu/gpu.gyp:gles2_implementation', 84 'ppapi_ipc_target': 1,
81 '../gpu/gpu.gyp:gpu_ipc', 85 },
82 '../ipc/ipc.gyp:ipc', 86 'dependencies': [
83 '../skia/skia.gyp:skia', 87 '../base/base.gyp:base',
84 '../ui/surface/surface.gyp:surface', 88 '../gpu/gpu.gyp:gpu_ipc',
85 'ppapi.gyp:ppapi_c', 89 '../ipc/ipc.gyp:ipc',
86 'ppapi_shared', 90 '../skia/skia.gyp:skia',
91 'ppapi.gyp:ppapi_c',
92 'ppapi_shared',
93 ],
94 'all_dependent_settings': {
95 'include_dirs': [
96 '..',
97 ],
98 },
99 },
100 {
101 'target_name': 'ppapi_proxy',
102 'type': 'static_library',
103 'variables': {
104 'ppapi_proxy_target': 1,
105 },
106 'dependencies': [
107 '../base/base.gyp:base',
108 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyn amic_annotations',
109 '../gpu/gpu.gyp:gles2_implementation',
110 '../gpu/gpu.gyp:gpu_ipc',
111 '../media/media.gyp:shared_memory_support',
112 '../ipc/ipc.gyp:ipc',
113 '../skia/skia.gyp:skia',
114 '../ui/surface/surface.gyp:surface',
115 'ppapi.gyp:ppapi_c',
116 'ppapi_shared',
117 'ppapi_ipc',
118 ],
119 'all_dependent_settings': {
120 'include_dirs': [
121 '..',
122 ],
123 },
124 },
87 ], 125 ],
88 'all_dependent_settings': {
89 'include_dirs': [
90 '..',
91 ],
92 },
93 }, 126 },
94 ] 127 { # component != static_library
128 # In the component build, we'll just build ppapi_ipc in to ppapi_proxy.
129 'targets': [
130 {
131 'target_name': 'ppapi_proxy',
132 'type': 'shared_library',
133 'variables': {
134 # Setting both variables means we pull in the sources from both
135 # ppapi_ipc.gypi and ppapi_proxy.gypi.
136 'ppapi_ipc_target': 1,
137 'ppapi_proxy_target': 1,
138 },
139 'dependencies': [
140 '../base/base.gyp:base',
141 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyn amic_annotations',
142 '../gpu/gpu.gyp:gles2_implementation',
143 '../gpu/gpu.gyp:gpu_ipc',
144 '../media/media.gyp:shared_memory_support',
145 '../ipc/ipc.gyp:ipc',
146 '../skia/skia.gyp:skia',
147 '../ui/surface/surface.gyp:surface',
148 'ppapi.gyp:ppapi_c',
149 'ppapi_shared',
150 ],
151 'all_dependent_settings': {
152 'include_dirs': [
153 '..',
154 ],
155 },
156 },
157 {
158 # In component build, this is just a phony target that makes sure
159 # ppapi_proxy is built, since that's where the ipc sources go in the
160 # component build.
161 'target_name': 'ppapi_ipc',
162 'type': 'none',
163 'dependencies': [
164 'ppapi_proxy',
165 ],
166 },
167 ],
168 }],
169 ['disable_nacl!=1' and 'OS=="win"', {
170 # In windows builds, we also want to define some targets to build in
171 # 64-bit mode for use by nacl64.exe (the NaCl helper process for 64-bit
172 # Windows).
173 'targets': [
174 {
175 'target_name': 'ppapi_shared_win64',
176 'type': '<(component)',
177 'variables': {
178 'nacl_win64_target': 1,
179 'ppapi_shared_target': 1,
180 },
181 'dependencies': [
182 'ppapi.gyp:ppapi_c',
183 '../base/base.gyp:base_nacl_win64',
184 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyn amic_annotations_win64',
185 ],
186 'defines': [
187 '<@(nacl_win64_defines)',
188 ],
189 'export_dependent_settings': [
190 '../base/base.gyp:base_nacl_win64',
191 ],
192 'configurations': {
193 'Common_Base': {
194 'msvs_target_platform': 'x64',
195 },
196 },
197 },
198 {
199 'target_name': 'ppapi_ipc_win64',
200 'type': 'static_library',
201 'variables': {
202 'nacl_win64_target': 1,
203 'ppapi_ipc_target': 1,
204 },
205 'dependencies': [
206 '../base/base.gyp:base_nacl_win64',
207 '../ipc/ipc.gyp:ipc_win64',
208 '../gpu/gpu.gyp:gpu_ipc_win64',
209 'ppapi.gyp:ppapi_c',
210 'ppapi_shared_win64',
211 ],
212 'export_dependent_settings': [
213 '../gpu/gpu.gyp:gpu_ipc_win64',
214 ],
215 'defines': [
216 '<@(nacl_win64_defines)',
217 ],
218 'all_dependent_settings': {
219 'include_dirs': [
220 '..',
221 ],
222 },
223 'configurations': {
224 'Common_Base': {
225 'msvs_target_platform': 'x64',
226 },
227 },
228 }],
229 }],
230 ],
95 } 231 }
OLDNEW
« no previous file with comments | « ppapi/ppapi_host.gypi ('k') | ppapi/ppapi_ipc.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698