gin.target.linux-x86_64.mk revision effb81e5f8246d0db0270817048dc992db66e9fb
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	'-DUSE_PROPRIETARY_CODECS' \
95	'-DENABLE_CONFIGURATION_POLICY' \
96	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
97	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
98	'-DENABLE_EGLIMAGE=1' \
99	'-DCLD_VERSION=1' \
100	'-DENABLE_PRINTING=1' \
101	'-DENABLE_MANAGED_USERS=1' \
102	'-DGIN_IMPLEMENTATION' \
103	'-DUSE_OPENSSL=1' \
104	'-DUSE_OPENSSL_CERTS=1' \
105	'-D__STDC_CONSTANT_MACROS' \
106	'-D__STDC_FORMAT_MACROS' \
107	'-DANDROID' \
108	'-D__GNU_SOURCE=1' \
109	'-DUSE_STLPORT=1' \
110	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
111	'-DCHROME_BUILD_ID=""' \
112	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
113	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
114	'-D_DEBUG'
115
116
117# Include paths placed before CFLAGS/CPPFLAGS
118LOCAL_C_INCLUDES_Debug := \
119	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
120	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
121	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
122	$(LOCAL_PATH) \
123	$(LOCAL_PATH)/v8/include \
124	$(PWD)/frameworks/wilhelm/include \
125	$(PWD)/bionic \
126	$(PWD)/external/stlport/stlport
127
128
129# Flags passed to only C++ (and not C) files.
130LOCAL_CPPFLAGS_Debug := \
131	-fno-rtti \
132	-fno-threadsafe-statics \
133	-fvisibility-inlines-hidden \
134	-Wsign-compare \
135	-Wno-non-virtual-dtor \
136	-Wno-sign-promo
137
138
139# Flags passed to both C and C++ files.
140MY_CFLAGS_Release := \
141	-fstack-protector \
142	--param=ssp-buffer-size=4 \
143	-Werror \
144	-fno-exceptions \
145	-fno-strict-aliasing \
146	-Wall \
147	-Wno-unused-parameter \
148	-Wno-missing-field-initializers \
149	-fvisibility=hidden \
150	-pipe \
151	-fPIC \
152	-Wno-unused-local-typedefs \
153	-m64 \
154	-march=x86-64 \
155	-fuse-ld=gold \
156	-ffunction-sections \
157	-funwind-tables \
158	-g \
159	-fstack-protector \
160	-fno-short-enums \
161	-finline-limit=64 \
162	-Wa,--noexecstack \
163	-U_FORTIFY_SOURCE \
164	-Wno-extra \
165	-Wno-ignored-qualifiers \
166	-Wno-type-limits \
167	-Wno-unused-but-set-variable \
168	-Os \
169	-fno-ident \
170	-fdata-sections \
171	-ffunction-sections \
172	-fomit-frame-pointer \
173	-funwind-tables
174
175MY_DEFS_Release := \
176	'-DV8_DEPRECATION_WARNINGS' \
177	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
178	'-D_FILE_OFFSET_BITS=64' \
179	'-DNO_TCMALLOC' \
180	'-DDISABLE_NACL' \
181	'-DCHROMIUM_BUILD' \
182	'-DUSE_LIBJPEG_TURBO=1' \
183	'-DUSE_PROPRIETARY_CODECS' \
184	'-DENABLE_CONFIGURATION_POLICY' \
185	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
186	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
187	'-DENABLE_EGLIMAGE=1' \
188	'-DCLD_VERSION=1' \
189	'-DENABLE_PRINTING=1' \
190	'-DENABLE_MANAGED_USERS=1' \
191	'-DGIN_IMPLEMENTATION' \
192	'-DUSE_OPENSSL=1' \
193	'-DUSE_OPENSSL_CERTS=1' \
194	'-D__STDC_CONSTANT_MACROS' \
195	'-D__STDC_FORMAT_MACROS' \
196	'-DANDROID' \
197	'-D__GNU_SOURCE=1' \
198	'-DUSE_STLPORT=1' \
199	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
200	'-DCHROME_BUILD_ID=""' \
201	'-DNDEBUG' \
202	'-DNVALGRIND' \
203	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
204	'-D_FORTIFY_SOURCE=2'
205
206
207# Include paths placed before CFLAGS/CPPFLAGS
208LOCAL_C_INCLUDES_Release := \
209	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
210	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
211	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
212	$(LOCAL_PATH) \
213	$(LOCAL_PATH)/v8/include \
214	$(PWD)/frameworks/wilhelm/include \
215	$(PWD)/bionic \
216	$(PWD)/external/stlport/stlport
217
218
219# Flags passed to only C++ (and not C) files.
220LOCAL_CPPFLAGS_Release := \
221	-fno-rtti \
222	-fno-threadsafe-statics \
223	-fvisibility-inlines-hidden \
224	-Wsign-compare \
225	-Wno-non-virtual-dtor \
226	-Wno-sign-promo
227
228
229LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
230LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
231LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
232LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
233### Rules for final target.
234
235LOCAL_LDFLAGS_Debug := \
236	-Wl,--fatal-warnings \
237	-Wl,-z,now \
238	-Wl,-z,relro \
239	-Wl,-z,noexecstack \
240	-fPIC \
241	-m64 \
242	-fuse-ld=gold \
243	-nostdlib \
244	-Wl,--no-undefined \
245	-Wl,--exclude-libs=ALL \
246	-Wl,--gc-sections \
247	-Wl,--warn-shared-textrel \
248	-Wl,-O1 \
249	-Wl,--as-needed
250
251
252LOCAL_LDFLAGS_Release := \
253	-Wl,--fatal-warnings \
254	-Wl,-z,now \
255	-Wl,-z,relro \
256	-Wl,-z,noexecstack \
257	-fPIC \
258	-m64 \
259	-fuse-ld=gold \
260	-nostdlib \
261	-Wl,--no-undefined \
262	-Wl,--exclude-libs=ALL \
263	-Wl,-O1 \
264	-Wl,--as-needed \
265	-Wl,--gc-sections \
266	-Wl,--warn-shared-textrel
267
268
269LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
270
271LOCAL_STATIC_LIBRARIES :=
272
273# Enable grouping to fix circular references
274LOCAL_GROUP_STATIC_LIBRARIES := true
275
276LOCAL_SHARED_LIBRARIES := \
277	libstlport \
278	libdl
279
280# Add target alias to "gyp_all_modules" target.
281.PHONY: gyp_all_modules
282gyp_all_modules: gin_gin_gyp
283
284# Alias gyp target name.
285.PHONY: gin
286gin: gin_gin_gyp
287
288include $(BUILD_STATIC_LIBRARY)
289