gin.target.linux-x86_64.mk revision e5d81f57cb97b3b6b7fccc9c5610d21eb81db09d
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
9gyp_intermediate_dir := $(call local-intermediates-dir)
10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared)
11
12# Make sure our deps are built first.
13GYP_TARGET_DEPENDENCIES := \
14	$(call intermediates-dir-for,GYP,v8_tools_gyp_v8_gyp)/v8.stamp
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	gin/arguments.cc \
28	gin/array_buffer.cc \
29	gin/context_holder.cc \
30	gin/converter.cc \
31	gin/dictionary.cc \
32	gin/function_template.cc \
33	gin/interceptor.cc \
34	gin/isolate_holder.cc \
35	gin/modules/console.cc \
36	gin/modules/file_module_provider.cc \
37	gin/modules/module_registry.cc \
38	gin/modules/module_runner_delegate.cc \
39	gin/modules/timer.cc \
40	gin/object_template_builder.cc \
41	gin/per_context_data.cc \
42	gin/per_isolate_data.cc \
43	gin/runner.cc \
44	gin/shell_runner.cc \
45	gin/try_catch.cc \
46	gin/wrappable.cc \
47	gin/wrapper_info.cc
48
49
50# Flags passed to both C and C++ files.
51MY_CFLAGS_Debug := \
52	-fstack-protector \
53	--param=ssp-buffer-size=4 \
54	-Werror \
55	-fno-exceptions \
56	-fno-strict-aliasing \
57	-Wall \
58	-Wno-unused-parameter \
59	-Wno-missing-field-initializers \
60	-fvisibility=hidden \
61	-pipe \
62	-fPIC \
63	-Wno-unused-local-typedefs \
64	-m64 \
65	-march=x86-64 \
66	-fuse-ld=gold \
67	-ffunction-sections \
68	-funwind-tables \
69	-g \
70	-fstack-protector \
71	-fno-short-enums \
72	-finline-limit=64 \
73	-Wa,--noexecstack \
74	-U_FORTIFY_SOURCE \
75	-Wno-extra \
76	-Wno-ignored-qualifiers \
77	-Wno-type-limits \
78	-Wno-unused-but-set-variable \
79	-Os \
80	-g \
81	-fomit-frame-pointer \
82	-fdata-sections \
83	-ffunction-sections \
84	-funwind-tables
85
86MY_DEFS_Debug := \
87	'-DV8_DEPRECATION_WARNINGS' \
88	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
89	'-D_FILE_OFFSET_BITS=64' \
90	'-DNO_TCMALLOC' \
91	'-DDISABLE_NACL' \
92	'-DCHROMIUM_BUILD' \
93	'-DUSE_LIBJPEG_TURBO=1' \
94	'-DENABLE_WEBRTC=1' \
95	'-DUSE_PROPRIETARY_CODECS' \
96	'-DENABLE_CONFIGURATION_POLICY' \
97	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
98	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
99	'-DENABLE_EGLIMAGE=1' \
100	'-DCLD_VERSION=1' \
101	'-DENABLE_PRINTING=1' \
102	'-DENABLE_MANAGED_USERS=1' \
103	'-DGIN_IMPLEMENTATION' \
104	'-DUSE_OPENSSL=1' \
105	'-DUSE_OPENSSL_CERTS=1' \
106	'-D__STDC_CONSTANT_MACROS' \
107	'-D__STDC_FORMAT_MACROS' \
108	'-DANDROID' \
109	'-D__GNU_SOURCE=1' \
110	'-DUSE_STLPORT=1' \
111	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
112	'-DCHROME_BUILD_ID=""' \
113	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
114	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
115	'-D_DEBUG'
116
117
118# Include paths placed before CFLAGS/CPPFLAGS
119LOCAL_C_INCLUDES_Debug := \
120	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
121	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
122	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
123	$(LOCAL_PATH) \
124	$(LOCAL_PATH)/v8/include \
125	$(PWD)/frameworks/wilhelm/include \
126	$(PWD)/bionic \
127	$(PWD)/external/stlport/stlport
128
129
130# Flags passed to only C++ (and not C) files.
131LOCAL_CPPFLAGS_Debug := \
132	-fno-rtti \
133	-fno-threadsafe-statics \
134	-fvisibility-inlines-hidden \
135	-Wsign-compare \
136	-Wno-non-virtual-dtor \
137	-Wno-sign-promo
138
139
140# Flags passed to both C and C++ files.
141MY_CFLAGS_Release := \
142	-fstack-protector \
143	--param=ssp-buffer-size=4 \
144	-Werror \
145	-fno-exceptions \
146	-fno-strict-aliasing \
147	-Wall \
148	-Wno-unused-parameter \
149	-Wno-missing-field-initializers \
150	-fvisibility=hidden \
151	-pipe \
152	-fPIC \
153	-Wno-unused-local-typedefs \
154	-m64 \
155	-march=x86-64 \
156	-fuse-ld=gold \
157	-ffunction-sections \
158	-funwind-tables \
159	-g \
160	-fstack-protector \
161	-fno-short-enums \
162	-finline-limit=64 \
163	-Wa,--noexecstack \
164	-U_FORTIFY_SOURCE \
165	-Wno-extra \
166	-Wno-ignored-qualifiers \
167	-Wno-type-limits \
168	-Wno-unused-but-set-variable \
169	-Os \
170	-fno-ident \
171	-fdata-sections \
172	-ffunction-sections \
173	-fomit-frame-pointer \
174	-funwind-tables
175
176MY_DEFS_Release := \
177	'-DV8_DEPRECATION_WARNINGS' \
178	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
179	'-D_FILE_OFFSET_BITS=64' \
180	'-DNO_TCMALLOC' \
181	'-DDISABLE_NACL' \
182	'-DCHROMIUM_BUILD' \
183	'-DUSE_LIBJPEG_TURBO=1' \
184	'-DENABLE_WEBRTC=1' \
185	'-DUSE_PROPRIETARY_CODECS' \
186	'-DENABLE_CONFIGURATION_POLICY' \
187	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
188	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
189	'-DENABLE_EGLIMAGE=1' \
190	'-DCLD_VERSION=1' \
191	'-DENABLE_PRINTING=1' \
192	'-DENABLE_MANAGED_USERS=1' \
193	'-DGIN_IMPLEMENTATION' \
194	'-DUSE_OPENSSL=1' \
195	'-DUSE_OPENSSL_CERTS=1' \
196	'-D__STDC_CONSTANT_MACROS' \
197	'-D__STDC_FORMAT_MACROS' \
198	'-DANDROID' \
199	'-D__GNU_SOURCE=1' \
200	'-DUSE_STLPORT=1' \
201	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
202	'-DCHROME_BUILD_ID=""' \
203	'-DNDEBUG' \
204	'-DNVALGRIND' \
205	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
206	'-D_FORTIFY_SOURCE=2'
207
208
209# Include paths placed before CFLAGS/CPPFLAGS
210LOCAL_C_INCLUDES_Release := \
211	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
212	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
213	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
214	$(LOCAL_PATH) \
215	$(LOCAL_PATH)/v8/include \
216	$(PWD)/frameworks/wilhelm/include \
217	$(PWD)/bionic \
218	$(PWD)/external/stlport/stlport
219
220
221# Flags passed to only C++ (and not C) files.
222LOCAL_CPPFLAGS_Release := \
223	-fno-rtti \
224	-fno-threadsafe-statics \
225	-fvisibility-inlines-hidden \
226	-Wsign-compare \
227	-Wno-non-virtual-dtor \
228	-Wno-sign-promo
229
230
231LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
232LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
233LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
234LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
235### Rules for final target.
236
237LOCAL_LDFLAGS_Debug := \
238	-Wl,--fatal-warnings \
239	-Wl,-z,now \
240	-Wl,-z,relro \
241	-Wl,-z,noexecstack \
242	-fPIC \
243	-m64 \
244	-fuse-ld=gold \
245	-nostdlib \
246	-Wl,--no-undefined \
247	-Wl,--exclude-libs=ALL \
248	-Wl,--gc-sections \
249	-Wl,--warn-shared-textrel \
250	-Wl,-O1 \
251	-Wl,--as-needed
252
253
254LOCAL_LDFLAGS_Release := \
255	-Wl,--fatal-warnings \
256	-Wl,-z,now \
257	-Wl,-z,relro \
258	-Wl,-z,noexecstack \
259	-fPIC \
260	-m64 \
261	-fuse-ld=gold \
262	-nostdlib \
263	-Wl,--no-undefined \
264	-Wl,--exclude-libs=ALL \
265	-Wl,-O1 \
266	-Wl,--as-needed \
267	-Wl,--gc-sections \
268	-Wl,--warn-shared-textrel
269
270
271LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
272
273LOCAL_STATIC_LIBRARIES :=
274
275# Enable grouping to fix circular references
276LOCAL_GROUP_STATIC_LIBRARIES := true
277
278LOCAL_SHARED_LIBRARIES := \
279	libstlport \
280	libdl
281
282# Add target alias to "gyp_all_modules" target.
283.PHONY: gyp_all_modules
284gyp_all_modules: gin_gin_gyp
285
286# Alias gyp target name.
287.PHONY: gin
288gin: gin_gin_gyp
289
290include $(BUILD_STATIC_LIBRARY)
291