mojo_cpp_bindings.target.darwin-x86_64.mk revision 5f1c94371a64b3196d4be9466099bb892df9b88e
1# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := STATIC_LIBRARIES
6LOCAL_MODULE := mojo_mojo_cpp_bindings_gyp
7LOCAL_MODULE_SUFFIX := .a
8LOCAL_MODULE_TAGS := optional
9LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH)
10gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_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	mojo/public/cpp/bindings/lib/array_internal.cc \
28	mojo/public/cpp/bindings/lib/bindings_serialization.cc \
29	mojo/public/cpp/bindings/lib/bounds_checker.cc \
30	mojo/public/cpp/bindings/lib/connector.cc \
31	mojo/public/cpp/bindings/lib/filter_chain.cc \
32	mojo/public/cpp/bindings/lib/fixed_buffer.cc \
33	mojo/public/cpp/bindings/lib/message.cc \
34	mojo/public/cpp/bindings/lib/message_builder.cc \
35	mojo/public/cpp/bindings/lib/message_filter.cc \
36	mojo/public/cpp/bindings/lib/message_header_validator.cc \
37	mojo/public/cpp/bindings/lib/message_queue.cc \
38	mojo/public/cpp/bindings/lib/no_interface.cc \
39	mojo/public/cpp/bindings/lib/router.cc \
40	mojo/public/cpp/bindings/lib/string_serialization.cc \
41	mojo/public/cpp/bindings/lib/validation_errors.cc
42
43
44# Flags passed to both C and C++ files.
45MY_CFLAGS_Debug := \
46	-fstack-protector \
47	--param=ssp-buffer-size=4 \
48	-Werror \
49	-fno-exceptions \
50	-fno-strict-aliasing \
51	-Wall \
52	-Wno-unused-parameter \
53	-Wno-missing-field-initializers \
54	-fvisibility=hidden \
55	-pipe \
56	-fPIC \
57	-Wno-unused-local-typedefs \
58	-m64 \
59	-march=x86-64 \
60	-ffunction-sections \
61	-funwind-tables \
62	-g \
63	-fstack-protector \
64	-fno-short-enums \
65	-finline-limit=64 \
66	-Wa,--noexecstack \
67	-U_FORTIFY_SOURCE \
68	-Wno-extra \
69	-Wno-ignored-qualifiers \
70	-Wno-type-limits \
71	-Wno-unused-but-set-variable \
72	-Os \
73	-g \
74	-fdata-sections \
75	-ffunction-sections \
76	-fomit-frame-pointer \
77	-funwind-tables
78
79MY_DEFS_Debug := \
80	'-DV8_DEPRECATION_WARNINGS' \
81	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
82	'-D_FILE_OFFSET_BITS=64' \
83	'-DNO_TCMALLOC' \
84	'-DDISABLE_NACL' \
85	'-DCHROMIUM_BUILD' \
86	'-DUSE_LIBJPEG_TURBO=1' \
87	'-DENABLE_WEBRTC=1' \
88	'-DUSE_PROPRIETARY_CODECS' \
89	'-DENABLE_BROWSER_CDMS' \
90	'-DENABLE_CONFIGURATION_POLICY' \
91	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
92	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
93	'-DENABLE_EGLIMAGE=1' \
94	'-DCLD_VERSION=1' \
95	'-DENABLE_PRINTING=1' \
96	'-DENABLE_MANAGED_USERS=1' \
97	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
98	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
99	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
100	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
101	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
102	'-DVIDEO_HOLE=1' \
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) \
120	$(LOCAL_PATH) \
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	-std=gnu++11 \
133	-Wno-narrowing \
134	-Wno-literal-suffix \
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	-ffunction-sections \
156	-funwind-tables \
157	-g \
158	-fstack-protector \
159	-fno-short-enums \
160	-finline-limit=64 \
161	-Wa,--noexecstack \
162	-U_FORTIFY_SOURCE \
163	-Wno-extra \
164	-Wno-ignored-qualifiers \
165	-Wno-type-limits \
166	-Wno-unused-but-set-variable \
167	-Os \
168	-fno-ident \
169	-fdata-sections \
170	-ffunction-sections \
171	-fomit-frame-pointer \
172	-funwind-tables
173
174MY_DEFS_Release := \
175	'-DV8_DEPRECATION_WARNINGS' \
176	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
177	'-D_FILE_OFFSET_BITS=64' \
178	'-DNO_TCMALLOC' \
179	'-DDISABLE_NACL' \
180	'-DCHROMIUM_BUILD' \
181	'-DUSE_LIBJPEG_TURBO=1' \
182	'-DENABLE_WEBRTC=1' \
183	'-DUSE_PROPRIETARY_CODECS' \
184	'-DENABLE_BROWSER_CDMS' \
185	'-DENABLE_CONFIGURATION_POLICY' \
186	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
187	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
188	'-DENABLE_EGLIMAGE=1' \
189	'-DCLD_VERSION=1' \
190	'-DENABLE_PRINTING=1' \
191	'-DENABLE_MANAGED_USERS=1' \
192	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
193	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
194	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
195	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
196	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
197	'-DVIDEO_HOLE=1' \
198	'-DUSE_OPENSSL=1' \
199	'-DUSE_OPENSSL_CERTS=1' \
200	'-D__STDC_CONSTANT_MACROS' \
201	'-D__STDC_FORMAT_MACROS' \
202	'-DANDROID' \
203	'-D__GNU_SOURCE=1' \
204	'-DUSE_STLPORT=1' \
205	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
206	'-DCHROME_BUILD_ID=""' \
207	'-DNDEBUG' \
208	'-DNVALGRIND' \
209	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
210	'-D_FORTIFY_SOURCE=2'
211
212
213# Include paths placed before CFLAGS/CPPFLAGS
214LOCAL_C_INCLUDES_Release := \
215	$(gyp_shared_intermediate_dir) \
216	$(LOCAL_PATH) \
217	$(PWD)/frameworks/wilhelm/include \
218	$(PWD)/bionic \
219	$(PWD)/external/stlport/stlport
220
221
222# Flags passed to only C++ (and not C) files.
223LOCAL_CPPFLAGS_Release := \
224	-fno-rtti \
225	-fno-threadsafe-statics \
226	-fvisibility-inlines-hidden \
227	-Wsign-compare \
228	-std=gnu++11 \
229	-Wno-narrowing \
230	-Wno-literal-suffix \
231	-Wno-non-virtual-dtor \
232	-Wno-sign-promo
233
234
235LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
236LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
237LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
238LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
239### Rules for final target.
240
241LOCAL_LDFLAGS_Debug := \
242	-Wl,-z,now \
243	-Wl,-z,relro \
244	-Wl,--fatal-warnings \
245	-Wl,-z,noexecstack \
246	-fPIC \
247	-m64 \
248	-fuse-ld=gold \
249	-nostdlib \
250	-Wl,--no-undefined \
251	-Wl,--exclude-libs=ALL \
252	-Wl,--warn-shared-textrel \
253	-Wl,-O1 \
254	-Wl,--as-needed
255
256
257LOCAL_LDFLAGS_Release := \
258	-Wl,-z,now \
259	-Wl,-z,relro \
260	-Wl,--fatal-warnings \
261	-Wl,-z,noexecstack \
262	-fPIC \
263	-m64 \
264	-fuse-ld=gold \
265	-nostdlib \
266	-Wl,--no-undefined \
267	-Wl,--exclude-libs=ALL \
268	-Wl,-O1 \
269	-Wl,--as-needed \
270	-Wl,--gc-sections \
271	-Wl,--warn-shared-textrel
272
273
274LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
275
276LOCAL_STATIC_LIBRARIES :=
277
278# Enable grouping to fix circular references
279LOCAL_GROUP_STATIC_LIBRARIES := true
280
281LOCAL_SHARED_LIBRARIES := \
282	libstlport \
283	libdl
284
285# Add target alias to "gyp_all_modules" target.
286.PHONY: gyp_all_modules
287gyp_all_modules: mojo_mojo_cpp_bindings_gyp
288
289# Alias gyp target name.
290.PHONY: mojo_cpp_bindings
291mojo_cpp_bindings: mojo_mojo_cpp_bindings_gyp
292
293include $(BUILD_STATIC_LIBRARY)
294