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_translator_lib_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/common/RefCountObject.cpp \
27	third_party/angle/src/common/blocklayout.cpp \
28	third_party/angle/src/common/debug.cpp \
29	third_party/angle/src/common/event_tracer.cpp \
30	third_party/angle/src/common/mathutil.cpp \
31	third_party/angle/src/common/utilities.cpp \
32	third_party/angle/src/compiler/translator/BuiltInFunctionEmulator.cpp \
33	third_party/angle/src/compiler/translator/CodeGen.cpp \
34	third_party/angle/src/compiler/translator/Compiler.cpp \
35	third_party/angle/src/compiler/translator/DetectCallDepth.cpp \
36	third_party/angle/src/compiler/translator/DetectDiscontinuity.cpp \
37	third_party/angle/src/compiler/translator/Diagnostics.cpp \
38	third_party/angle/src/compiler/translator/DirectiveHandler.cpp \
39	third_party/angle/src/compiler/translator/FlagStd140Structs.cpp \
40	third_party/angle/src/compiler/translator/ForLoopUnroll.cpp \
41	third_party/angle/src/compiler/translator/InfoSink.cpp \
42	third_party/angle/src/compiler/translator/Initialize.cpp \
43	third_party/angle/src/compiler/translator/InitializeDll.cpp \
44	third_party/angle/src/compiler/translator/InitializeParseContext.cpp \
45	third_party/angle/src/compiler/translator/InitializeVariables.cpp \
46	third_party/angle/src/compiler/translator/IntermTraverse.cpp \
47	third_party/angle/src/compiler/translator/Intermediate.cpp \
48	third_party/angle/src/compiler/translator/LoopInfo.cpp \
49	third_party/angle/src/compiler/translator/OutputESSL.cpp \
50	third_party/angle/src/compiler/translator/OutputGLSL.cpp \
51	third_party/angle/src/compiler/translator/OutputGLSLBase.cpp \
52	third_party/angle/src/compiler/translator/OutputHLSL.cpp \
53	third_party/angle/src/compiler/translator/ParseContext.cpp \
54	third_party/angle/src/compiler/translator/PoolAlloc.cpp \
55	third_party/angle/src/compiler/translator/QualifierAlive.cpp \
56	third_party/angle/src/compiler/translator/RemoveTree.cpp \
57	third_party/angle/src/compiler/translator/RewriteElseBlocks.cpp \
58	third_party/angle/src/compiler/translator/SearchSymbol.cpp \
59	third_party/angle/src/compiler/translator/SymbolTable.cpp \
60	third_party/angle/src/compiler/translator/TranslatorESSL.cpp \
61	third_party/angle/src/compiler/translator/TranslatorGLSL.cpp \
62	third_party/angle/src/compiler/translator/TranslatorHLSL.cpp \
63	third_party/angle/src/compiler/translator/Types.cpp \
64	third_party/angle/src/compiler/translator/UnfoldShortCircuit.cpp \
65	third_party/angle/src/compiler/translator/UnfoldShortCircuitAST.cpp \
66	third_party/angle/src/compiler/translator/ValidateLimitations.cpp \
67	third_party/angle/src/compiler/translator/ValidateOutputs.cpp \
68	third_party/angle/src/compiler/translator/VariableInfo.cpp \
69	third_party/angle/src/compiler/translator/VariablePacker.cpp \
70	third_party/angle/src/compiler/translator/VersionGLSL.cpp \
71	third_party/angle/src/compiler/translator/compilerdebug.cpp \
72	third_party/angle/src/compiler/translator/depgraph/DependencyGraph.cpp \
73	third_party/angle/src/compiler/translator/depgraph/DependencyGraphBuilder.cpp \
74	third_party/angle/src/compiler/translator/depgraph/DependencyGraphOutput.cpp \
75	third_party/angle/src/compiler/translator/depgraph/DependencyGraphTraverse.cpp \
76	third_party/angle/src/compiler/translator/glslang_lex.cpp \
77	third_party/angle/src/compiler/translator/glslang_tab.cpp \
78	third_party/angle/src/compiler/translator/intermOut.cpp \
79	third_party/angle/src/compiler/translator/ossource_posix.cpp \
80	third_party/angle/src/compiler/translator/parseConst.cpp \
81	third_party/angle/src/compiler/translator/timing/RestrictFragmentShaderTiming.cpp \
82	third_party/angle/src/compiler/translator/timing/RestrictVertexShaderTiming.cpp \
83	third_party/angle/src/compiler/translator/util.cpp \
84	third_party/angle/src/third_party/compiler/ArrayBoundsClamper.cpp
85
86
87# Flags passed to both C and C++ files.
88MY_CFLAGS_Debug := \
89	-fstack-protector \
90	--param=ssp-buffer-size=4 \
91	 \
92	-fno-exceptions \
93	-fno-strict-aliasing \
94	-Wno-unused-parameter \
95	-Wno-missing-field-initializers \
96	-fvisibility=hidden \
97	-pipe \
98	-fPIC \
99	-Wno-unused-local-typedefs \
100	-Wno-format \
101	-EL \
102	-mhard-float \
103	-ffunction-sections \
104	-funwind-tables \
105	-g \
106	-fstack-protector \
107	-fno-short-enums \
108	-finline-limit=64 \
109	-Wa,--noexecstack \
110	-U_FORTIFY_SOURCE \
111	-Wno-extra \
112	-Wno-ignored-qualifiers \
113	-Wno-type-limits \
114	-Wno-unused-but-set-variable \
115	-Wno-address \
116	-Wno-format-security \
117	-Wno-return-type \
118	-Wno-sequence-point \
119	-Os \
120	-g \
121	-fdata-sections \
122	-ffunction-sections \
123	-fomit-frame-pointer \
124	-funwind-tables
125
126MY_DEFS_Debug := \
127	'-DV8_DEPRECATION_WARNINGS' \
128	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
129	'-DANGLE_PRELOADED_D3DCOMPILER_MODULE_NAMES={ TEXT("d3dcompiler_46.dll"), TEXT("d3dcompiler_43.dll") }' \
130	'-D_FILE_OFFSET_BITS=64' \
131	'-DNO_TCMALLOC' \
132	'-DDISABLE_NACL' \
133	'-DCHROMIUM_BUILD' \
134	'-DUSE_LIBJPEG_TURBO=1' \
135	'-DENABLE_WEBRTC=1' \
136	'-DUSE_PROPRIETARY_CODECS' \
137	'-DENABLE_BROWSER_CDMS' \
138	'-DENABLE_CONFIGURATION_POLICY' \
139	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
140	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
141	'-DENABLE_EGLIMAGE=1' \
142	'-DCLD_VERSION=1' \
143	'-DENABLE_PRINTING=1' \
144	'-DENABLE_MANAGED_USERS=1' \
145	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
146	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
147	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
148	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
149	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
150	'-DVIDEO_HOLE=1' \
151	'-DNOMINMAX' \
152	'-DUSE_OPENSSL=1' \
153	'-DUSE_OPENSSL_CERTS=1' \
154	'-DANDROID' \
155	'-D__GNU_SOURCE=1' \
156	'-DUSE_STLPORT=1' \
157	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
158	'-DCHROME_BUILD_ID=""' \
159	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
160	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
161	'-D_DEBUG'
162
163
164# Include paths placed before CFLAGS/CPPFLAGS
165LOCAL_C_INCLUDES_Debug := \
166	$(gyp_shared_intermediate_dir) \
167	$(LOCAL_PATH)/third_party/angle/src \
168	$(LOCAL_PATH)/third_party/angle/include \
169	$(PWD)/frameworks/wilhelm/include \
170	$(PWD)/bionic \
171	$(PWD)/external/stlport/stlport
172
173
174# Flags passed to only C++ (and not C) files.
175LOCAL_CPPFLAGS_Debug := \
176	-fno-rtti \
177	-fno-threadsafe-statics \
178	-fvisibility-inlines-hidden \
179	-Wno-deprecated \
180	-Wno-uninitialized \
181	-Wno-non-virtual-dtor \
182	-Wno-sign-promo \
183	-Wno-non-virtual-dtor
184
185
186LOCAL_FDO_SUPPORT_Debug := false
187
188# Flags passed to both C and C++ files.
189MY_CFLAGS_Release := \
190	-fstack-protector \
191	--param=ssp-buffer-size=4 \
192	 \
193	-fno-exceptions \
194	-fno-strict-aliasing \
195	-Wno-unused-parameter \
196	-Wno-missing-field-initializers \
197	-fvisibility=hidden \
198	-pipe \
199	-fPIC \
200	-Wno-unused-local-typedefs \
201	-Wno-format \
202	-EL \
203	-mhard-float \
204	-ffunction-sections \
205	-funwind-tables \
206	-g \
207	-fstack-protector \
208	-fno-short-enums \
209	-finline-limit=64 \
210	-Wa,--noexecstack \
211	-U_FORTIFY_SOURCE \
212	-Wno-extra \
213	-Wno-ignored-qualifiers \
214	-Wno-type-limits \
215	-Wno-unused-but-set-variable \
216	-Wno-address \
217	-Wno-format-security \
218	-Wno-return-type \
219	-Wno-sequence-point \
220	-Os \
221	-fno-ident \
222	-fdata-sections \
223	-ffunction-sections \
224	-fomit-frame-pointer \
225	-funwind-tables
226
227MY_DEFS_Release := \
228	'-DV8_DEPRECATION_WARNINGS' \
229	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
230	'-DANGLE_PRELOADED_D3DCOMPILER_MODULE_NAMES={ TEXT("d3dcompiler_46.dll"), TEXT("d3dcompiler_43.dll") }' \
231	'-D_FILE_OFFSET_BITS=64' \
232	'-DNO_TCMALLOC' \
233	'-DDISABLE_NACL' \
234	'-DCHROMIUM_BUILD' \
235	'-DUSE_LIBJPEG_TURBO=1' \
236	'-DENABLE_WEBRTC=1' \
237	'-DUSE_PROPRIETARY_CODECS' \
238	'-DENABLE_BROWSER_CDMS' \
239	'-DENABLE_CONFIGURATION_POLICY' \
240	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
241	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
242	'-DENABLE_EGLIMAGE=1' \
243	'-DCLD_VERSION=1' \
244	'-DENABLE_PRINTING=1' \
245	'-DENABLE_MANAGED_USERS=1' \
246	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
247	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
248	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
249	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
250	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
251	'-DVIDEO_HOLE=1' \
252	'-DNOMINMAX' \
253	'-DUSE_OPENSSL=1' \
254	'-DUSE_OPENSSL_CERTS=1' \
255	'-DANDROID' \
256	'-D__GNU_SOURCE=1' \
257	'-DUSE_STLPORT=1' \
258	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
259	'-DCHROME_BUILD_ID=""' \
260	'-DNDEBUG' \
261	'-DNVALGRIND' \
262	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
263
264
265# Include paths placed before CFLAGS/CPPFLAGS
266LOCAL_C_INCLUDES_Release := \
267	$(gyp_shared_intermediate_dir) \
268	$(LOCAL_PATH)/third_party/angle/src \
269	$(LOCAL_PATH)/third_party/angle/include \
270	$(PWD)/frameworks/wilhelm/include \
271	$(PWD)/bionic \
272	$(PWD)/external/stlport/stlport
273
274
275# Flags passed to only C++ (and not C) files.
276LOCAL_CPPFLAGS_Release := \
277	-fno-rtti \
278	-fno-threadsafe-statics \
279	-fvisibility-inlines-hidden \
280	-Wno-deprecated \
281	-Wno-uninitialized \
282	-Wno-non-virtual-dtor \
283	-Wno-sign-promo \
284	-Wno-non-virtual-dtor
285
286
287LOCAL_FDO_SUPPORT_Release := false
288
289LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
290LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION))
291LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
292LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
293LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
294### Rules for final target.
295
296LOCAL_LDFLAGS_Debug := \
297	-Wl,-z,now \
298	-Wl,-z,relro \
299	-Wl,--fatal-warnings \
300	-Wl,-z,noexecstack \
301	-fPIC \
302	-EL \
303	-Wl,--no-keep-memory \
304	-nostdlib \
305	-Wl,--no-undefined \
306	-Wl,--exclude-libs=ALL \
307	-Wl,--warn-shared-textrel \
308	-Wl,-O1 \
309	-Wl,--as-needed
310
311
312LOCAL_LDFLAGS_Release := \
313	-Wl,-z,now \
314	-Wl,-z,relro \
315	-Wl,--fatal-warnings \
316	-Wl,-z,noexecstack \
317	-fPIC \
318	-EL \
319	-Wl,--no-keep-memory \
320	-nostdlib \
321	-Wl,--no-undefined \
322	-Wl,--exclude-libs=ALL \
323	-Wl,-O1 \
324	-Wl,--as-needed \
325	-Wl,--gc-sections \
326	-Wl,--warn-shared-textrel
327
328
329LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
330
331LOCAL_STATIC_LIBRARIES :=
332
333# Enable grouping to fix circular references
334LOCAL_GROUP_STATIC_LIBRARIES := true
335
336LOCAL_SHARED_LIBRARIES := \
337	libstlport \
338	libdl
339
340# Add target alias to "gyp_all_modules" target.
341.PHONY: gyp_all_modules
342gyp_all_modules: third_party_angle_src_translator_lib_gyp
343
344# Alias gyp target name.
345.PHONY: translator_lib
346translator_lib: third_party_angle_src_translator_lib_gyp
347
348include $(BUILD_STATIC_LIBRARY)
349