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	--param=ssp-buffer-size=4 \
90	-fno-exceptions \
91	-fno-strict-aliasing \
92	-Wno-unused-parameter \
93	-Wno-missing-field-initializers \
94	-fvisibility=hidden \
95	-pipe \
96	-fPIC \
97	-Wno-unused-local-typedefs \
98	-Wno-format \
99	-msse2 \
100	-mfpmath=sse \
101	-mmmx \
102	-m32 \
103	-ffunction-sections \
104	-funwind-tables \
105	-g \
106	-fno-short-enums \
107	-finline-limit=64 \
108	-Wa,--noexecstack \
109	-U_FORTIFY_SOURCE \
110	-Wno-extra \
111	-Wno-ignored-qualifiers \
112	-Wno-type-limits \
113	-Wno-unused-but-set-variable \
114	-fno-stack-protector \
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-non-virtual-dtor \
181	-Wno-sign-promo \
182	-Wno-non-virtual-dtor
183
184
185LOCAL_FDO_SUPPORT_Debug := false
186
187# Flags passed to both C and C++ files.
188MY_CFLAGS_Release := \
189	--param=ssp-buffer-size=4 \
190	-fno-exceptions \
191	-fno-strict-aliasing \
192	-Wno-unused-parameter \
193	-Wno-missing-field-initializers \
194	-fvisibility=hidden \
195	-pipe \
196	-fPIC \
197	-Wno-unused-local-typedefs \
198	-Wno-format \
199	-msse2 \
200	-mfpmath=sse \
201	-mmmx \
202	-m32 \
203	-ffunction-sections \
204	-funwind-tables \
205	-g \
206	-fno-short-enums \
207	-finline-limit=64 \
208	-Wa,--noexecstack \
209	-U_FORTIFY_SOURCE \
210	-Wno-extra \
211	-Wno-ignored-qualifiers \
212	-Wno-type-limits \
213	-Wno-unused-but-set-variable \
214	-fno-stack-protector \
215	-Wno-address \
216	-Wno-format-security \
217	-Wno-return-type \
218	-Wno-sequence-point \
219	-Os \
220	-fno-ident \
221	-fdata-sections \
222	-ffunction-sections \
223	-fomit-frame-pointer \
224	-funwind-tables
225
226MY_DEFS_Release := \
227	'-DV8_DEPRECATION_WARNINGS' \
228	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
229	'-DANGLE_PRELOADED_D3DCOMPILER_MODULE_NAMES={ TEXT("d3dcompiler_46.dll"), TEXT("d3dcompiler_43.dll") }' \
230	'-D_FILE_OFFSET_BITS=64' \
231	'-DNO_TCMALLOC' \
232	'-DDISABLE_NACL' \
233	'-DCHROMIUM_BUILD' \
234	'-DUSE_LIBJPEG_TURBO=1' \
235	'-DENABLE_WEBRTC=1' \
236	'-DUSE_PROPRIETARY_CODECS' \
237	'-DENABLE_BROWSER_CDMS' \
238	'-DENABLE_CONFIGURATION_POLICY' \
239	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
240	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
241	'-DENABLE_EGLIMAGE=1' \
242	'-DCLD_VERSION=1' \
243	'-DENABLE_PRINTING=1' \
244	'-DENABLE_MANAGED_USERS=1' \
245	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
246	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
247	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
248	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
249	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
250	'-DVIDEO_HOLE=1' \
251	'-DNOMINMAX' \
252	'-DUSE_OPENSSL=1' \
253	'-DUSE_OPENSSL_CERTS=1' \
254	'-DANDROID' \
255	'-D__GNU_SOURCE=1' \
256	'-DUSE_STLPORT=1' \
257	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
258	'-DCHROME_BUILD_ID=""' \
259	'-DNDEBUG' \
260	'-DNVALGRIND' \
261	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
262
263
264# Include paths placed before CFLAGS/CPPFLAGS
265LOCAL_C_INCLUDES_Release := \
266	$(gyp_shared_intermediate_dir) \
267	$(LOCAL_PATH)/third_party/angle/src \
268	$(LOCAL_PATH)/third_party/angle/include \
269	$(PWD)/frameworks/wilhelm/include \
270	$(PWD)/bionic \
271	$(PWD)/external/stlport/stlport
272
273
274# Flags passed to only C++ (and not C) files.
275LOCAL_CPPFLAGS_Release := \
276	-fno-rtti \
277	-fno-threadsafe-statics \
278	-fvisibility-inlines-hidden \
279	-Wno-deprecated \
280	-Wno-non-virtual-dtor \
281	-Wno-sign-promo \
282	-Wno-non-virtual-dtor
283
284
285LOCAL_FDO_SUPPORT_Release := false
286
287LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
288LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION))
289LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
290LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
291LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
292### Rules for final target.
293
294LOCAL_LDFLAGS_Debug := \
295	-Wl,-z,now \
296	-Wl,-z,relro \
297	-Wl,--fatal-warnings \
298	-Wl,-z,noexecstack \
299	-fPIC \
300	-m32 \
301	-fuse-ld=gold \
302	-nostdlib \
303	-Wl,--no-undefined \
304	-Wl,--exclude-libs=ALL \
305	-Wl,--warn-shared-textrel \
306	-Wl,-O1 \
307	-Wl,--as-needed
308
309
310LOCAL_LDFLAGS_Release := \
311	-Wl,-z,now \
312	-Wl,-z,relro \
313	-Wl,--fatal-warnings \
314	-Wl,-z,noexecstack \
315	-fPIC \
316	-m32 \
317	-fuse-ld=gold \
318	-nostdlib \
319	-Wl,--no-undefined \
320	-Wl,--exclude-libs=ALL \
321	-Wl,-O1 \
322	-Wl,--as-needed \
323	-Wl,--gc-sections \
324	-Wl,--warn-shared-textrel
325
326
327LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
328
329LOCAL_STATIC_LIBRARIES :=
330
331# Enable grouping to fix circular references
332LOCAL_GROUP_STATIC_LIBRARIES := true
333
334LOCAL_SHARED_LIBRARIES := \
335	libstlport \
336	libdl
337
338# Add target alias to "gyp_all_modules" target.
339.PHONY: gyp_all_modules
340gyp_all_modules: third_party_angle_src_translator_lib_gyp
341
342# Alias gyp target name.
343.PHONY: translator_lib
344translator_lib: third_party_angle_src_translator_lib_gyp
345
346include $(BUILD_STATIC_LIBRARY)
347