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	-ffunction-sections \
100	-funwind-tables \
101	-g \
102	-fno-short-enums \
103	-finline-limit=64 \
104	-Wa,--noexecstack \
105	-U_FORTIFY_SOURCE \
106	-Wno-extra \
107	-Wno-ignored-qualifiers \
108	-Wno-type-limits \
109	-Wno-unused-but-set-variable \
110	-Wno-address \
111	-Wno-format-security \
112	-Wno-return-type \
113	-Wno-sequence-point \
114	-Os \
115	-g \
116	-fdata-sections \
117	-ffunction-sections \
118	-funwind-tables
119
120MY_DEFS_Debug := \
121	'-DV8_DEPRECATION_WARNINGS' \
122	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
123	'-DANGLE_PRELOADED_D3DCOMPILER_MODULE_NAMES={ TEXT("d3dcompiler_46.dll"), TEXT("d3dcompiler_43.dll") }' \
124	'-D_FILE_OFFSET_BITS=64' \
125	'-DNO_TCMALLOC' \
126	'-DDISABLE_NACL' \
127	'-DCHROMIUM_BUILD' \
128	'-DUSE_LIBJPEG_TURBO=1' \
129	'-DENABLE_WEBRTC=1' \
130	'-DUSE_PROPRIETARY_CODECS' \
131	'-DENABLE_BROWSER_CDMS' \
132	'-DENABLE_CONFIGURATION_POLICY' \
133	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
134	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
135	'-DENABLE_EGLIMAGE=1' \
136	'-DCLD_VERSION=1' \
137	'-DENABLE_PRINTING=1' \
138	'-DENABLE_MANAGED_USERS=1' \
139	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
140	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
141	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
142	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
143	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
144	'-DVIDEO_HOLE=1' \
145	'-DNOMINMAX' \
146	'-DUSE_OPENSSL=1' \
147	'-DUSE_OPENSSL_CERTS=1' \
148	'-DANDROID' \
149	'-D__GNU_SOURCE=1' \
150	'-DUSE_STLPORT=1' \
151	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
152	'-DCHROME_BUILD_ID=""' \
153	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
154	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
155	'-D_DEBUG'
156
157
158# Include paths placed before CFLAGS/CPPFLAGS
159LOCAL_C_INCLUDES_Debug := \
160	$(gyp_shared_intermediate_dir) \
161	$(LOCAL_PATH)/third_party/angle/src \
162	$(LOCAL_PATH)/third_party/angle/include \
163	$(PWD)/frameworks/wilhelm/include \
164	$(PWD)/bionic \
165	$(PWD)/external/stlport/stlport
166
167
168# Flags passed to only C++ (and not C) files.
169LOCAL_CPPFLAGS_Debug := \
170	-fno-rtti \
171	-fno-threadsafe-statics \
172	-fvisibility-inlines-hidden \
173	-Wno-deprecated \
174	-Wno-non-virtual-dtor \
175	-Wno-sign-promo \
176	-Wno-non-virtual-dtor
177
178
179LOCAL_FDO_SUPPORT_Debug := false
180
181# Flags passed to both C and C++ files.
182MY_CFLAGS_Release := \
183	--param=ssp-buffer-size=4 \
184	-fno-exceptions \
185	-fno-strict-aliasing \
186	-Wno-unused-parameter \
187	-Wno-missing-field-initializers \
188	-fvisibility=hidden \
189	-pipe \
190	-fPIC \
191	-Wno-unused-local-typedefs \
192	-Wno-format \
193	-ffunction-sections \
194	-funwind-tables \
195	-g \
196	-fno-short-enums \
197	-finline-limit=64 \
198	-Wa,--noexecstack \
199	-U_FORTIFY_SOURCE \
200	-Wno-extra \
201	-Wno-ignored-qualifiers \
202	-Wno-type-limits \
203	-Wno-unused-but-set-variable \
204	-Wno-address \
205	-Wno-format-security \
206	-Wno-return-type \
207	-Wno-sequence-point \
208	-Os \
209	-fno-ident \
210	-fdata-sections \
211	-ffunction-sections \
212	-funwind-tables
213
214MY_DEFS_Release := \
215	'-DV8_DEPRECATION_WARNINGS' \
216	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
217	'-DANGLE_PRELOADED_D3DCOMPILER_MODULE_NAMES={ TEXT("d3dcompiler_46.dll"), TEXT("d3dcompiler_43.dll") }' \
218	'-D_FILE_OFFSET_BITS=64' \
219	'-DNO_TCMALLOC' \
220	'-DDISABLE_NACL' \
221	'-DCHROMIUM_BUILD' \
222	'-DUSE_LIBJPEG_TURBO=1' \
223	'-DENABLE_WEBRTC=1' \
224	'-DUSE_PROPRIETARY_CODECS' \
225	'-DENABLE_BROWSER_CDMS' \
226	'-DENABLE_CONFIGURATION_POLICY' \
227	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
228	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
229	'-DENABLE_EGLIMAGE=1' \
230	'-DCLD_VERSION=1' \
231	'-DENABLE_PRINTING=1' \
232	'-DENABLE_MANAGED_USERS=1' \
233	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
234	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
235	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
236	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
237	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
238	'-DVIDEO_HOLE=1' \
239	'-DNOMINMAX' \
240	'-DUSE_OPENSSL=1' \
241	'-DUSE_OPENSSL_CERTS=1' \
242	'-DANDROID' \
243	'-D__GNU_SOURCE=1' \
244	'-DUSE_STLPORT=1' \
245	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
246	'-DCHROME_BUILD_ID=""' \
247	'-DNDEBUG' \
248	'-DNVALGRIND' \
249	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
250
251
252# Include paths placed before CFLAGS/CPPFLAGS
253LOCAL_C_INCLUDES_Release := \
254	$(gyp_shared_intermediate_dir) \
255	$(LOCAL_PATH)/third_party/angle/src \
256	$(LOCAL_PATH)/third_party/angle/include \
257	$(PWD)/frameworks/wilhelm/include \
258	$(PWD)/bionic \
259	$(PWD)/external/stlport/stlport
260
261
262# Flags passed to only C++ (and not C) files.
263LOCAL_CPPFLAGS_Release := \
264	-fno-rtti \
265	-fno-threadsafe-statics \
266	-fvisibility-inlines-hidden \
267	-Wno-deprecated \
268	-Wno-non-virtual-dtor \
269	-Wno-sign-promo \
270	-Wno-non-virtual-dtor
271
272
273LOCAL_FDO_SUPPORT_Release := false
274
275LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
276LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION))
277LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
278LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
279LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
280### Rules for final target.
281
282LOCAL_LDFLAGS_Debug := \
283	-Wl,-z,now \
284	-Wl,-z,relro \
285	-Wl,--fatal-warnings \
286	-Wl,-z,noexecstack \
287	-fPIC \
288	-nostdlib \
289	-Wl,--no-undefined \
290	-Wl,--exclude-libs=ALL \
291	-Wl,--warn-shared-textrel \
292	-Wl,-O1 \
293	-Wl,--as-needed
294
295
296LOCAL_LDFLAGS_Release := \
297	-Wl,-z,now \
298	-Wl,-z,relro \
299	-Wl,--fatal-warnings \
300	-Wl,-z,noexecstack \
301	-fPIC \
302	-nostdlib \
303	-Wl,--no-undefined \
304	-Wl,--exclude-libs=ALL \
305	-Wl,-O1 \
306	-Wl,--as-needed \
307	-Wl,--gc-sections \
308	-Wl,--warn-shared-textrel
309
310
311LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
312
313LOCAL_STATIC_LIBRARIES :=
314
315# Enable grouping to fix circular references
316LOCAL_GROUP_STATIC_LIBRARIES := true
317
318LOCAL_SHARED_LIBRARIES := \
319	libstlport \
320	libdl
321
322# Add target alias to "gyp_all_modules" target.
323.PHONY: gyp_all_modules
324gyp_all_modules: third_party_angle_src_translator_lib_gyp
325
326# Alias gyp target name.
327.PHONY: translator_lib
328translator_lib: third_party_angle_src_translator_lib_gyp
329
330include $(BUILD_STATIC_LIBRARY)
331