1# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := STATIC_LIBRARIES
6LOCAL_MODULE := gin_gin_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	$(call intermediates-dir-for,GYP,v8_tools_gyp_v8_gyp,,,$(GYP_VAR_PREFIX))/v8.stamp
16
17GYP_GENERATED_OUTPUTS :=
18
19# Make sure our deps and generated files are built first.
20LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
21
22LOCAL_CPP_EXTENSION := .cc
23LOCAL_GENERATED_SOURCES :=
24
25GYP_COPIED_SOURCE_ORIGIN_DIRS :=
26
27LOCAL_SRC_FILES := \
28	gin/arguments.cc \
29	gin/array_buffer.cc \
30	gin/context_holder.cc \
31	gin/converter.cc \
32	gin/dictionary.cc \
33	gin/function_template.cc \
34	gin/interceptor.cc \
35	gin/isolate_holder.cc \
36	gin/modules/console.cc \
37	gin/modules/file_module_provider.cc \
38	gin/modules/module_registry.cc \
39	gin/modules/module_runner_delegate.cc \
40	gin/modules/timer.cc \
41	gin/object_template_builder.cc \
42	gin/per_context_data.cc \
43	gin/per_isolate_data.cc \
44	gin/runner.cc \
45	gin/shell_runner.cc \
46	gin/try_catch.cc \
47	gin/v8_platform.cc \
48	gin/wrappable.cc \
49	gin/wrapper_info.cc
50
51
52# Flags passed to both C and C++ files.
53MY_CFLAGS_Debug := \
54	-fstack-protector \
55	--param=ssp-buffer-size=4 \
56	-Werror \
57	-fno-exceptions \
58	-fno-strict-aliasing \
59	-Wall \
60	-Wno-unused-parameter \
61	-Wno-missing-field-initializers \
62	-fvisibility=hidden \
63	-pipe \
64	-fPIC \
65	-Wno-unused-local-typedefs \
66	-fno-tree-sra \
67	-fno-partial-inlining \
68	-fno-early-inlining \
69	-fno-tree-copy-prop \
70	-fno-tree-loop-optimize \
71	-fno-move-loop-invariants \
72	-fno-caller-saves \
73	-Wno-psabi \
74	-ffunction-sections \
75	-funwind-tables \
76	-g \
77	-fstack-protector \
78	-fno-short-enums \
79	-finline-limit=64 \
80	-Wa,--noexecstack \
81	-U_FORTIFY_SOURCE \
82	-Wno-extra \
83	-Wno-ignored-qualifiers \
84	-Wno-type-limits \
85	-Wno-unused-but-set-variable \
86	-Os \
87	-g \
88	-fdata-sections \
89	-ffunction-sections \
90	-fomit-frame-pointer \
91	-funwind-tables
92
93MY_DEFS_Debug := \
94	'-DV8_DEPRECATION_WARNINGS' \
95	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
96	'-D_FILE_OFFSET_BITS=64' \
97	'-DNO_TCMALLOC' \
98	'-DDISABLE_NACL' \
99	'-DCHROMIUM_BUILD' \
100	'-DUSE_LIBJPEG_TURBO=1' \
101	'-DENABLE_WEBRTC=1' \
102	'-DUSE_PROPRIETARY_CODECS' \
103	'-DENABLE_BROWSER_CDMS' \
104	'-DENABLE_CONFIGURATION_POLICY' \
105	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
106	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
107	'-DENABLE_EGLIMAGE=1' \
108	'-DCLD_VERSION=1' \
109	'-DENABLE_PRINTING=1' \
110	'-DENABLE_MANAGED_USERS=1' \
111	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
112	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
113	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
114	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
115	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
116	'-DVIDEO_HOLE=1' \
117	'-DGIN_IMPLEMENTATION' \
118	'-DUSE_OPENSSL=1' \
119	'-DUSE_OPENSSL_CERTS=1' \
120	'-D__STDC_CONSTANT_MACROS' \
121	'-D__STDC_FORMAT_MACROS' \
122	'-DANDROID' \
123	'-D__GNU_SOURCE=1' \
124	'-DUSE_STLPORT=1' \
125	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
126	'-DCHROME_BUILD_ID=""' \
127	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
128	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
129	'-D_DEBUG'
130
131
132# Include paths placed before CFLAGS/CPPFLAGS
133LOCAL_C_INCLUDES_Debug := \
134	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
135	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
136	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
137	$(gyp_shared_intermediate_dir) \
138	$(LOCAL_PATH) \
139	$(LOCAL_PATH)/v8/include \
140	$(PWD)/frameworks/wilhelm/include \
141	$(PWD)/bionic \
142	$(PWD)/external/stlport/stlport
143
144
145# Flags passed to only C++ (and not C) files.
146LOCAL_CPPFLAGS_Debug := \
147	-fno-rtti \
148	-fno-threadsafe-statics \
149	-fvisibility-inlines-hidden \
150	-Wsign-compare \
151	-Wno-abi \
152	-Wno-non-virtual-dtor \
153	-Wno-sign-promo
154
155
156LOCAL_FDO_SUPPORT_Debug := false
157
158# Flags passed to both C and C++ files.
159MY_CFLAGS_Release := \
160	-fstack-protector \
161	--param=ssp-buffer-size=4 \
162	-Werror \
163	-fno-exceptions \
164	-fno-strict-aliasing \
165	-Wall \
166	-Wno-unused-parameter \
167	-Wno-missing-field-initializers \
168	-fvisibility=hidden \
169	-pipe \
170	-fPIC \
171	-Wno-unused-local-typedefs \
172	-fno-tree-sra \
173	-fno-partial-inlining \
174	-fno-early-inlining \
175	-fno-tree-copy-prop \
176	-fno-tree-loop-optimize \
177	-fno-move-loop-invariants \
178	-fno-caller-saves \
179	-Wno-psabi \
180	-ffunction-sections \
181	-funwind-tables \
182	-g \
183	-fstack-protector \
184	-fno-short-enums \
185	-finline-limit=64 \
186	-Wa,--noexecstack \
187	-U_FORTIFY_SOURCE \
188	-Wno-extra \
189	-Wno-ignored-qualifiers \
190	-Wno-type-limits \
191	-Wno-unused-but-set-variable \
192	-Os \
193	-fno-ident \
194	-fdata-sections \
195	-ffunction-sections \
196	-fomit-frame-pointer \
197	-funwind-tables
198
199MY_DEFS_Release := \
200	'-DV8_DEPRECATION_WARNINGS' \
201	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
202	'-D_FILE_OFFSET_BITS=64' \
203	'-DNO_TCMALLOC' \
204	'-DDISABLE_NACL' \
205	'-DCHROMIUM_BUILD' \
206	'-DUSE_LIBJPEG_TURBO=1' \
207	'-DENABLE_WEBRTC=1' \
208	'-DUSE_PROPRIETARY_CODECS' \
209	'-DENABLE_BROWSER_CDMS' \
210	'-DENABLE_CONFIGURATION_POLICY' \
211	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
212	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
213	'-DENABLE_EGLIMAGE=1' \
214	'-DCLD_VERSION=1' \
215	'-DENABLE_PRINTING=1' \
216	'-DENABLE_MANAGED_USERS=1' \
217	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
218	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
219	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
220	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
221	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
222	'-DVIDEO_HOLE=1' \
223	'-DGIN_IMPLEMENTATION' \
224	'-DUSE_OPENSSL=1' \
225	'-DUSE_OPENSSL_CERTS=1' \
226	'-D__STDC_CONSTANT_MACROS' \
227	'-D__STDC_FORMAT_MACROS' \
228	'-DANDROID' \
229	'-D__GNU_SOURCE=1' \
230	'-DUSE_STLPORT=1' \
231	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
232	'-DCHROME_BUILD_ID=""' \
233	'-DNDEBUG' \
234	'-DNVALGRIND' \
235	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
236	'-D_FORTIFY_SOURCE=2'
237
238
239# Include paths placed before CFLAGS/CPPFLAGS
240LOCAL_C_INCLUDES_Release := \
241	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
242	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
243	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
244	$(gyp_shared_intermediate_dir) \
245	$(LOCAL_PATH) \
246	$(LOCAL_PATH)/v8/include \
247	$(PWD)/frameworks/wilhelm/include \
248	$(PWD)/bionic \
249	$(PWD)/external/stlport/stlport
250
251
252# Flags passed to only C++ (and not C) files.
253LOCAL_CPPFLAGS_Release := \
254	-fno-rtti \
255	-fno-threadsafe-statics \
256	-fvisibility-inlines-hidden \
257	-Wsign-compare \
258	-Wno-abi \
259	-Wno-non-virtual-dtor \
260	-Wno-sign-promo
261
262
263LOCAL_FDO_SUPPORT_Release := false
264
265LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
266LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION))
267LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
268LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
269LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
270### Rules for final target.
271
272LOCAL_LDFLAGS_Debug := \
273	-Wl,-z,now \
274	-Wl,-z,relro \
275	-Wl,--fatal-warnings \
276	-Wl,-z,noexecstack \
277	-fPIC \
278	-Wl,-z,relro \
279	-Wl,-z,now \
280	-fuse-ld=gold \
281	-nostdlib \
282	-Wl,--no-undefined \
283	-Wl,--exclude-libs=ALL \
284	-Wl,--icf=safe \
285	-Wl,--warn-shared-textrel \
286	-Wl,-O1 \
287	-Wl,--as-needed
288
289
290LOCAL_LDFLAGS_Release := \
291	-Wl,-z,now \
292	-Wl,-z,relro \
293	-Wl,--fatal-warnings \
294	-Wl,-z,noexecstack \
295	-fPIC \
296	-Wl,-z,relro \
297	-Wl,-z,now \
298	-fuse-ld=gold \
299	-nostdlib \
300	-Wl,--no-undefined \
301	-Wl,--exclude-libs=ALL \
302	-Wl,--icf=safe \
303	-Wl,-O1 \
304	-Wl,--as-needed \
305	-Wl,--gc-sections \
306	-Wl,--warn-shared-textrel
307
308
309LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
310
311LOCAL_STATIC_LIBRARIES :=
312
313# Enable grouping to fix circular references
314LOCAL_GROUP_STATIC_LIBRARIES := true
315
316LOCAL_SHARED_LIBRARIES := \
317	libstlport \
318	libdl
319
320# Add target alias to "gyp_all_modules" target.
321.PHONY: gyp_all_modules
322gyp_all_modules: gin_gin_gyp
323
324# Alias gyp target name.
325.PHONY: gin
326gin: gin_gin_gyp
327
328include $(BUILD_STATIC_LIBRARY)
329