1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
|
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'variables': {
'chromium_code': 1, # Use higher warning level.
},
'target_defaults': {
'conditions': [
# Linux shared libraries should always be built -fPIC.
#
# TODO(ajwong): For internal pepper plugins, which are statically linked
# into chrome, do we want to build w/o -fPIC? If so, how can we express
# that in the build system?
['os_posix==1 and OS!="android" and OS!="mac"', {
'cflags': ['-fPIC', '-fvisibility=hidden'],
# This is needed to make the Linux shlib build happy. Without this,
# -fvisibility=hidden gets stripped by the exclusion in common.gypi
# that is triggered when a shared library build is specified.
'cflags/': [['include', '^-fvisibility=hidden$']],
}],
],
},
'includes': [
'ppapi_sources.gypi',
'ppapi_host.gypi',
'ppapi_ipc.gypi',
'ppapi_proxy.gypi',
'ppapi_shared.gypi',
'ppapi_tests.gypi',
],
'targets': [
{
'target_name': 'ppapi_shared',
'type': '<(component)',
'variables': {
# Set the ppapi_shared_target variable, so that we will pull in the
# sources from ppapi_shared.gypi (and only from there). We follow the
# same pattern for the other targets defined within this file.
'ppapi_shared_target': 1,
},
'dependencies': [
'../base/base.gyp:base',
'../base/base.gyp:base_i18n',
'../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
'../gpu/command_buffer/command_buffer.gyp:gles2_utils',
'../gpu/gpu.gyp:command_buffer_client',
'../gpu/gpu.gyp:gles2_implementation',
'../media/media.gyp:shared_memory_support',
'../skia/skia.gyp:skia',
# TODO(ananta) : The WebKit dependency needs to move to a new target for NACL.
'../third_party/WebKit/public/blink.gyp:blink',
'../third_party/icu/icu.gyp:icuuc',
'../ui/surface/surface.gyp:surface',
'../url/url.gyp:url_lib',
'ppapi.gyp:ppapi_c',
],
'export_dependent_settings': [
'../base/base.gyp:base',
'../third_party/WebKit/public/blink.gyp:blink',
],
'conditions': [
['OS=="mac"', {
'link_settings': {
'libraries': [
'$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
],
},
}],
],
# Disable c4267 warnings until we fix size_t to int truncations.
'msvs_disabled_warnings': [ 4267, ],
},
],
'conditions': [
['component=="static_library"', {
# In a static build, build ppapi_ipc separately.
'targets': [
{
'target_name': 'ppapi_ipc',
'type': 'static_library',
'variables': {
'ppapi_ipc_target': 1,
},
'dependencies': [
'../base/base.gyp:base',
'../gpu/gpu.gyp:gpu_ipc',
'../ipc/ipc.gyp:ipc',
'../skia/skia.gyp:skia',
'ppapi.gyp:ppapi_c',
'ppapi_shared',
],
'all_dependent_settings': {
'include_dirs': [
'..',
],
},
},
{
'target_name': 'ppapi_proxy',
'type': 'static_library',
'variables': {
'ppapi_proxy_target': 1,
},
'dependencies': [
'../base/base.gyp:base',
'../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
'../gpu/gpu.gyp:gles2_implementation',
'../gpu/gpu.gyp:gpu_ipc',
'../media/media.gyp:shared_memory_support',
'../ipc/ipc.gyp:ipc',
'../skia/skia.gyp:skia',
# TODO(ananta) : The WebKit dependency needs to move to a new target for NACL.
'../third_party/WebKit/public/blink.gyp:blink',
'../third_party/icu/icu.gyp:icuuc',
'../third_party/icu/icu.gyp:icui18n',
'../ui/surface/surface.gyp:surface',
'ppapi.gyp:ppapi_c',
'ppapi_shared',
'ppapi_ipc',
],
'all_dependent_settings': {
'include_dirs': [
'..',
],
},
# Disable c4267 warnings until we fix size_t to int truncations.
'msvs_disabled_warnings': [ 4267, ],
},
],
},
{ # component != static_library
# In the component build, we'll just build ppapi_ipc in to ppapi_proxy.
'targets': [
{
'target_name': 'ppapi_proxy',
'type': 'shared_library',
'variables': {
# Setting both variables means we pull in the sources from both
# ppapi_ipc.gypi and ppapi_proxy.gypi.
'ppapi_ipc_target': 1,
'ppapi_proxy_target': 1,
},
'dependencies': [
'../base/base.gyp:base',
'../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
'../gpu/gpu.gyp:gles2_implementation',
'../gpu/gpu.gyp:gpu_ipc',
'../media/media.gyp:shared_memory_support',
'../ipc/ipc.gyp:ipc',
'../skia/skia.gyp:skia',
# TODO(ananta) : The WebKit dependency needs to move to a new target for NACL.
'../third_party/WebKit/public/blink.gyp:blink',
'../third_party/icu/icu.gyp:icuuc',
'../third_party/icu/icu.gyp:icui18n',
'../ui/surface/surface.gyp:surface',
'ppapi.gyp:ppapi_c',
'ppapi_shared',
],
'all_dependent_settings': {
'include_dirs': [
'..',
],
},
# Disable c4267 warnings until we fix size_t to int truncations.
'msvs_disabled_warnings': [ 4267, ],
},
{
# In component build, this is just a phony target that makes sure
# ppapi_proxy is built, since that's where the ipc sources go in the
# component build.
'target_name': 'ppapi_ipc',
'type': 'none',
'dependencies': [
'ppapi_proxy',
],
},
],
}],
['disable_nacl!=1 and OS=="win" and target_arch=="ia32"', {
# In windows builds, we also want to define some targets to build in
# 64-bit mode for use by nacl64.exe (the NaCl helper process for 64-bit
# Windows).
'targets': [
{
'target_name': 'ppapi_shared_win64',
'type': '<(component)',
'variables': {
'nacl_win64_target': 1,
'ppapi_shared_target': 1,
},
'dependencies': [
'ppapi.gyp:ppapi_c',
'../base/base.gyp:base_nacl_win64',
'../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations_win64',
],
'defines': [
'<@(nacl_win64_defines)',
],
'export_dependent_settings': [
'../base/base.gyp:base_nacl_win64',
],
'configurations': {
'Common_Base': {
'msvs_target_platform': 'x64',
},
},
},
{
'target_name': 'ppapi_ipc_win64',
'type': 'static_library',
'variables': {
'nacl_win64_target': 1,
'ppapi_ipc_target': 1,
},
'dependencies': [
'../base/base.gyp:base_nacl_win64',
'../ipc/ipc.gyp:ipc_win64',
'../gpu/gpu.gyp:gpu_ipc_win64',
'ppapi.gyp:ppapi_c',
'ppapi_shared_win64',
],
'export_dependent_settings': [
'../gpu/gpu.gyp:gpu_ipc_win64',
],
'defines': [
'<@(nacl_win64_defines)',
],
'all_dependent_settings': {
'include_dirs': [
'..',
],
},
'configurations': {
'Common_Base': {
'msvs_target_platform': 'x64',
},
},
}],
}],
],
}
|