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

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: Removed some proxy changes that aren't necessary now Created 8 years, 4 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
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': {
38 'ppapi_shared_target': 1, 39 'ppapi_shared_target': 1,
(...skipping 21 matching lines...) Expand all
60 'conditions': [ 61 'conditions': [
61 ['OS=="mac"', { 62 ['OS=="mac"', {
62 'link_settings': { 63 'link_settings': {
63 'libraries': [ 64 'libraries': [
64 '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework', 65 '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
65 ], 66 ],
66 }, 67 },
67 }], 68 }],
68 ], 69 ],
69 }, 70 },
70 { 71 ],
71 'target_name': 'ppapi_proxy', 72 'conditions': [
72 'type': '<(component)', 73 ['component=="static_library"', {
73 'variables': { 74 # In a static build, build ppapi_ipc separately.
74 'ppapi_proxy_target': 1, 75 'targets': [
75 }, 76 {
76 'dependencies': [ 77 'target_name': 'ppapi_ipc',
77 '../base/base.gyp:base', 78 'type': 'static_library',
78 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations', 79 'variables': {
79 '../gpu/gpu.gyp:gles2_implementation', 80 'ppapi_ipc_target': 1,
80 '../gpu/gpu.gyp:gpu_ipc', 81 },
81 '../ipc/ipc.gyp:ipc', 82 'dependencies': [
82 '../skia/skia.gyp:skia', 83 '../base/base.gyp:base',
83 '../ui/surface/surface.gyp:surface', 84 '../gpu/gpu.gyp:gpu_ipc',
84 'ppapi.gyp:ppapi_c', 85 '../ipc/ipc.gyp:ipc',
85 'ppapi_shared', 86 '../skia/skia.gyp:skia',
87 'ppapi.gyp:ppapi_c',
88 'ppapi_shared',
89 ],
90 'all_dependent_settings': {
91 'include_dirs': [
92 '..',
93 ],
94 },
95 },
96 {
97 'target_name': 'ppapi_proxy',
98 'type': 'static_library',
99 'variables': {
100 'ppapi_proxy_target': 1,
101 },
102 'dependencies': [
103 '../base/base.gyp:base',
104 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyn amic_annotations',
105 '../gpu/gpu.gyp:gles2_implementation',
106 '../gpu/gpu.gyp:gpu_ipc',
107 '../ipc/ipc.gyp:ipc',
108 '../skia/skia.gyp:skia',
109 '../ui/surface/surface.gyp:surface',
110 'ppapi.gyp:ppapi_c',
111 'ppapi_shared',
112 'ppapi_ipc',
113 ],
114 'all_dependent_settings': {
115 'include_dirs': [
116 '..',
117 ],
118 },
119 },
86 ], 120 ],
87 'all_dependent_settings': {
88 'include_dirs': [
89 '..',
90 ],
91 },
92 }, 121 },
93 ] 122 { # component != static_library
123 # In the component build, we'll just build ppapi_ipc in to ppapi_proxy.
brettw 2012/08/22 23:27:06 I'm confused about what's happening here (both her
dmichael (off chromium) 2012/08/23 22:55:14 I sprinkled in a few comments... one at the first
124 'targets': [
125 {
126 'target_name': 'ppapi_proxy',
127 'type': 'shared_library',
128 'variables': {
129 'ppapi_ipc_target': 1,
130 'ppapi_proxy_target': 1,
131 },
132 'dependencies': [
133 '../base/base.gyp:base',
134 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyn amic_annotations',
135 '../gpu/gpu.gyp:gles2_implementation',
136 '../gpu/gpu.gyp:gpu_ipc',
137 '../ipc/ipc.gyp:ipc',
138 '../skia/skia.gyp:skia',
139 '../ui/surface/surface.gyp:surface',
140 'ppapi.gyp:ppapi_c',
141 'ppapi_shared',
142 ],
143 'all_dependent_settings': {
144 'include_dirs': [
145 '..',
146 ],
147 },
148 },
149 {
150 'target_name': 'ppapi_ipc',
151 'type': 'none',
152 'dependencies': [
153 'ppapi_proxy',
154 ],
155 },
156 ],
157 }],
158 ['disable_nacl!=1' and 'OS=="win"', {
159 'targets': [
160 {
161 'target_name': 'ppapi_shared_win64',
162 'type': '<(component)',
163 'variables': {
164 'nacl_win64_target': 1,
165 'ppapi_shared_target': 1,
166 },
167 'dependencies': [
168 'ppapi.gyp:ppapi_c',
169 '../base/base.gyp:base_nacl_win64',
170 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyn amic_annotations_win64',
171 ],
172 'defines': [
173 '<@(nacl_win64_defines)',
174 ],
175 'export_dependent_settings': [
176 '../base/base.gyp:base_nacl_win64',
177 ],
178 'configurations': {
179 'Common_Base': {
180 'msvs_target_platform': 'x64',
181 },
182 },
183 },
184 {
185 'target_name': 'ppapi_ipc_win64',
186 'type': 'static_library',
187 'variables': {
188 'nacl_win64_target': 1,
189 'ppapi_ipc_target': 1,
190 },
191 'dependencies': [
192 '../base/base.gyp:base_nacl_win64',
193 '../ipc/ipc.gyp:ipc_win64',
194 '../gpu/gpu.gyp:gpu_ipc_win64',
195 'ppapi.gyp:ppapi_c',
196 'ppapi_shared_win64',
197 ],
198 'export_dependent_settings': [
199 '../gpu/gpu.gyp:gpu_ipc_win64',
200 ],
201 'defines': [
202 '<@(nacl_win64_defines)',
203 ],
204 'all_dependent_settings': {
205 'include_dirs': [
206 '..',
207 ],
208 },
209 'configurations': {
210 'Common_Base': {
211 'msvs_target_platform': 'x64',
212 },
213 },
214 }],
215 }],
216 ],
94 } 217 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698