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