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	-fstack-protector \
95	--param=ssp-buffer-size=4 \
96	-fno-strict-aliasing \
97	-Wno-unused-parameter \
98	-Wno-missing-field-initializers \
99	-fvisibility=hidden \
100	-pipe \
101	-fPIC \
102	-Wno-unused-local-typedefs \
103	-Wno-format \
104	-m64 \
105	-march=x86-64 \
106	-ffunction-sections \
107	-funwind-tables \
108	-g \
109	-fstack-protector \
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	-Wno-address \
119	-Wno-format-security \
120	-Wno-return-type \
121	-Wno-sequence-point \
122	-Os \
123	-g \
124	-gdwarf-4 \
125	-fdata-sections \
126	-ffunction-sections \
127	-fomit-frame-pointer \
128	-funwind-tables
129
130MY_DEFS_Debug := \
131	'-DV8_DEPRECATION_WARNINGS' \
132	'-D_FILE_OFFSET_BITS=64' \
133	'-DNO_TCMALLOC' \
134	'-DDISABLE_NACL' \
135	'-DCHROMIUM_BUILD' \
136	'-DUSE_LIBJPEG_TURBO=1' \
137	'-DENABLE_WEBRTC=1' \
138	'-DUSE_PROPRIETARY_CODECS' \
139	'-DENABLE_BROWSER_CDMS' \
140	'-DENABLE_CONFIGURATION_POLICY' \
141	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
142	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
143	'-DENABLE_EGLIMAGE=1' \
144	'-DCLD_VERSION=1' \
145	'-DENABLE_PRINTING=1' \
146	'-DENABLE_MANAGED_USERS=1' \
147	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
148	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
149	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
150	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
151	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
152	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
153	'-DVIDEO_HOLE=1' \
154	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
155	'-DANGLE_TRANSLATOR_STATIC' \
156	'-DUSE_OPENSSL=1' \
157	'-DUSE_OPENSSL_CERTS=1' \
158	'-DANDROID' \
159	'-D__GNU_SOURCE=1' \
160	'-DUSE_STLPORT=1' \
161	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
162	'-DCHROME_BUILD_ID=""' \
163	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
164	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
165	'-D_DEBUG'
166
167
168# Include paths placed before CFLAGS/CPPFLAGS
169LOCAL_C_INCLUDES_Debug := \
170	$(gyp_shared_intermediate_dir) \
171	$(LOCAL_PATH)/third_party/angle/src \
172	$(LOCAL_PATH)/third_party/angle/include \
173	$(PWD)/frameworks/wilhelm/include \
174	$(PWD)/bionic \
175	$(PWD)/external/stlport/stlport
176
177
178# Flags passed to only C++ (and not C) files.
179LOCAL_CPPFLAGS_Debug := \
180	-fno-exceptions \
181	-fno-rtti \
182	-fno-threadsafe-statics \
183	-fvisibility-inlines-hidden \
184	-Wno-deprecated \
185	-std=gnu++11 \
186	-Wno-narrowing \
187	-Wno-literal-suffix \
188	-Wno-non-virtual-dtor \
189	-Wno-sign-promo \
190	-Wno-non-virtual-dtor
191
192
193# Flags passed to both C and C++ files.
194MY_CFLAGS_Release := \
195	-fstack-protector \
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	-m64 \
206	-march=x86-64 \
207	-ffunction-sections \
208	-funwind-tables \
209	-g \
210	-fstack-protector \
211	-fno-short-enums \
212	-finline-limit=64 \
213	-Wa,--noexecstack \
214	-U_FORTIFY_SOURCE \
215	-Wno-extra \
216	-Wno-ignored-qualifiers \
217	-Wno-type-limits \
218	-Wno-unused-but-set-variable \
219	-Wno-address \
220	-Wno-format-security \
221	-Wno-return-type \
222	-Wno-sequence-point \
223	-Os \
224	-fno-ident \
225	-fdata-sections \
226	-ffunction-sections \
227	-fomit-frame-pointer \
228	-funwind-tables
229
230MY_DEFS_Release := \
231	'-DV8_DEPRECATION_WARNINGS' \
232	'-D_FILE_OFFSET_BITS=64' \
233	'-DNO_TCMALLOC' \
234	'-DDISABLE_NACL' \
235	'-DCHROMIUM_BUILD' \
236	'-DUSE_LIBJPEG_TURBO=1' \
237	'-DENABLE_WEBRTC=1' \
238	'-DUSE_PROPRIETARY_CODECS' \
239	'-DENABLE_BROWSER_CDMS' \
240	'-DENABLE_CONFIGURATION_POLICY' \
241	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
242	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
243	'-DENABLE_EGLIMAGE=1' \
244	'-DCLD_VERSION=1' \
245	'-DENABLE_PRINTING=1' \
246	'-DENABLE_MANAGED_USERS=1' \
247	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
248	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
249	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
250	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
251	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
252	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
253	'-DVIDEO_HOLE=1' \
254	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
255	'-DANGLE_TRANSLATOR_STATIC' \
256	'-DUSE_OPENSSL=1' \
257	'-DUSE_OPENSSL_CERTS=1' \
258	'-DANDROID' \
259	'-D__GNU_SOURCE=1' \
260	'-DUSE_STLPORT=1' \
261	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
262	'-DCHROME_BUILD_ID=""' \
263	'-DNDEBUG' \
264	'-DNVALGRIND' \
265	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
266
267
268# Include paths placed before CFLAGS/CPPFLAGS
269LOCAL_C_INCLUDES_Release := \
270	$(gyp_shared_intermediate_dir) \
271	$(LOCAL_PATH)/third_party/angle/src \
272	$(LOCAL_PATH)/third_party/angle/include \
273	$(PWD)/frameworks/wilhelm/include \
274	$(PWD)/bionic \
275	$(PWD)/external/stlport/stlport
276
277
278# Flags passed to only C++ (and not C) files.
279LOCAL_CPPFLAGS_Release := \
280	-fno-exceptions \
281	-fno-rtti \
282	-fno-threadsafe-statics \
283	-fvisibility-inlines-hidden \
284	-Wno-deprecated \
285	-std=gnu++11 \
286	-Wno-narrowing \
287	-Wno-literal-suffix \
288	-Wno-non-virtual-dtor \
289	-Wno-sign-promo \
290	-Wno-non-virtual-dtor
291
292
293LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
294LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
295LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
296LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
297### Rules for final target.
298
299LOCAL_SHARED_LIBRARIES := \
300	libstlport \
301	libdl
302
303# Add target alias to "gyp_all_modules" target.
304.PHONY: gyp_all_modules
305gyp_all_modules: third_party_angle_src_translator_lib_gyp
306
307# Alias gyp target name.
308.PHONY: translator_lib
309translator_lib: third_party_angle_src_translator_lib_gyp
310
311include $(BUILD_STATIC_LIBRARY)
312