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
3 # found in the LICENSE file.
7 'chromium_code': 1, # Use higher warning level.
11 # Linux shared libraries should always be built -fPIC.
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
15 # that in the build system?
16 ['os_posix==1 and OS!="android" and OS!="mac"', {
17 'cflags': ['-fPIC', '-fvisibility=hidden'],
19 # This is needed to make the Linux shlib build happy. Without this,
20 # -fvisibility=hidden gets stripped by the exclusion in common.gypi
21 # that is triggered when a shared library build is specified.
22 'cflags/': [['include', '^-fvisibility=hidden$']],
36 'target_name': 'ppapi_shared',
37 'type': '<(component)',
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.
42 'ppapi_shared_target': 1,
45 '../base/base.gyp:base',
46 '../base/base.gyp:base_i18n',
47 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
48 '../gpu/command_buffer/command_buffer.gyp:gles2_utils',
49 '../gpu/gpu.gyp:command_buffer_client',
50 '../gpu/gpu.gyp:gles2_implementation',
52 '../media/media.gyp:shared_memory_support',
53 '../skia/skia.gyp:skia',
54 '../third_party/icu/icu.gyp:icuuc',
55 '../ui/surface/surface.gyp:surface',
56 '../url/url.gyp:url_lib',
59 'export_dependent_settings': [
60 '../base/base.gyp:base',
66 '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
70 ['chrome_multiple_dll==1', {
72 '../third_party/WebKit/public/blink.gyp:blink_minimal',
74 'export_dependent_settings': [
75 '../third_party/WebKit/public/blink.gyp:blink_minimal',
79 '../third_party/WebKit/public/blink.gyp:blink',
81 'export_dependent_settings': [
82 '../third_party/WebKit/public/blink.gyp:blink',
86 # Disable c4267 warnings until we fix size_t to int truncations.
87 'msvs_disabled_warnings': [ 4267, ],
91 ['component=="static_library"', {
92 # In a static build, build ppapi_ipc separately.
95 'target_name': 'ppapi_ipc',
96 'type': 'static_library',
98 'ppapi_ipc_target': 1,
101 '../base/base.gyp:base',
102 '../gpu/gpu.gyp:gpu_ipc',
103 '../ipc/ipc.gyp:ipc',
104 '../skia/skia.gyp:skia',
108 'all_dependent_settings': {
115 'target_name': 'ppapi_proxy',
116 'type': 'static_library',
118 'ppapi_proxy_target': 1,
121 '../base/base.gyp:base',
122 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
123 '../gpu/gpu.gyp:gles2_implementation',
124 '../gpu/gpu.gyp:gpu_ipc',
125 '../media/media.gyp:shared_memory_support',
126 '../ipc/ipc.gyp:ipc',
127 '../skia/skia.gyp:skia',
128 '../third_party/icu/icu.gyp:icuuc',
129 '../third_party/icu/icu.gyp:icui18n',
130 '../ui/surface/surface.gyp:surface',
135 'all_dependent_settings': {
140 # Disable c4267 warnings until we fix size_t to int truncations.
141 'msvs_disabled_warnings': [ 4267, ],
143 ['chrome_multiple_dll==1', {
145 '../third_party/WebKit/public/blink.gyp:blink_minimal',
149 '../third_party/WebKit/public/blink.gyp:blink',
156 { # component != static_library
157 # In the component build, we'll just build ppapi_ipc in to ppapi_proxy.
160 'target_name': 'ppapi_proxy',
161 'type': 'shared_library',
163 # Setting both variables means we pull in the sources from both
164 # ppapi_ipc.gypi and ppapi_proxy.gypi.
165 'ppapi_ipc_target': 1,
166 'ppapi_proxy_target': 1,
169 '../base/base.gyp:base',
170 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
171 '../gpu/gpu.gyp:gles2_implementation',
172 '../gpu/gpu.gyp:gpu_ipc',
173 '../media/media.gyp:shared_memory_support',
174 '../ipc/ipc.gyp:ipc',
175 '../skia/skia.gyp:skia',
176 '../third_party/icu/icu.gyp:icuuc',
177 '../third_party/icu/icu.gyp:icui18n',
178 '../ui/surface/surface.gyp:surface',
182 'all_dependent_settings': {
187 # Disable c4267 warnings until we fix size_t to int truncations.
188 'msvs_disabled_warnings': [ 4267, ],
190 ['chrome_multiple_dll==1', {
192 '../third_party/WebKit/public/blink.gyp:blink_minimal',
196 '../third_party/WebKit/public/blink.gyp:blink',
202 # In component build, this is just a phony target that makes sure
203 # ppapi_proxy is built, since that's where the ipc sources go in the
205 'target_name': 'ppapi_ipc',
213 ['disable_nacl!=1 and OS=="win" and target_arch=="ia32"', {
214 # In windows builds, we also want to define some targets to build in
215 # 64-bit mode for use by nacl64.exe (the NaCl helper process for 64-bit
219 'target_name': 'ppapi_shared_win64',
220 'type': '<(component)',
222 'nacl_win64_target': 1,
223 'ppapi_shared_target': 1,
227 '../base/base.gyp:base_win64',
228 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations_win64',
229 '../ipc/ipc.gyp:ipc_win64',
232 '<@(nacl_win64_defines)',
234 'export_dependent_settings': [
235 '../base/base.gyp:base_win64',
239 'msvs_target_platform': 'x64',
244 'target_name': 'ppapi_ipc_win64',
245 'type': 'static_library',
247 'nacl_win64_target': 1,
248 'ppapi_ipc_target': 1,
251 '../base/base.gyp:base_win64',
252 '../ipc/ipc.gyp:ipc_win64',
253 '../gpu/gpu.gyp:gpu_ipc_win64',
255 'ppapi_shared_win64',
257 'export_dependent_settings': [
258 '../gpu/gpu.gyp:gpu_ipc_win64',
261 '<@(nacl_win64_defines)',
263 'all_dependent_settings': {
270 'msvs_target_platform': 'x64',