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,
46 '../base/base.gyp:base',
47 '../base/base.gyp:base_i18n',
48 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
49 '../build/temp_gyp/googleurl.gyp:googleurl',
50 '../gpu/command_buffer/command_buffer.gyp:gles2_utils',
51 '../gpu/gpu.gyp:command_buffer_client',
52 '../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 # TODO(ananta) : The WebKit dependency needs to move to a new target for NACL.
57 '<(webkit_src_dir)/Source/WebKit/chromium/WebKit.gyp:webkit',
58 '../ui/surface/surface.gyp:surface',
60 'export_dependent_settings': [
61 '../base/base.gyp:base',
62 '<(webkit_src_dir)/Source/WebKit/chromium/WebKit.gyp:webkit',
68 '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
73 # Disable c4267 warnings until we fix size_t to int truncations.
74 'msvs_disabled_warnings': [ 4267, ],
78 ['component=="static_library"', {
79 # In a static build, build ppapi_ipc separately.
82 'target_name': 'ppapi_ipc',
83 'type': 'static_library',
85 'ppapi_ipc_target': 1,
88 '../base/base.gyp:base',
89 '../gpu/gpu.gyp:gpu_ipc',
91 '../skia/skia.gyp:skia',
95 'all_dependent_settings': {
102 'target_name': 'ppapi_proxy',
103 'type': 'static_library',
105 'ppapi_proxy_target': 1,
108 '../base/base.gyp:base',
109 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
110 '../gpu/gpu.gyp:gles2_implementation',
111 '../gpu/gpu.gyp:gpu_ipc',
112 '../media/media.gyp:shared_memory_support',
113 '../ipc/ipc.gyp:ipc',
114 '../skia/skia.gyp:skia',
115 '../third_party/icu/icu.gyp:icuuc',
116 '../third_party/icu/icu.gyp:icui18n',
117 # TODO(ananta) : The WebKit dependency needs to move to a new target for NACL.
118 '<(webkit_src_dir)/Source/WebKit/chromium/WebKit.gyp:webkit',
119 '../ui/surface/surface.gyp:surface',
124 'all_dependent_settings': {
129 # Disable c4267 warnings until we fix size_t to int truncations.
130 'msvs_disabled_warnings': [ 4267, ],
134 { # component != static_library
135 # In the component build, we'll just build ppapi_ipc in to ppapi_proxy.
138 'target_name': 'ppapi_proxy',
139 'type': 'shared_library',
141 # Setting both variables means we pull in the sources from both
142 # ppapi_ipc.gypi and ppapi_proxy.gypi.
143 'ppapi_ipc_target': 1,
144 'ppapi_proxy_target': 1,
147 '../base/base.gyp:base',
148 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
149 '../gpu/gpu.gyp:gles2_implementation',
150 '../gpu/gpu.gyp:gpu_ipc',
151 '../media/media.gyp:shared_memory_support',
152 '../ipc/ipc.gyp:ipc',
153 '../skia/skia.gyp:skia',
154 '../third_party/icu/icu.gyp:icuuc',
155 '../third_party/icu/icu.gyp:icui18n',
156 # TODO(ananta) : The WebKit dependency needs to move to a new target for NACL.
157 '<(webkit_src_dir)/Source/WebKit/chromium/WebKit.gyp:webkit',
158 '../ui/surface/surface.gyp:surface',
162 'all_dependent_settings': {
167 # Disable c4267 warnings until we fix size_t to int truncations.
168 'msvs_disabled_warnings': [ 4267, ],
171 # In component build, this is just a phony target that makes sure
172 # ppapi_proxy is built, since that's where the ipc sources go in the
174 'target_name': 'ppapi_ipc',
182 ['disable_nacl!=1 and OS=="win" and target_arch=="ia32"', {
183 # In windows builds, we also want to define some targets to build in
184 # 64-bit mode for use by nacl64.exe (the NaCl helper process for 64-bit
188 'target_name': 'ppapi_shared_win64',
189 'type': '<(component)',
191 'nacl_win64_target': 1,
192 'ppapi_shared_target': 1,
196 '../base/base.gyp:base_nacl_win64',
197 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations_win64',
200 '<@(nacl_win64_defines)',
202 'export_dependent_settings': [
203 '../base/base.gyp:base_nacl_win64',
207 'msvs_target_platform': 'x64',
212 'target_name': 'ppapi_ipc_win64',
213 'type': 'static_library',
215 'nacl_win64_target': 1,
216 'ppapi_ipc_target': 1,
219 '../base/base.gyp:base_nacl_win64',
220 '../ipc/ipc.gyp:ipc_win64',
221 '../gpu/gpu.gyp:gpu_ipc_win64',
223 'ppapi_shared_win64',
225 'export_dependent_settings': [
226 '../gpu/gpu.gyp:gpu_ipc_win64',
229 '<@(nacl_win64_defines)',
231 'all_dependent_settings': {
238 'msvs_target_platform': 'x64',