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_preprocessor_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/compiler/preprocessor/DiagnosticsBase.cpp \
26	third_party/angle/src/compiler/preprocessor/DirectiveHandlerBase.cpp \
27	third_party/angle/src/compiler/preprocessor/DirectiveParser.cpp \
28	third_party/angle/src/compiler/preprocessor/ExpressionParser.cpp \
29	third_party/angle/src/compiler/preprocessor/Input.cpp \
30	third_party/angle/src/compiler/preprocessor/Lexer.cpp \
31	third_party/angle/src/compiler/preprocessor/Macro.cpp \
32	third_party/angle/src/compiler/preprocessor/MacroExpander.cpp \
33	third_party/angle/src/compiler/preprocessor/Preprocessor.cpp \
34	third_party/angle/src/compiler/preprocessor/Token.cpp \
35	third_party/angle/src/compiler/preprocessor/Tokenizer.cpp
36
37
38# Flags passed to both C and C++ files.
39MY_CFLAGS_Debug := \
40	-fstack-protector \
41	--param=ssp-buffer-size=4 \
42	-fno-strict-aliasing \
43	-Wno-unused-parameter \
44	-Wno-missing-field-initializers \
45	-fvisibility=hidden \
46	-pipe \
47	-fPIC \
48	-Wno-unused-local-typedefs \
49	-Wno-format \
50	-m64 \
51	-march=x86-64 \
52	-ffunction-sections \
53	-funwind-tables \
54	-g \
55	-fstack-protector \
56	-fno-short-enums \
57	-finline-limit=64 \
58	-Wa,--noexecstack \
59	-U_FORTIFY_SOURCE \
60	-Wno-extra \
61	-Wno-ignored-qualifiers \
62	-Wno-type-limits \
63	-Wno-unused-but-set-variable \
64	-Wno-address \
65	-Wno-format-security \
66	-Wno-return-type \
67	-Wno-sequence-point \
68	-Os \
69	-g \
70	-gdwarf-4 \
71	-fdata-sections \
72	-ffunction-sections \
73	-fomit-frame-pointer \
74	-funwind-tables
75
76MY_DEFS_Debug := \
77	'-DV8_DEPRECATION_WARNINGS' \
78	'-D_FILE_OFFSET_BITS=64' \
79	'-DNO_TCMALLOC' \
80	'-DDISABLE_NACL' \
81	'-DCHROMIUM_BUILD' \
82	'-DUSE_LIBJPEG_TURBO=1' \
83	'-DENABLE_WEBRTC=1' \
84	'-DUSE_PROPRIETARY_CODECS' \
85	'-DENABLE_BROWSER_CDMS' \
86	'-DENABLE_CONFIGURATION_POLICY' \
87	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
88	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
89	'-DENABLE_EGLIMAGE=1' \
90	'-DCLD_VERSION=1' \
91	'-DENABLE_PRINTING=1' \
92	'-DENABLE_MANAGED_USERS=1' \
93	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
94	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
95	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
96	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
97	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
98	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
99	'-DVIDEO_HOLE=1' \
100	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
101	'-DUSE_OPENSSL=1' \
102	'-DUSE_OPENSSL_CERTS=1' \
103	'-DANDROID' \
104	'-D__GNU_SOURCE=1' \
105	'-DUSE_STLPORT=1' \
106	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
107	'-DCHROME_BUILD_ID=""' \
108	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
109	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
110	'-D_DEBUG'
111
112
113# Include paths placed before CFLAGS/CPPFLAGS
114LOCAL_C_INCLUDES_Debug := \
115	$(gyp_shared_intermediate_dir) \
116	$(PWD)/frameworks/wilhelm/include \
117	$(PWD)/bionic \
118	$(PWD)/external/stlport/stlport
119
120
121# Flags passed to only C++ (and not C) files.
122LOCAL_CPPFLAGS_Debug := \
123	-fno-exceptions \
124	-fno-rtti \
125	-fno-threadsafe-statics \
126	-fvisibility-inlines-hidden \
127	-Wno-deprecated \
128	-std=gnu++11 \
129	-Wno-narrowing \
130	-Wno-literal-suffix \
131	-Wno-non-virtual-dtor \
132	-Wno-sign-promo \
133	-Wno-non-virtual-dtor
134
135
136# Flags passed to both C and C++ files.
137MY_CFLAGS_Release := \
138	-fstack-protector \
139	--param=ssp-buffer-size=4 \
140	-fno-strict-aliasing \
141	-Wno-unused-parameter \
142	-Wno-missing-field-initializers \
143	-fvisibility=hidden \
144	-pipe \
145	-fPIC \
146	-Wno-unused-local-typedefs \
147	-Wno-format \
148	-m64 \
149	-march=x86-64 \
150	-ffunction-sections \
151	-funwind-tables \
152	-g \
153	-fstack-protector \
154	-fno-short-enums \
155	-finline-limit=64 \
156	-Wa,--noexecstack \
157	-U_FORTIFY_SOURCE \
158	-Wno-extra \
159	-Wno-ignored-qualifiers \
160	-Wno-type-limits \
161	-Wno-unused-but-set-variable \
162	-Wno-address \
163	-Wno-format-security \
164	-Wno-return-type \
165	-Wno-sequence-point \
166	-Os \
167	-fno-ident \
168	-fdata-sections \
169	-ffunction-sections \
170	-fomit-frame-pointer \
171	-funwind-tables
172
173MY_DEFS_Release := \
174	'-DV8_DEPRECATION_WARNINGS' \
175	'-D_FILE_OFFSET_BITS=64' \
176	'-DNO_TCMALLOC' \
177	'-DDISABLE_NACL' \
178	'-DCHROMIUM_BUILD' \
179	'-DUSE_LIBJPEG_TURBO=1' \
180	'-DENABLE_WEBRTC=1' \
181	'-DUSE_PROPRIETARY_CODECS' \
182	'-DENABLE_BROWSER_CDMS' \
183	'-DENABLE_CONFIGURATION_POLICY' \
184	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
185	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
186	'-DENABLE_EGLIMAGE=1' \
187	'-DCLD_VERSION=1' \
188	'-DENABLE_PRINTING=1' \
189	'-DENABLE_MANAGED_USERS=1' \
190	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
191	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
192	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
193	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
194	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
195	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
196	'-DVIDEO_HOLE=1' \
197	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
198	'-DUSE_OPENSSL=1' \
199	'-DUSE_OPENSSL_CERTS=1' \
200	'-DANDROID' \
201	'-D__GNU_SOURCE=1' \
202	'-DUSE_STLPORT=1' \
203	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
204	'-DCHROME_BUILD_ID=""' \
205	'-DNDEBUG' \
206	'-DNVALGRIND' \
207	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
208
209
210# Include paths placed before CFLAGS/CPPFLAGS
211LOCAL_C_INCLUDES_Release := \
212	$(gyp_shared_intermediate_dir) \
213	$(PWD)/frameworks/wilhelm/include \
214	$(PWD)/bionic \
215	$(PWD)/external/stlport/stlport
216
217
218# Flags passed to only C++ (and not C) files.
219LOCAL_CPPFLAGS_Release := \
220	-fno-exceptions \
221	-fno-rtti \
222	-fno-threadsafe-statics \
223	-fvisibility-inlines-hidden \
224	-Wno-deprecated \
225	-std=gnu++11 \
226	-Wno-narrowing \
227	-Wno-literal-suffix \
228	-Wno-non-virtual-dtor \
229	-Wno-sign-promo \
230	-Wno-non-virtual-dtor
231
232
233LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
234LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
235LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
236LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
237### Rules for final target.
238
239LOCAL_SHARED_LIBRARIES := \
240	libstlport \
241	libdl
242
243# Add target alias to "gyp_all_modules" target.
244.PHONY: gyp_all_modules
245gyp_all_modules: third_party_angle_src_preprocessor_gyp
246
247# Alias gyp target name.
248.PHONY: preprocessor
249preprocessor: third_party_angle_src_preprocessor_gyp
250
251include $(BUILD_STATIC_LIBRARY)
252