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