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 # GN version: //ppapi/shared_impl and //ppapi/thunk
37 'target_name': 'ppapi_shared',
38 'type': '<(component)',
40 # Set the ppapi_shared_target variable, so that we will pull in the
41 # sources from ppapi_shared.gypi (and only from there). We follow the
42 # same pattern for the other targets defined within this file.
43 'ppapi_shared_target': 1,
46 '../base/base.gyp:base',
47 '../base/base.gyp:base_i18n',
48 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
49 '../gpu/command_buffer/command_buffer.gyp:gles2_utils',
50 '../gpu/gpu.gyp:command_buffer_client',
51 '../gpu/gpu.gyp:gles2_implementation',
53 '../media/media.gyp:shared_memory_support',
54 '../skia/skia.gyp:skia',
55 '../third_party/icu/icu.gyp:icuuc',
56 '../ui/events/events.gyp:events_base',
57 '../ui/surface/surface.gyp:surface',
58 '../url/url.gyp:url_lib',
61 'export_dependent_settings': [
62 '../base/base.gyp:base',
68 '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
76 ['component=="static_library"', {
77 # In a static build, build ppapi_ipc separately.
80 # GN version: //ppapi/proxy:ipc
81 'target_name': 'ppapi_ipc',
82 'type': 'static_library',
84 'ppapi_ipc_target': 1,
87 '../base/base.gyp:base',
88 '../gpu/gpu.gyp:gpu_ipc',
90 '../skia/skia.gyp:skia',
91 '../ui/events/ipc/events_ipc.gyp:events_ipc',
95 'all_dependent_settings': {
102 # GN version: //ppapi/proxy
103 'target_name': 'ppapi_proxy',
104 'type': 'static_library',
106 'ppapi_proxy_target': 1,
109 '../base/base.gyp:base',
110 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
111 '../gin/gin.gyp:gin',
112 '../gpu/gpu.gyp:gles2_implementation',
113 '../gpu/gpu.gyp:gpu_ipc',
114 '../media/media.gyp:shared_memory_support',
115 '../ipc/ipc.gyp:ipc',
116 '../skia/skia.gyp:skia',
117 '../third_party/icu/icu.gyp:icuuc',
118 '../third_party/icu/icu.gyp:icui18n',
119 '../ui/events/events.gyp:events_base',
120 '../ui/surface/surface.gyp:surface',
125 'all_dependent_settings': {
131 ['chrome_multiple_dll==1', {
133 '../third_party/WebKit/public/blink.gyp:blink_minimal',
137 '../third_party/WebKit/public/blink.gyp:blink',
144 { # component != static_library
145 # In the component build, we'll just build ppapi_ipc in to ppapi_proxy.
148 # GN version: //ppapi:ppapi_proxy
149 'target_name': 'ppapi_proxy',
150 'type': 'shared_library',
152 # Setting both variables means we pull in the sources from both
153 # ppapi_ipc.gypi and ppapi_proxy.gypi.
154 'ppapi_ipc_target': 1,
155 'ppapi_proxy_target': 1,
158 '../base/base.gyp:base',
159 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
160 '../gin/gin.gyp:gin',
161 '../gpu/gpu.gyp:gles2_implementation',
162 '../gpu/gpu.gyp:gpu_ipc',
163 '../media/media.gyp:shared_memory_support',
164 '../ipc/ipc.gyp:ipc',
165 '../skia/skia.gyp:skia',
166 '../third_party/icu/icu.gyp:icuuc',
167 '../third_party/icu/icu.gyp:icui18n',
168 '../ui/events/events.gyp:events_base',
169 '../ui/events/ipc/events_ipc.gyp:events_ipc',
170 '../ui/surface/surface.gyp:surface',
174 'all_dependent_settings': {
180 ['chrome_multiple_dll==1', {
182 '../third_party/WebKit/public/blink.gyp:blink_minimal',
186 '../third_party/WebKit/public/blink.gyp:blink',
192 # In component build, this is just a phony target that makes sure
193 # ppapi_proxy is built, since that's where the ipc sources go in the
195 'target_name': 'ppapi_ipc',
203 ['disable_nacl!=1 and OS=="win" and target_arch=="ia32"', {
204 # In windows builds, we also want to define some targets to build in
205 # 64-bit mode for use by nacl64.exe (the NaCl helper process for 64-bit
209 # GN version: //ppapi:ppapi_shared
210 # (Should be automagical when compiling in the 64-bit toolchain.)
211 'target_name': 'ppapi_shared_win64',
212 'type': '<(component)',
214 'nacl_win64_target': 1,
215 'ppapi_shared_target': 1,
219 '../base/base.gyp:base_win64',
220 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations_win64',
221 '../gpu/gpu.gyp:command_buffer_common_win64',
222 '../ipc/ipc.gyp:ipc_win64',
223 '../ui/events/latency_info_nacl.gyp:latency_info_nacl_win64',
226 '<@(nacl_win64_defines)',
228 'export_dependent_settings': [
229 '../base/base.gyp:base_win64',
233 'msvs_target_platform': 'x64',
238 # GN version: //ppapi:ppapi_ipc
239 # (Should be automagical when compiling in the 64-bit toolchain.)
240 'target_name': 'ppapi_ipc_win64',
241 'type': 'static_library',
243 'nacl_win64_target': 1,
244 'ppapi_ipc_target': 1,
247 '../base/base.gyp:base_win64',
248 '../ipc/ipc.gyp:ipc_win64',
249 '../gpu/gpu.gyp:gpu_ipc_win64',
250 '../ui/events/latency_info_nacl.gyp:latency_info_nacl_win64',
252 'ppapi_shared_win64',
254 'export_dependent_settings': [
255 '../gpu/gpu.gyp:gpu_ipc_win64',
258 '<@(nacl_win64_defines)',
260 'all_dependent_settings': {
267 'msvs_target_platform': 'x64',