• 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_libplatform_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp
7LOCAL_MODULE_SUFFIX := .a
8LOCAL_IS_HOST_MODULE := true
9LOCAL_MULTILIB := $(GYP_HOST_MULTILIB)
10gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_HOST_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
16GYP_GENERATED_OUTPUTS :=
17
18# Make sure our deps and generated files are built first.
19LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
20
21LOCAL_CPP_EXTENSION := .cc
22LOCAL_GENERATED_SOURCES :=
23
24GYP_COPIED_SOURCE_ORIGIN_DIRS :=
25
26LOCAL_SRC_FILES := \
27	v8/src/libplatform/default-platform.cc \
28	v8/src/libplatform/task-queue.cc \
29	v8/src/libplatform/worker-thread.cc
30
31
32# Flags passed to both C and C++ files.
33MY_CFLAGS_Debug := \
34	-fstack-protector \
35	--param=ssp-buffer-size=4 \
36	-pthread \
37	-fno-strict-aliasing \
38	-Wno-unused-parameter \
39	-Wno-missing-field-initializers \
40	-fvisibility=hidden \
41	-pipe \
42	-fPIC \
43	-Wno-format \
44	-Wheader-hygiene \
45	-Wno-char-subscripts \
46	-Wno-unneeded-internal-declaration \
47	-Wno-covered-switch-default \
48	-Wstring-conversion \
49	-Wno-c++11-narrowing \
50	-Wno-deprecated-register \
51	-Wno-unused-local-typedef \
52	-m64 \
53	-Os \
54	-g \
55	-gdwarf-4 \
56	-fdata-sections \
57	-ffunction-sections \
58	-funwind-tables
59
60MY_DEFS_Debug := \
61	'-DV8_DEPRECATION_WARNINGS' \
62	'-D_FILE_OFFSET_BITS=64' \
63	'-DNO_TCMALLOC' \
64	'-DDISABLE_NACL' \
65	'-DCHROMIUM_BUILD' \
66	'-DUSE_LIBJPEG_TURBO=1' \
67	'-DENABLE_WEBRTC=1' \
68	'-DUSE_PROPRIETARY_CODECS' \
69	'-DENABLE_BROWSER_CDMS' \
70	'-DENABLE_CONFIGURATION_POLICY' \
71	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
72	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
73	'-DENABLE_EGLIMAGE=1' \
74	'-DCLD_VERSION=1' \
75	'-DENABLE_PRINTING=1' \
76	'-DENABLE_MANAGED_USERS=1' \
77	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
78	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
79	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
80	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
81	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
82	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
83	'-DVIDEO_HOLE=1' \
84	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
85	'-DV8_TARGET_ARCH_ARM64' \
86	'-DV8_I18N_SUPPORT' \
87	'-DUSE_OPENSSL=1' \
88	'-DUSE_OPENSSL_CERTS=1' \
89	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
90	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
91	'-D_DEBUG' \
92	'-DENABLE_DISASSEMBLER' \
93	'-DV8_ENABLE_CHECKS' \
94	'-DOBJECT_PRINT' \
95	'-DVERIFY_HEAP' \
96	'-DENABLE_EXTRA_CHECKS' \
97	'-DENABLE_HANDLE_ZAPPING'
98
99
100# Include paths placed before CFLAGS/CPPFLAGS
101LOCAL_C_INCLUDES_Debug := \
102	$(LOCAL_PATH)/v8 \
103	$(gyp_shared_intermediate_dir)
104
105
106# Flags passed to only C++ (and not C) files.
107LOCAL_CPPFLAGS_Debug := \
108	-fno-exceptions \
109	-fno-rtti \
110	-fno-threadsafe-statics \
111	-fvisibility-inlines-hidden \
112	-Wno-deprecated \
113	-std=gnu++11
114
115
116# Flags passed to both C and C++ files.
117MY_CFLAGS_Release := \
118	-fstack-protector \
119	--param=ssp-buffer-size=4 \
120	-pthread \
121	-fno-strict-aliasing \
122	-Wno-unused-parameter \
123	-Wno-missing-field-initializers \
124	-fvisibility=hidden \
125	-pipe \
126	-fPIC \
127	-Wno-format \
128	-Wheader-hygiene \
129	-Wno-char-subscripts \
130	-Wno-unneeded-internal-declaration \
131	-Wno-covered-switch-default \
132	-Wstring-conversion \
133	-Wno-c++11-narrowing \
134	-Wno-deprecated-register \
135	-Wno-unused-local-typedef \
136	-m64 \
137	-fno-ident \
138	-fdata-sections \
139	-ffunction-sections \
140	-funwind-tables \
141	-fdata-sections \
142	-ffunction-sections \
143	-O2
144
145MY_DEFS_Release := \
146	'-DV8_DEPRECATION_WARNINGS' \
147	'-D_FILE_OFFSET_BITS=64' \
148	'-DNO_TCMALLOC' \
149	'-DDISABLE_NACL' \
150	'-DCHROMIUM_BUILD' \
151	'-DUSE_LIBJPEG_TURBO=1' \
152	'-DENABLE_WEBRTC=1' \
153	'-DUSE_PROPRIETARY_CODECS' \
154	'-DENABLE_BROWSER_CDMS' \
155	'-DENABLE_CONFIGURATION_POLICY' \
156	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
157	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
158	'-DENABLE_EGLIMAGE=1' \
159	'-DCLD_VERSION=1' \
160	'-DENABLE_PRINTING=1' \
161	'-DENABLE_MANAGED_USERS=1' \
162	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
163	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
164	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
165	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
166	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
167	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
168	'-DVIDEO_HOLE=1' \
169	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
170	'-DV8_TARGET_ARCH_ARM64' \
171	'-DV8_I18N_SUPPORT' \
172	'-DUSE_OPENSSL=1' \
173	'-DUSE_OPENSSL_CERTS=1' \
174	'-DNDEBUG' \
175	'-DNVALGRIND' \
176	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
177
178
179# Include paths placed before CFLAGS/CPPFLAGS
180LOCAL_C_INCLUDES_Release := \
181	$(LOCAL_PATH)/v8 \
182	$(gyp_shared_intermediate_dir)
183
184
185# Flags passed to only C++ (and not C) files.
186LOCAL_CPPFLAGS_Release := \
187	-fno-exceptions \
188	-fno-rtti \
189	-fno-threadsafe-statics \
190	-fvisibility-inlines-hidden \
191	-Wno-deprecated \
192	-std=gnu++11
193
194
195LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
196# Undefine ANDROID for host modules
197LOCAL_CFLAGS += -UANDROID
198LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
199LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
200LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
201### Rules for final target.
202### Set directly by aosp_build_settings.
203LOCAL_CLANG := true
204
205# Add target alias to "gyp_all_modules" target.
206.PHONY: gyp_all_modules
207gyp_all_modules: v8_tools_gyp_v8_libplatform_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp
208
209# Alias gyp target name.
210.PHONY: v8_libplatform
211v8_libplatform: v8_tools_gyp_v8_libplatform_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp
212
213include $(BUILD_HOST_STATIC_LIBRARY)
214