• 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	--param=ssp-buffer-size=4 \
42	-fno-exceptions \
43	-fno-strict-aliasing \
44	-Wno-unused-parameter \
45	-Wno-missing-field-initializers \
46	-fvisibility=hidden \
47	-pipe \
48	-fPIC \
49	-Wno-unused-local-typedefs \
50	-Wno-format \
51	-msse2 \
52	-mfpmath=sse \
53	-mmmx \
54	-m32 \
55	-ffunction-sections \
56	-funwind-tables \
57	-g \
58	-fno-short-enums \
59	-finline-limit=64 \
60	-Wa,--noexecstack \
61	-U_FORTIFY_SOURCE \
62	-Wno-extra \
63	-Wno-ignored-qualifiers \
64	-Wno-type-limits \
65	-Wno-unused-but-set-variable \
66	-fno-stack-protector \
67	-Wno-address \
68	-Wno-format-security \
69	-Wno-return-type \
70	-Wno-sequence-point \
71	-Os \
72	-g \
73	-fdata-sections \
74	-ffunction-sections \
75	-fomit-frame-pointer \
76	-funwind-tables
77
78MY_DEFS_Debug := \
79	'-DV8_DEPRECATION_WARNINGS' \
80	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
81	'-DANGLE_PRELOADED_D3DCOMPILER_MODULE_NAMES={ TEXT("d3dcompiler_46.dll"), TEXT("d3dcompiler_43.dll") }' \
82	'-D_FILE_OFFSET_BITS=64' \
83	'-DNO_TCMALLOC' \
84	'-DDISABLE_NACL' \
85	'-DCHROMIUM_BUILD' \
86	'-DUSE_LIBJPEG_TURBO=1' \
87	'-DENABLE_WEBRTC=1' \
88	'-DUSE_PROPRIETARY_CODECS' \
89	'-DENABLE_BROWSER_CDMS' \
90	'-DENABLE_CONFIGURATION_POLICY' \
91	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
92	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
93	'-DENABLE_EGLIMAGE=1' \
94	'-DCLD_VERSION=1' \
95	'-DENABLE_PRINTING=1' \
96	'-DENABLE_MANAGED_USERS=1' \
97	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
98	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
99	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
100	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
101	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
102	'-DVIDEO_HOLE=1' \
103	'-DNOMINMAX' \
104	'-DUSE_OPENSSL=1' \
105	'-DUSE_OPENSSL_CERTS=1' \
106	'-DANDROID' \
107	'-D__GNU_SOURCE=1' \
108	'-DUSE_STLPORT=1' \
109	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
110	'-DCHROME_BUILD_ID=""' \
111	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
112	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
113	'-D_DEBUG'
114
115
116# Include paths placed before CFLAGS/CPPFLAGS
117LOCAL_C_INCLUDES_Debug := \
118	$(gyp_shared_intermediate_dir) \
119	$(PWD)/frameworks/wilhelm/include \
120	$(PWD)/bionic \
121	$(PWD)/external/stlport/stlport
122
123
124# Flags passed to only C++ (and not C) files.
125LOCAL_CPPFLAGS_Debug := \
126	-fno-rtti \
127	-fno-threadsafe-statics \
128	-fvisibility-inlines-hidden \
129	-Wno-deprecated \
130	-Wno-non-virtual-dtor \
131	-Wno-sign-promo \
132	-Wno-non-virtual-dtor
133
134
135LOCAL_FDO_SUPPORT_Debug := false
136
137# Flags passed to both C and C++ files.
138MY_CFLAGS_Release := \
139	--param=ssp-buffer-size=4 \
140	-fno-exceptions \
141	-fno-strict-aliasing \
142	-Wno-unused-parameter \
143	-Wno-missing-field-initializers \
144	-fvisibility=hidden \
145	-pipe \
146	-fPIC \
147	-Wno-unused-local-typedefs \
148	-Wno-format \
149	-msse2 \
150	-mfpmath=sse \
151	-mmmx \
152	-m32 \
153	-ffunction-sections \
154	-funwind-tables \
155	-g \
156	-fno-short-enums \
157	-finline-limit=64 \
158	-Wa,--noexecstack \
159	-U_FORTIFY_SOURCE \
160	-Wno-extra \
161	-Wno-ignored-qualifiers \
162	-Wno-type-limits \
163	-Wno-unused-but-set-variable \
164	-fno-stack-protector \
165	-Wno-address \
166	-Wno-format-security \
167	-Wno-return-type \
168	-Wno-sequence-point \
169	-Os \
170	-fno-ident \
171	-fdata-sections \
172	-ffunction-sections \
173	-fomit-frame-pointer \
174	-funwind-tables
175
176MY_DEFS_Release := \
177	'-DV8_DEPRECATION_WARNINGS' \
178	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
179	'-DANGLE_PRELOADED_D3DCOMPILER_MODULE_NAMES={ TEXT("d3dcompiler_46.dll"), TEXT("d3dcompiler_43.dll") }' \
180	'-D_FILE_OFFSET_BITS=64' \
181	'-DNO_TCMALLOC' \
182	'-DDISABLE_NACL' \
183	'-DCHROMIUM_BUILD' \
184	'-DUSE_LIBJPEG_TURBO=1' \
185	'-DENABLE_WEBRTC=1' \
186	'-DUSE_PROPRIETARY_CODECS' \
187	'-DENABLE_BROWSER_CDMS' \
188	'-DENABLE_CONFIGURATION_POLICY' \
189	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
190	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
191	'-DENABLE_EGLIMAGE=1' \
192	'-DCLD_VERSION=1' \
193	'-DENABLE_PRINTING=1' \
194	'-DENABLE_MANAGED_USERS=1' \
195	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
196	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
197	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
198	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
199	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
200	'-DVIDEO_HOLE=1' \
201	'-DNOMINMAX' \
202	'-DUSE_OPENSSL=1' \
203	'-DUSE_OPENSSL_CERTS=1' \
204	'-DANDROID' \
205	'-D__GNU_SOURCE=1' \
206	'-DUSE_STLPORT=1' \
207	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
208	'-DCHROME_BUILD_ID=""' \
209	'-DNDEBUG' \
210	'-DNVALGRIND' \
211	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
212
213
214# Include paths placed before CFLAGS/CPPFLAGS
215LOCAL_C_INCLUDES_Release := \
216	$(gyp_shared_intermediate_dir) \
217	$(PWD)/frameworks/wilhelm/include \
218	$(PWD)/bionic \
219	$(PWD)/external/stlport/stlport
220
221
222# Flags passed to only C++ (and not C) files.
223LOCAL_CPPFLAGS_Release := \
224	-fno-rtti \
225	-fno-threadsafe-statics \
226	-fvisibility-inlines-hidden \
227	-Wno-deprecated \
228	-Wno-non-virtual-dtor \
229	-Wno-sign-promo \
230	-Wno-non-virtual-dtor
231
232
233LOCAL_FDO_SUPPORT_Release := false
234
235LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
236LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION))
237LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
238LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
239LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
240### Rules for final target.
241
242LOCAL_LDFLAGS_Debug := \
243	-Wl,-z,now \
244	-Wl,-z,relro \
245	-Wl,--fatal-warnings \
246	-Wl,-z,noexecstack \
247	-fPIC \
248	-m32 \
249	-fuse-ld=gold \
250	-nostdlib \
251	-Wl,--no-undefined \
252	-Wl,--exclude-libs=ALL \
253	-Wl,--warn-shared-textrel \
254	-Wl,-O1 \
255	-Wl,--as-needed
256
257
258LOCAL_LDFLAGS_Release := \
259	-Wl,-z,now \
260	-Wl,-z,relro \
261	-Wl,--fatal-warnings \
262	-Wl,-z,noexecstack \
263	-fPIC \
264	-m32 \
265	-fuse-ld=gold \
266	-nostdlib \
267	-Wl,--no-undefined \
268	-Wl,--exclude-libs=ALL \
269	-Wl,-O1 \
270	-Wl,--as-needed \
271	-Wl,--gc-sections \
272	-Wl,--warn-shared-textrel
273
274
275LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
276
277LOCAL_STATIC_LIBRARIES :=
278
279# Enable grouping to fix circular references
280LOCAL_GROUP_STATIC_LIBRARIES := true
281
282LOCAL_SHARED_LIBRARIES := \
283	libstlport \
284	libdl
285
286# Add target alias to "gyp_all_modules" target.
287.PHONY: gyp_all_modules
288gyp_all_modules: third_party_angle_src_preprocessor_gyp
289
290# Alias gyp target name.
291.PHONY: preprocessor
292preprocessor: third_party_angle_src_preprocessor_gyp
293
294include $(BUILD_STATIC_LIBRARY)
295