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',
72 ['chrome_multiple_dll==1', {
74 '../third_party/WebKit/public/blink.gyp:blink_minimal',
76 'export_dependent_settings': [
77 '../third_party/WebKit/public/blink.gyp:blink_minimal',
81 '../third_party/WebKit/public/blink.gyp:blink',
83 'export_dependent_settings': [
84 '../third_party/WebKit/public/blink.gyp:blink',
91 ['component=="static_library"', {
92 # In a static build, build ppapi_ipc separately.
95 # GN version: //ppapi/proxy:ipc
96 'target_name': 'ppapi_ipc',
97 'type': 'static_library',
99 'ppapi_ipc_target': 1,
102 '../base/base.gyp:base',
103 '../gpu/gpu.gyp:gpu_ipc',
104 '../ipc/ipc.gyp:ipc',
105 '../skia/skia.gyp:skia',
106 '../ui/events/ipc/events_ipc.gyp:events_ipc',
110 'all_dependent_settings': {
117 # GN version: //ppapi/proxy
118 'target_name': 'ppapi_proxy',
119 'type': 'static_library',
121 'ppapi_proxy_target': 1,
124 '../base/base.gyp:base',
125 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
126 '../gin/gin.gyp:gin',
127 '../gpu/gpu.gyp:gles2_implementation',
128 '../gpu/gpu.gyp:gpu_ipc',
129 '../media/media.gyp:shared_memory_support',
130 '../ipc/ipc.gyp:ipc',
131 '../skia/skia.gyp:skia',
132 '../third_party/icu/icu.gyp:icuuc',
133 '../third_party/icu/icu.gyp:icui18n',
134 '../ui/events/events.gyp:events_base',
135 '../ui/surface/surface.gyp:surface',
140 'all_dependent_settings': {
146 ['chrome_multiple_dll==1', {
148 '../third_party/WebKit/public/blink.gyp:blink_minimal',
152 '../third_party/WebKit/public/blink.gyp:blink',
159 { # component != static_library
160 # In the component build, we'll just build ppapi_ipc in to ppapi_proxy.
163 # GN version: //ppapi:ppapi_proxy
164 'target_name': 'ppapi_proxy',
165 'type': 'shared_library',
167 # Setting both variables means we pull in the sources from both
168 # ppapi_ipc.gypi and ppapi_proxy.gypi.
169 'ppapi_ipc_target': 1,
170 'ppapi_proxy_target': 1,
173 '../base/base.gyp:base',
174 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
175 '../gin/gin.gyp:gin',
176 '../gpu/gpu.gyp:gles2_implementation',
177 '../gpu/gpu.gyp:gpu_ipc',
178 '../media/media.gyp:shared_memory_support',
179 '../ipc/ipc.gyp:ipc',
180 '../skia/skia.gyp:skia',
181 '../third_party/icu/icu.gyp:icuuc',
182 '../third_party/icu/icu.gyp:icui18n',
183 '../ui/events/events.gyp:events_base',
184 '../ui/events/ipc/events_ipc.gyp:events_ipc',
185 '../ui/surface/surface.gyp:surface',
189 'all_dependent_settings': {
195 ['chrome_multiple_dll==1', {
197 '../third_party/WebKit/public/blink.gyp:blink_minimal',
201 '../third_party/WebKit/public/blink.gyp:blink',
207 # In component build, this is just a phony target that makes sure
208 # ppapi_proxy is built, since that's where the ipc sources go in the
210 'target_name': 'ppapi_ipc',
218 ['disable_nacl!=1 and OS=="win" and target_arch=="ia32"', {
219 # In windows builds, we also want to define some targets to build in
220 # 64-bit mode for use by nacl64.exe (the NaCl helper process for 64-bit
224 # GN version: //ppapi:ppapi_shared
225 # (Should be automagical when compiling in the 64-bit toolchain.)
226 'target_name': 'ppapi_shared_win64',
227 'type': '<(component)',
229 'nacl_win64_target': 1,
230 'ppapi_shared_target': 1,
234 '../base/base.gyp:base_win64',
235 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations_win64',
236 '../gpu/gpu.gyp:command_buffer_common_win64',
237 '../ipc/ipc.gyp:ipc_win64',
238 '../ui/events/latency_info_nacl.gyp:latency_info_nacl_win64',
241 '<@(nacl_win64_defines)',
243 'export_dependent_settings': [
244 '../base/base.gyp:base_win64',
248 'msvs_target_platform': 'x64',
253 # GN version: //ppapi:ppapi_ipc
254 # (Should be automagical when compiling in the 64-bit toolchain.)
255 'target_name': 'ppapi_ipc_win64',
256 'type': 'static_library',
258 'nacl_win64_target': 1,
259 'ppapi_ipc_target': 1,
262 '../base/base.gyp:base_win64',
263 '../ipc/ipc.gyp:ipc_win64',
264 '../gpu/gpu.gyp:gpu_ipc_win64',
265 '../ui/events/latency_info_nacl.gyp:latency_info_nacl_win64',
267 'ppapi_shared_win64',
269 'export_dependent_settings': [
270 '../gpu/gpu.gyp:gpu_ipc_win64',
273 '<@(nacl_win64_defines)',
275 'all_dependent_settings': {
282 'msvs_target_platform': 'x64',