• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := STATIC_LIBRARIES
6LOCAL_MODULE := v8_tools_gyp_v8_base_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,third_party_icu_icui18n_gyp,,,$(GYP_VAR_PREFIX))/icui18n.stamp \
16	$(call intermediates-dir-for,GYP,third_party_icu_icuuc_gyp,,,$(GYP_VAR_PREFIX))/icuuc.stamp
17
18GYP_GENERATED_OUTPUTS :=
19
20# Make sure our deps and generated files are built first.
21LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
22
23LOCAL_CPP_EXTENSION := .cc
24LOCAL_GENERATED_SOURCES :=
25
26GYP_COPIED_SOURCE_ORIGIN_DIRS :=
27
28LOCAL_SRC_FILES := \
29	v8/src/accessors.cc \
30	v8/src/allocation.cc \
31	v8/src/allocation-site-scopes.cc \
32	v8/src/allocation-tracker.cc \
33	v8/src/api.cc \
34	v8/src/arguments.cc \
35	v8/src/assembler.cc \
36	v8/src/assert-scope.cc \
37	v8/src/ast.cc \
38	v8/src/bignum-dtoa.cc \
39	v8/src/bignum.cc \
40	v8/src/bootstrapper.cc \
41	v8/src/builtins.cc \
42	v8/src/cached-powers.cc \
43	v8/src/checks.cc \
44	v8/src/code-stubs.cc \
45	v8/src/code-stubs-hydrogen.cc \
46	v8/src/codegen.cc \
47	v8/src/compilation-cache.cc \
48	v8/src/compiler.cc \
49	v8/src/contexts.cc \
50	v8/src/conversions.cc \
51	v8/src/counters.cc \
52	v8/src/cpu-profiler.cc \
53	v8/src/cpu.cc \
54	v8/src/data-flow.cc \
55	v8/src/date.cc \
56	v8/src/dateparser.cc \
57	v8/src/debug.cc \
58	v8/src/deoptimizer.cc \
59	v8/src/disassembler.cc \
60	v8/src/diy-fp.cc \
61	v8/src/dtoa.cc \
62	v8/src/elements-kind.cc \
63	v8/src/elements.cc \
64	v8/src/execution.cc \
65	v8/src/extensions/externalize-string-extension.cc \
66	v8/src/extensions/free-buffer-extension.cc \
67	v8/src/extensions/gc-extension.cc \
68	v8/src/extensions/statistics-extension.cc \
69	v8/src/extensions/trigger-failure-extension.cc \
70	v8/src/factory.cc \
71	v8/src/fast-dtoa.cc \
72	v8/src/field-index.cc \
73	v8/src/fixed-dtoa.cc \
74	v8/src/flags.cc \
75	v8/src/frames.cc \
76	v8/src/full-codegen.cc \
77	v8/src/func-name-inferrer.cc \
78	v8/src/gdb-jit.cc \
79	v8/src/global-handles.cc \
80	v8/src/handles.cc \
81	v8/src/heap-profiler.cc \
82	v8/src/heap-snapshot-generator.cc \
83	v8/src/heap.cc \
84	v8/src/hydrogen-bce.cc \
85	v8/src/hydrogen-bch.cc \
86	v8/src/hydrogen-canonicalize.cc \
87	v8/src/hydrogen-check-elimination.cc \
88	v8/src/hydrogen-dce.cc \
89	v8/src/hydrogen-dehoist.cc \
90	v8/src/hydrogen-environment-liveness.cc \
91	v8/src/hydrogen-escape-analysis.cc \
92	v8/src/hydrogen-instructions.cc \
93	v8/src/hydrogen.cc \
94	v8/src/hydrogen-gvn.cc \
95	v8/src/hydrogen-infer-representation.cc \
96	v8/src/hydrogen-infer-types.cc \
97	v8/src/hydrogen-load-elimination.cc \
98	v8/src/hydrogen-mark-deoptimize.cc \
99	v8/src/hydrogen-mark-unreachable.cc \
100	v8/src/hydrogen-osr.cc \
101	v8/src/hydrogen-range-analysis.cc \
102	v8/src/hydrogen-redundant-phi.cc \
103	v8/src/hydrogen-removable-simulates.cc \
104	v8/src/hydrogen-representation-changes.cc \
105	v8/src/hydrogen-sce.cc \
106	v8/src/hydrogen-store-elimination.cc \
107	v8/src/hydrogen-types.cc \
108	v8/src/hydrogen-uint32-analysis.cc \
109	v8/src/i18n.cc \
110	v8/src/icu_util.cc \
111	v8/src/ic.cc \
112	v8/src/incremental-marking.cc \
113	v8/src/interface.cc \
114	v8/src/interpreter-irregexp.cc \
115	v8/src/isolate.cc \
116	v8/src/jsregexp.cc \
117	v8/src/libplatform/default-platform.cc \
118	v8/src/libplatform/task-queue.cc \
119	v8/src/libplatform/worker-thread.cc \
120	v8/src/lithium-allocator.cc \
121	v8/src/lithium-codegen.cc \
122	v8/src/lithium.cc \
123	v8/src/liveedit.cc \
124	v8/src/log-utils.cc \
125	v8/src/log.cc \
126	v8/src/lookup.cc \
127	v8/src/mark-compact.cc \
128	v8/src/messages.cc \
129	v8/src/objects-debug.cc \
130	v8/src/objects-printer.cc \
131	v8/src/objects-visiting.cc \
132	v8/src/objects.cc \
133	v8/src/optimizing-compiler-thread.cc \
134	v8/src/parser.cc \
135	v8/src/platform/time.cc \
136	v8/src/platform/condition-variable.cc \
137	v8/src/platform/mutex.cc \
138	v8/src/platform/semaphore.cc \
139	v8/src/preparse-data.cc \
140	v8/src/preparser.cc \
141	v8/src/prettyprinter.cc \
142	v8/src/profile-generator.cc \
143	v8/src/property.cc \
144	v8/src/regexp-macro-assembler-irregexp.cc \
145	v8/src/regexp-macro-assembler-tracer.cc \
146	v8/src/regexp-macro-assembler.cc \
147	v8/src/regexp-stack.cc \
148	v8/src/rewriter.cc \
149	v8/src/runtime-profiler.cc \
150	v8/src/runtime.cc \
151	v8/src/safepoint-table.cc \
152	v8/src/sampler.cc \
153	v8/src/scanner-character-streams.cc \
154	v8/src/scanner.cc \
155	v8/src/scopeinfo.cc \
156	v8/src/scopes.cc \
157	v8/src/serialize.cc \
158	v8/src/snapshot-common.cc \
159	v8/src/spaces.cc \
160	v8/src/store-buffer.cc \
161	v8/src/string-search.cc \
162	v8/src/string-stream.cc \
163	v8/src/strtod.cc \
164	v8/src/stub-cache.cc \
165	v8/src/sweeper-thread.cc \
166	v8/src/token.cc \
167	v8/src/transitions.cc \
168	v8/src/type-info.cc \
169	v8/src/types.cc \
170	v8/src/typing.cc \
171	v8/src/unicode.cc \
172	v8/src/utils.cc \
173	v8/src/utils/random-number-generator.cc \
174	v8/src/v8.cc \
175	v8/src/v8threads.cc \
176	v8/src/variables.cc \
177	v8/src/version.cc \
178	v8/src/zone.cc \
179	v8/src/ia32/assembler-ia32.cc \
180	v8/src/ia32/builtins-ia32.cc \
181	v8/src/ia32/code-stubs-ia32.cc \
182	v8/src/ia32/codegen-ia32.cc \
183	v8/src/ia32/cpu-ia32.cc \
184	v8/src/ia32/debug-ia32.cc \
185	v8/src/ia32/deoptimizer-ia32.cc \
186	v8/src/ia32/disasm-ia32.cc \
187	v8/src/ia32/frames-ia32.cc \
188	v8/src/ia32/full-codegen-ia32.cc \
189	v8/src/ia32/ic-ia32.cc \
190	v8/src/ia32/lithium-codegen-ia32.cc \
191	v8/src/ia32/lithium-gap-resolver-ia32.cc \
192	v8/src/ia32/lithium-ia32.cc \
193	v8/src/ia32/macro-assembler-ia32.cc \
194	v8/src/ia32/regexp-macro-assembler-ia32.cc \
195	v8/src/ia32/stub-cache-ia32.cc \
196	v8/src/platform-posix.cc \
197	v8/src/platform-linux.cc
198
199
200# Flags passed to both C and C++ files.
201MY_CFLAGS_Debug := \
202	--param=ssp-buffer-size=4 \
203	-fno-exceptions \
204	-fno-strict-aliasing \
205	-Wno-unused-parameter \
206	-Wno-missing-field-initializers \
207	-fvisibility=hidden \
208	-pipe \
209	-fPIC \
210	-Wno-unused-local-typedefs \
211	-Wno-format \
212	-msse2 \
213	-mfpmath=sse \
214	-mmmx \
215	-m32 \
216	-ffunction-sections \
217	-funwind-tables \
218	-g \
219	-fno-short-enums \
220	-finline-limit=64 \
221	-Wa,--noexecstack \
222	-U_FORTIFY_SOURCE \
223	-Wno-extra \
224	-Wno-ignored-qualifiers \
225	-Wno-type-limits \
226	-Wno-unused-but-set-variable \
227	-fno-stack-protector \
228	-Wno-address \
229	-Wno-format-security \
230	-Wno-return-type \
231	-Wno-sequence-point \
232	-Os \
233	-g \
234	-fdata-sections \
235	-ffunction-sections \
236	-fomit-frame-pointer \
237	-funwind-tables
238
239MY_DEFS_Debug := \
240	'-DV8_DEPRECATION_WARNINGS' \
241	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
242	'-D_FILE_OFFSET_BITS=64' \
243	'-DNO_TCMALLOC' \
244	'-DDISABLE_NACL' \
245	'-DCHROMIUM_BUILD' \
246	'-DUSE_LIBJPEG_TURBO=1' \
247	'-DENABLE_WEBRTC=1' \
248	'-DUSE_PROPRIETARY_CODECS' \
249	'-DENABLE_BROWSER_CDMS' \
250	'-DENABLE_CONFIGURATION_POLICY' \
251	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
252	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
253	'-DENABLE_EGLIMAGE=1' \
254	'-DCLD_VERSION=1' \
255	'-DENABLE_PRINTING=1' \
256	'-DENABLE_MANAGED_USERS=1' \
257	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
258	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
259	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
260	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
261	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
262	'-DVIDEO_HOLE=1' \
263	'-DV8_TARGET_ARCH_IA32' \
264	'-DV8_I18N_SUPPORT' \
265	'-DCAN_USE_VFP_INSTRUCTIONS' \
266	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
267	'-DU_USING_ICU_NAMESPACE=0' \
268	'-DUSE_OPENSSL=1' \
269	'-DUSE_OPENSSL_CERTS=1' \
270	'-DANDROID' \
271	'-D__GNU_SOURCE=1' \
272	'-DUSE_STLPORT=1' \
273	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
274	'-DCHROME_BUILD_ID=""' \
275	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
276	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
277	'-D_DEBUG' \
278	'-DENABLE_DISASSEMBLER' \
279	'-DV8_ENABLE_CHECKS' \
280	'-DOBJECT_PRINT' \
281	'-DVERIFY_HEAP' \
282	'-DENABLE_EXTRA_CHECKS' \
283	'-DENABLE_HANDLE_ZAPPING'
284
285
286# Include paths placed before CFLAGS/CPPFLAGS
287LOCAL_C_INCLUDES_Debug := \
288	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
289	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
290	$(LOCAL_PATH)/v8 \
291	$(gyp_shared_intermediate_dir) \
292	$(PWD)/external/icu/icu4c/source/common \
293	$(PWD)/external/icu/icu4c/source/i18n \
294	$(PWD)/frameworks/wilhelm/include \
295	$(PWD)/bionic \
296	$(PWD)/external/stlport/stlport
297
298
299# Flags passed to only C++ (and not C) files.
300LOCAL_CPPFLAGS_Debug := \
301	-fno-rtti \
302	-fno-threadsafe-statics \
303	-fvisibility-inlines-hidden \
304	-Wno-deprecated \
305	-Wno-non-virtual-dtor \
306	-Wno-sign-promo \
307	-Wno-non-virtual-dtor
308
309
310LOCAL_FDO_SUPPORT_Debug := false
311
312# Flags passed to both C and C++ files.
313MY_CFLAGS_Release := \
314	--param=ssp-buffer-size=4 \
315	-fno-exceptions \
316	-fno-strict-aliasing \
317	-Wno-unused-parameter \
318	-Wno-missing-field-initializers \
319	-fvisibility=hidden \
320	-pipe \
321	-fPIC \
322	-Wno-unused-local-typedefs \
323	-Wno-format \
324	-msse2 \
325	-mfpmath=sse \
326	-mmmx \
327	-m32 \
328	-ffunction-sections \
329	-funwind-tables \
330	-g \
331	-fno-short-enums \
332	-finline-limit=64 \
333	-Wa,--noexecstack \
334	-U_FORTIFY_SOURCE \
335	-Wno-extra \
336	-Wno-ignored-qualifiers \
337	-Wno-type-limits \
338	-Wno-unused-but-set-variable \
339	-fno-stack-protector \
340	-Wno-address \
341	-Wno-format-security \
342	-Wno-return-type \
343	-Wno-sequence-point \
344	-fno-ident \
345	-fdata-sections \
346	-ffunction-sections \
347	-fomit-frame-pointer \
348	-funwind-tables \
349	-fdata-sections \
350	-ffunction-sections \
351	-O2
352
353MY_DEFS_Release := \
354	'-DV8_DEPRECATION_WARNINGS' \
355	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
356	'-D_FILE_OFFSET_BITS=64' \
357	'-DNO_TCMALLOC' \
358	'-DDISABLE_NACL' \
359	'-DCHROMIUM_BUILD' \
360	'-DUSE_LIBJPEG_TURBO=1' \
361	'-DENABLE_WEBRTC=1' \
362	'-DUSE_PROPRIETARY_CODECS' \
363	'-DENABLE_BROWSER_CDMS' \
364	'-DENABLE_CONFIGURATION_POLICY' \
365	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
366	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
367	'-DENABLE_EGLIMAGE=1' \
368	'-DCLD_VERSION=1' \
369	'-DENABLE_PRINTING=1' \
370	'-DENABLE_MANAGED_USERS=1' \
371	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
372	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
373	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
374	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
375	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
376	'-DVIDEO_HOLE=1' \
377	'-DV8_TARGET_ARCH_IA32' \
378	'-DV8_I18N_SUPPORT' \
379	'-DCAN_USE_VFP_INSTRUCTIONS' \
380	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
381	'-DU_USING_ICU_NAMESPACE=0' \
382	'-DUSE_OPENSSL=1' \
383	'-DUSE_OPENSSL_CERTS=1' \
384	'-DANDROID' \
385	'-D__GNU_SOURCE=1' \
386	'-DUSE_STLPORT=1' \
387	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
388	'-DCHROME_BUILD_ID=""' \
389	'-DNDEBUG' \
390	'-DNVALGRIND' \
391	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
392
393
394# Include paths placed before CFLAGS/CPPFLAGS
395LOCAL_C_INCLUDES_Release := \
396	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
397	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
398	$(LOCAL_PATH)/v8 \
399	$(gyp_shared_intermediate_dir) \
400	$(PWD)/external/icu/icu4c/source/common \
401	$(PWD)/external/icu/icu4c/source/i18n \
402	$(PWD)/frameworks/wilhelm/include \
403	$(PWD)/bionic \
404	$(PWD)/external/stlport/stlport
405
406
407# Flags passed to only C++ (and not C) files.
408LOCAL_CPPFLAGS_Release := \
409	-fno-rtti \
410	-fno-threadsafe-statics \
411	-fvisibility-inlines-hidden \
412	-Wno-deprecated \
413	-Wno-non-virtual-dtor \
414	-Wno-sign-promo \
415	-Wno-non-virtual-dtor
416
417
418LOCAL_FDO_SUPPORT_Release := true
419
420LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
421LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION))
422LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
423LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
424LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
425### Rules for final target.
426
427LOCAL_LDFLAGS_Debug := \
428	-Wl,-z,now \
429	-Wl,-z,relro \
430	-Wl,--fatal-warnings \
431	-Wl,-z,noexecstack \
432	-fPIC \
433	-m32 \
434	-fuse-ld=gold \
435	-nostdlib \
436	-Wl,--no-undefined \
437	-Wl,--exclude-libs=ALL \
438	-Wl,--warn-shared-textrel \
439	-Wl,-O1 \
440	-Wl,--as-needed
441
442
443LOCAL_LDFLAGS_Release := \
444	-Wl,-z,now \
445	-Wl,-z,relro \
446	-Wl,--fatal-warnings \
447	-Wl,-z,noexecstack \
448	-fPIC \
449	-m32 \
450	-fuse-ld=gold \
451	-nostdlib \
452	-Wl,--no-undefined \
453	-Wl,--exclude-libs=ALL \
454	-Wl,-O1 \
455	-Wl,--as-needed \
456	-Wl,--gc-sections \
457	-Wl,--warn-shared-textrel
458
459
460LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
461
462LOCAL_STATIC_LIBRARIES :=
463
464# Enable grouping to fix circular references
465LOCAL_GROUP_STATIC_LIBRARIES := true
466
467LOCAL_SHARED_LIBRARIES := \
468	libstlport \
469	libdl
470
471# Add target alias to "gyp_all_modules" target.
472.PHONY: gyp_all_modules
473gyp_all_modules: v8_tools_gyp_v8_base_gyp
474
475# Alias gyp target name.
476.PHONY: v8_base
477v8_base: v8_tools_gyp_v8_base_gyp
478
479include $(BUILD_STATIC_LIBRARY)
480