• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := STATIC_LIBRARIES
6LOCAL_MODULE := third_party_angle_src_preprocessor_gyp
7LOCAL_MODULE_SUFFIX := .a
8LOCAL_MODULE_TAGS := optional
9LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH)
10gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX))
11gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX))
12
13# Make sure our deps are built first.
14GYP_TARGET_DEPENDENCIES :=
15
16GYP_GENERATED_OUTPUTS :=
17
18# Make sure our deps and generated files are built first.
19LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
20
21LOCAL_GENERATED_SOURCES :=
22
23GYP_COPIED_SOURCE_ORIGIN_DIRS :=
24
25LOCAL_SRC_FILES := \
26	third_party/angle/src/compiler/preprocessor/DiagnosticsBase.cpp \
27	third_party/angle/src/compiler/preprocessor/DirectiveHandlerBase.cpp \
28	third_party/angle/src/compiler/preprocessor/DirectiveParser.cpp \
29	third_party/angle/src/compiler/preprocessor/ExpressionParser.cpp \
30	third_party/angle/src/compiler/preprocessor/Input.cpp \
31	third_party/angle/src/compiler/preprocessor/Lexer.cpp \
32	third_party/angle/src/compiler/preprocessor/Macro.cpp \
33	third_party/angle/src/compiler/preprocessor/MacroExpander.cpp \
34	third_party/angle/src/compiler/preprocessor/Preprocessor.cpp \
35	third_party/angle/src/compiler/preprocessor/Token.cpp \
36	third_party/angle/src/compiler/preprocessor/Tokenizer.cpp
37
38
39# Flags passed to both C and C++ files.
40MY_CFLAGS_Debug := \
41	-fstack-protector \
42	--param=ssp-buffer-size=4 \
43	-fno-exceptions \
44	-fno-strict-aliasing \
45	-Wno-unused-parameter \
46	-Wno-missing-field-initializers \
47	-fvisibility=hidden \
48	-pipe \
49	-fPIC \
50	-Wno-unused-local-typedefs \
51	-Wno-format \
52	-fno-tree-sra \
53	-fno-partial-inlining \
54	-fno-early-inlining \
55	-fno-tree-copy-prop \
56	-fno-tree-loop-optimize \
57	-fno-move-loop-invariants \
58	-fno-caller-saves \
59	-Wno-psabi \
60	-ffunction-sections \
61	-funwind-tables \
62	-g \
63	-fstack-protector \
64	-fno-short-enums \
65	-finline-limit=64 \
66	-Wa,--noexecstack \
67	-U_FORTIFY_SOURCE \
68	-Wno-extra \
69	-Wno-ignored-qualifiers \
70	-Wno-type-limits \
71	-Wno-unused-but-set-variable \
72	-Wno-address \
73	-Wno-format-security \
74	-Wno-return-type \
75	-Wno-sequence-point \
76	-Os \
77	-g \
78	-fdata-sections \
79	-ffunction-sections \
80	-fomit-frame-pointer \
81	-funwind-tables
82
83MY_DEFS_Debug := \
84	'-DV8_DEPRECATION_WARNINGS' \
85	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
86	'-DANGLE_PRELOADED_D3DCOMPILER_MODULE_NAMES={ TEXT("d3dcompiler_46.dll"), TEXT("d3dcompiler_43.dll") }' \
87	'-D_FILE_OFFSET_BITS=64' \
88	'-DNO_TCMALLOC' \
89	'-DDISABLE_NACL' \
90	'-DCHROMIUM_BUILD' \
91	'-DUSE_LIBJPEG_TURBO=1' \
92	'-DENABLE_WEBRTC=1' \
93	'-DUSE_PROPRIETARY_CODECS' \
94	'-DENABLE_BROWSER_CDMS' \
95	'-DENABLE_CONFIGURATION_POLICY' \
96	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
97	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
98	'-DENABLE_EGLIMAGE=1' \
99	'-DCLD_VERSION=1' \
100	'-DENABLE_PRINTING=1' \
101	'-DENABLE_MANAGED_USERS=1' \
102	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
103	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
104	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
105	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
106	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
107	'-DVIDEO_HOLE=1' \
108	'-DNOMINMAX' \
109	'-DUSE_OPENSSL=1' \
110	'-DUSE_OPENSSL_CERTS=1' \
111	'-DANDROID' \
112	'-D__GNU_SOURCE=1' \
113	'-DUSE_STLPORT=1' \
114	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
115	'-DCHROME_BUILD_ID=""' \
116	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
117	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
118	'-D_DEBUG'
119
120
121# Include paths placed before CFLAGS/CPPFLAGS
122LOCAL_C_INCLUDES_Debug := \
123	$(gyp_shared_intermediate_dir) \
124	$(PWD)/frameworks/wilhelm/include \
125	$(PWD)/bionic \
126	$(PWD)/external/stlport/stlport
127
128
129# Flags passed to only C++ (and not C) files.
130LOCAL_CPPFLAGS_Debug := \
131	-fno-rtti \
132	-fno-threadsafe-statics \
133	-fvisibility-inlines-hidden \
134	-Wno-deprecated \
135	-Wno-abi \
136	-Wno-non-virtual-dtor \
137	-Wno-sign-promo \
138	-Wno-non-virtual-dtor
139
140
141LOCAL_FDO_SUPPORT_Debug := false
142
143# Flags passed to both C and C++ files.
144MY_CFLAGS_Release := \
145	-fstack-protector \
146	--param=ssp-buffer-size=4 \
147	-fno-exceptions \
148	-fno-strict-aliasing \
149	-Wno-unused-parameter \
150	-Wno-missing-field-initializers \
151	-fvisibility=hidden \
152	-pipe \
153	-fPIC \
154	-Wno-unused-local-typedefs \
155	-Wno-format \
156	-fno-tree-sra \
157	-fno-partial-inlining \
158	-fno-early-inlining \
159	-fno-tree-copy-prop \
160	-fno-tree-loop-optimize \
161	-fno-move-loop-invariants \
162	-fno-caller-saves \
163	-Wno-psabi \
164	-ffunction-sections \
165	-funwind-tables \
166	-g \
167	-fstack-protector \
168	-fno-short-enums \
169	-finline-limit=64 \
170	-Wa,--noexecstack \
171	-U_FORTIFY_SOURCE \
172	-Wno-extra \
173	-Wno-ignored-qualifiers \
174	-Wno-type-limits \
175	-Wno-unused-but-set-variable \
176	-Wno-address \
177	-Wno-format-security \
178	-Wno-return-type \
179	-Wno-sequence-point \
180	-Os \
181	-fno-ident \
182	-fdata-sections \
183	-ffunction-sections \
184	-fomit-frame-pointer \
185	-funwind-tables
186
187MY_DEFS_Release := \
188	'-DV8_DEPRECATION_WARNINGS' \
189	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
190	'-DANGLE_PRELOADED_D3DCOMPILER_MODULE_NAMES={ TEXT("d3dcompiler_46.dll"), TEXT("d3dcompiler_43.dll") }' \
191	'-D_FILE_OFFSET_BITS=64' \
192	'-DNO_TCMALLOC' \
193	'-DDISABLE_NACL' \
194	'-DCHROMIUM_BUILD' \
195	'-DUSE_LIBJPEG_TURBO=1' \
196	'-DENABLE_WEBRTC=1' \
197	'-DUSE_PROPRIETARY_CODECS' \
198	'-DENABLE_BROWSER_CDMS' \
199	'-DENABLE_CONFIGURATION_POLICY' \
200	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
201	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
202	'-DENABLE_EGLIMAGE=1' \
203	'-DCLD_VERSION=1' \
204	'-DENABLE_PRINTING=1' \
205	'-DENABLE_MANAGED_USERS=1' \
206	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
207	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
208	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
209	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
210	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
211	'-DVIDEO_HOLE=1' \
212	'-DNOMINMAX' \
213	'-DUSE_OPENSSL=1' \
214	'-DUSE_OPENSSL_CERTS=1' \
215	'-DANDROID' \
216	'-D__GNU_SOURCE=1' \
217	'-DUSE_STLPORT=1' \
218	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
219	'-DCHROME_BUILD_ID=""' \
220	'-DNDEBUG' \
221	'-DNVALGRIND' \
222	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
223
224
225# Include paths placed before CFLAGS/CPPFLAGS
226LOCAL_C_INCLUDES_Release := \
227	$(gyp_shared_intermediate_dir) \
228	$(PWD)/frameworks/wilhelm/include \
229	$(PWD)/bionic \
230	$(PWD)/external/stlport/stlport
231
232
233# Flags passed to only C++ (and not C) files.
234LOCAL_CPPFLAGS_Release := \
235	-fno-rtti \
236	-fno-threadsafe-statics \
237	-fvisibility-inlines-hidden \
238	-Wno-deprecated \
239	-Wno-abi \
240	-Wno-non-virtual-dtor \
241	-Wno-sign-promo \
242	-Wno-non-virtual-dtor
243
244
245LOCAL_FDO_SUPPORT_Release := false
246
247LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
248LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION))
249LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
250LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
251LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
252### Rules for final target.
253
254LOCAL_LDFLAGS_Debug := \
255	-Wl,-z,now \
256	-Wl,-z,relro \
257	-Wl,--fatal-warnings \
258	-Wl,-z,noexecstack \
259	-fPIC \
260	-Wl,-z,relro \
261	-Wl,-z,now \
262	-fuse-ld=gold \
263	-nostdlib \
264	-Wl,--no-undefined \
265	-Wl,--exclude-libs=ALL \
266	-Wl,--icf=safe \
267	-Wl,--warn-shared-textrel \
268	-Wl,-O1 \
269	-Wl,--as-needed
270
271
272LOCAL_LDFLAGS_Release := \
273	-Wl,-z,now \
274	-Wl,-z,relro \
275	-Wl,--fatal-warnings \
276	-Wl,-z,noexecstack \
277	-fPIC \
278	-Wl,-z,relro \
279	-Wl,-z,now \
280	-fuse-ld=gold \
281	-nostdlib \
282	-Wl,--no-undefined \
283	-Wl,--exclude-libs=ALL \
284	-Wl,--icf=safe \
285	-Wl,-O1 \
286	-Wl,--as-needed \
287	-Wl,--gc-sections \
288	-Wl,--warn-shared-textrel
289
290
291LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
292
293LOCAL_STATIC_LIBRARIES :=
294
295# Enable grouping to fix circular references
296LOCAL_GROUP_STATIC_LIBRARIES := true
297
298LOCAL_SHARED_LIBRARIES := \
299	libstlport \
300	libdl
301
302# Add target alias to "gyp_all_modules" target.
303.PHONY: gyp_all_modules
304gyp_all_modules: third_party_angle_src_preprocessor_gyp
305
306# Alias gyp target name.
307.PHONY: preprocessor
308preprocessor: third_party_angle_src_preprocessor_gyp
309
310include $(BUILD_STATIC_LIBRARY)
311