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_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH)
9gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX))
10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX))
11
12# Make sure our deps are built first.
13GYP_TARGET_DEPENDENCIES :=
14
15GYP_GENERATED_OUTPUTS :=
16
17# Make sure our deps and generated files are built first.
18LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
19
20LOCAL_GENERATED_SOURCES :=
21
22GYP_COPIED_SOURCE_ORIGIN_DIRS :=
23
24LOCAL_SRC_FILES := \
25	third_party/angle/src/common/RefCountObject.cpp \
26	third_party/angle/src/common/blocklayout.cpp \
27	third_party/angle/src/common/debug.cpp \
28	third_party/angle/src/common/event_tracer.cpp \
29	third_party/angle/src/common/mathutil.cpp \
30	third_party/angle/src/common/tls.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/IntermNode.cpp \
49	third_party/angle/src/compiler/translator/LoopInfo.cpp \
50	third_party/angle/src/compiler/translator/OutputESSL.cpp \
51	third_party/angle/src/compiler/translator/OutputGLSL.cpp \
52	third_party/angle/src/compiler/translator/OutputGLSLBase.cpp \
53	third_party/angle/src/compiler/translator/OutputHLSL.cpp \
54	third_party/angle/src/compiler/translator/ParseContext.cpp \
55	third_party/angle/src/compiler/translator/PoolAlloc.cpp \
56	third_party/angle/src/compiler/translator/QualifierAlive.cpp \
57	third_party/angle/src/compiler/translator/RegenerateStructNames.cpp \
58	third_party/angle/src/compiler/translator/RemoveTree.cpp \
59	third_party/angle/src/compiler/translator/RewriteElseBlocks.cpp \
60	third_party/angle/src/compiler/translator/ScalarizeVecAndMatConstructorArgs.cpp \
61	third_party/angle/src/compiler/translator/SearchSymbol.cpp \
62	third_party/angle/src/compiler/translator/StructureHLSL.cpp \
63	third_party/angle/src/compiler/translator/SymbolTable.cpp \
64	third_party/angle/src/compiler/translator/TranslatorESSL.cpp \
65	third_party/angle/src/compiler/translator/TranslatorGLSL.cpp \
66	third_party/angle/src/compiler/translator/TranslatorHLSL.cpp \
67	third_party/angle/src/compiler/translator/Types.cpp \
68	third_party/angle/src/compiler/translator/UnfoldShortCircuit.cpp \
69	third_party/angle/src/compiler/translator/UnfoldShortCircuitAST.cpp \
70	third_party/angle/src/compiler/translator/UniformHLSL.cpp \
71	third_party/angle/src/compiler/translator/UtilsHLSL.cpp \
72	third_party/angle/src/compiler/translator/ValidateLimitations.cpp \
73	third_party/angle/src/compiler/translator/ValidateOutputs.cpp \
74	third_party/angle/src/compiler/translator/VariableInfo.cpp \
75	third_party/angle/src/compiler/translator/VariablePacker.cpp \
76	third_party/angle/src/compiler/translator/VersionGLSL.cpp \
77	third_party/angle/src/compiler/translator/compilerdebug.cpp \
78	third_party/angle/src/compiler/translator/depgraph/DependencyGraph.cpp \
79	third_party/angle/src/compiler/translator/depgraph/DependencyGraphBuilder.cpp \
80	third_party/angle/src/compiler/translator/depgraph/DependencyGraphOutput.cpp \
81	third_party/angle/src/compiler/translator/depgraph/DependencyGraphTraverse.cpp \
82	third_party/angle/src/compiler/translator/glslang_lex.cpp \
83	third_party/angle/src/compiler/translator/glslang_tab.cpp \
84	third_party/angle/src/compiler/translator/intermOut.cpp \
85	third_party/angle/src/compiler/translator/parseConst.cpp \
86	third_party/angle/src/compiler/translator/timing/RestrictFragmentShaderTiming.cpp \
87	third_party/angle/src/compiler/translator/timing/RestrictVertexShaderTiming.cpp \
88	third_party/angle/src/compiler/translator/util.cpp \
89	third_party/angle/src/third_party/compiler/ArrayBoundsClamper.cpp
90
91
92# Flags passed to both C and C++ files.
93MY_CFLAGS_Debug := \
94	--param=ssp-buffer-size=4 \
95	-fno-strict-aliasing \
96	-Wno-unused-parameter \
97	-Wno-missing-field-initializers \
98	-fvisibility=hidden \
99	-pipe \
100	-fPIC \
101	-Wno-unused-local-typedefs \
102	-Wno-format \
103	-msse2 \
104	-mfpmath=sse \
105	-mmmx \
106	-m32 \
107	-ffunction-sections \
108	-funwind-tables \
109	-g \
110	-fno-short-enums \
111	-finline-limit=64 \
112	-Wa,--noexecstack \
113	-U_FORTIFY_SOURCE \
114	-Wno-extra \
115	-Wno-ignored-qualifiers \
116	-Wno-type-limits \
117	-Wno-unused-but-set-variable \
118	-fno-stack-protector \
119	-Wno-address \
120	-Wno-format-security \
121	-Wno-return-type \
122	-Wno-sequence-point \
123	-Os \
124	-g \
125	-gdwarf-4 \
126	-fdata-sections \
127	-ffunction-sections \
128	-fomit-frame-pointer \
129	-funwind-tables
130
131MY_DEFS_Debug := \
132	'-DV8_DEPRECATION_WARNINGS' \
133	'-D_FILE_OFFSET_BITS=64' \
134	'-DNO_TCMALLOC' \
135	'-DDISABLE_NACL' \
136	'-DCHROMIUM_BUILD' \
137	'-DUSE_LIBJPEG_TURBO=1' \
138	'-DENABLE_WEBRTC=1' \
139	'-DUSE_PROPRIETARY_CODECS' \
140	'-DENABLE_BROWSER_CDMS' \
141	'-DENABLE_CONFIGURATION_POLICY' \
142	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
143	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
144	'-DENABLE_EGLIMAGE=1' \
145	'-DCLD_VERSION=1' \
146	'-DENABLE_PRINTING=1' \
147	'-DENABLE_MANAGED_USERS=1' \
148	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
149	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
150	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
151	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
152	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
153	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
154	'-DVIDEO_HOLE=1' \
155	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
156	'-DANGLE_TRANSLATOR_STATIC' \
157	'-DUSE_OPENSSL=1' \
158	'-DUSE_OPENSSL_CERTS=1' \
159	'-DANDROID' \
160	'-D__GNU_SOURCE=1' \
161	'-DUSE_STLPORT=1' \
162	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
163	'-DCHROME_BUILD_ID=""' \
164	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
165	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
166	'-D_DEBUG'
167
168
169# Include paths placed before CFLAGS/CPPFLAGS
170LOCAL_C_INCLUDES_Debug := \
171	$(gyp_shared_intermediate_dir) \
172	$(LOCAL_PATH)/third_party/angle/src \
173	$(LOCAL_PATH)/third_party/angle/include \
174	$(PWD)/frameworks/wilhelm/include \
175	$(PWD)/bionic \
176	$(PWD)/external/stlport/stlport
177
178
179# Flags passed to only C++ (and not C) files.
180LOCAL_CPPFLAGS_Debug := \
181	-fno-exceptions \
182	-fno-rtti \
183	-fno-threadsafe-statics \
184	-fvisibility-inlines-hidden \
185	-Wno-deprecated \
186	-std=gnu++11 \
187	-Wno-narrowing \
188	-Wno-literal-suffix \
189	-Wno-non-virtual-dtor \
190	-Wno-sign-promo \
191	-Wno-non-virtual-dtor
192
193
194# Flags passed to both C and C++ files.
195MY_CFLAGS_Release := \
196	--param=ssp-buffer-size=4 \
197	-fno-strict-aliasing \
198	-Wno-unused-parameter \
199	-Wno-missing-field-initializers \
200	-fvisibility=hidden \
201	-pipe \
202	-fPIC \
203	-Wno-unused-local-typedefs \
204	-Wno-format \
205	-msse2 \
206	-mfpmath=sse \
207	-mmmx \
208	-m32 \
209	-ffunction-sections \
210	-funwind-tables \
211	-g \
212	-fno-short-enums \
213	-finline-limit=64 \
214	-Wa,--noexecstack \
215	-U_FORTIFY_SOURCE \
216	-Wno-extra \
217	-Wno-ignored-qualifiers \
218	-Wno-type-limits \
219	-Wno-unused-but-set-variable \
220	-fno-stack-protector \
221	-Wno-address \
222	-Wno-format-security \
223	-Wno-return-type \
224	-Wno-sequence-point \
225	-Os \
226	-fno-ident \
227	-fdata-sections \
228	-ffunction-sections \
229	-fomit-frame-pointer \
230	-funwind-tables
231
232MY_DEFS_Release := \
233	'-DV8_DEPRECATION_WARNINGS' \
234	'-D_FILE_OFFSET_BITS=64' \
235	'-DNO_TCMALLOC' \
236	'-DDISABLE_NACL' \
237	'-DCHROMIUM_BUILD' \
238	'-DUSE_LIBJPEG_TURBO=1' \
239	'-DENABLE_WEBRTC=1' \
240	'-DUSE_PROPRIETARY_CODECS' \
241	'-DENABLE_BROWSER_CDMS' \
242	'-DENABLE_CONFIGURATION_POLICY' \
243	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
244	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
245	'-DENABLE_EGLIMAGE=1' \
246	'-DCLD_VERSION=1' \
247	'-DENABLE_PRINTING=1' \
248	'-DENABLE_MANAGED_USERS=1' \
249	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
250	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
251	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
252	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
253	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
254	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
255	'-DVIDEO_HOLE=1' \
256	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
257	'-DANGLE_TRANSLATOR_STATIC' \
258	'-DUSE_OPENSSL=1' \
259	'-DUSE_OPENSSL_CERTS=1' \
260	'-DANDROID' \
261	'-D__GNU_SOURCE=1' \
262	'-DUSE_STLPORT=1' \
263	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
264	'-DCHROME_BUILD_ID=""' \
265	'-DNDEBUG' \
266	'-DNVALGRIND' \
267	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
268
269
270# Include paths placed before CFLAGS/CPPFLAGS
271LOCAL_C_INCLUDES_Release := \
272	$(gyp_shared_intermediate_dir) \
273	$(LOCAL_PATH)/third_party/angle/src \
274	$(LOCAL_PATH)/third_party/angle/include \
275	$(PWD)/frameworks/wilhelm/include \
276	$(PWD)/bionic \
277	$(PWD)/external/stlport/stlport
278
279
280# Flags passed to only C++ (and not C) files.
281LOCAL_CPPFLAGS_Release := \
282	-fno-exceptions \
283	-fno-rtti \
284	-fno-threadsafe-statics \
285	-fvisibility-inlines-hidden \
286	-Wno-deprecated \
287	-std=gnu++11 \
288	-Wno-narrowing \
289	-Wno-literal-suffix \
290	-Wno-non-virtual-dtor \
291	-Wno-sign-promo \
292	-Wno-non-virtual-dtor
293
294
295LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
296LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
297LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
298LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
299### Rules for final target.
300
301LOCAL_SHARED_LIBRARIES := \
302	libstlport \
303	libdl
304
305# Add target alias to "gyp_all_modules" target.
306.PHONY: gyp_all_modules
307gyp_all_modules: third_party_angle_src_translator_lib_gyp
308
309# Alias gyp target name.
310.PHONY: translator_lib
311translator_lib: third_party_angle_src_translator_lib_gyp
312
313include $(BUILD_STATIC_LIBRARY)
314