• 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 := mojo_mojo_system_impl_gyp
7LOCAL_MODULE_SUFFIX := .a
8LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH)
9gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX))
10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX))
11
12# Make sure our deps are built first.
13GYP_TARGET_DEPENDENCIES :=
14
15GYP_GENERATED_OUTPUTS :=
16
17# Make sure our deps and generated files are built first.
18LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
19
20LOCAL_CPP_EXTENSION := .cc
21LOCAL_GENERATED_SOURCES :=
22
23GYP_COPIED_SOURCE_ORIGIN_DIRS :=
24
25LOCAL_SRC_FILES := \
26	mojo/embedder/channel_init.cc \
27	mojo/embedder/embedder.cc \
28	mojo/embedder/platform_channel_pair.cc \
29	mojo/embedder/platform_channel_pair_posix.cc \
30	mojo/embedder/platform_channel_utils_posix.cc \
31	mojo/embedder/platform_handle.cc \
32	mojo/embedder/platform_handle_utils_posix.cc \
33	mojo/embedder/simple_platform_shared_buffer.cc \
34	mojo/embedder/simple_platform_shared_buffer_posix.cc \
35	mojo/embedder/simple_platform_support.cc \
36	mojo/system/channel.cc \
37	mojo/system/channel_endpoint.cc \
38	mojo/system/core.cc \
39	mojo/system/data_pipe.cc \
40	mojo/system/data_pipe_consumer_dispatcher.cc \
41	mojo/system/data_pipe_producer_dispatcher.cc \
42	mojo/system/dispatcher.cc \
43	mojo/system/entrypoints.cc \
44	mojo/system/handle_table.cc \
45	mojo/system/local_data_pipe.cc \
46	mojo/system/local_message_pipe_endpoint.cc \
47	mojo/system/mapping_table.cc \
48	mojo/system/memory.cc \
49	mojo/system/message_in_transit.cc \
50	mojo/system/message_in_transit_queue.cc \
51	mojo/system/message_pipe.cc \
52	mojo/system/message_pipe_dispatcher.cc \
53	mojo/system/message_pipe_endpoint.cc \
54	mojo/system/platform_handle_dispatcher.cc \
55	mojo/system/proxy_message_pipe_endpoint.cc \
56	mojo/system/raw_channel.cc \
57	mojo/system/raw_channel_posix.cc \
58	mojo/system/shared_buffer_dispatcher.cc \
59	mojo/system/simple_dispatcher.cc \
60	mojo/system/transport_data.cc \
61	mojo/system/waiter.cc \
62	mojo/system/waiter_list.cc \
63	mojo/embedder/test_embedder.cc
64
65
66# Flags passed to both C and C++ files.
67MY_CFLAGS_Debug := \
68	-fstack-protector \
69	--param=ssp-buffer-size=4 \
70	 \
71	-fno-strict-aliasing \
72	-Wall \
73	-Wno-unused-parameter \
74	-Wno-missing-field-initializers \
75	-fvisibility=hidden \
76	-pipe \
77	-fPIC \
78	-Wno-unused-local-typedefs \
79	-ffunction-sections \
80	-funwind-tables \
81	-g \
82	-fstack-protector \
83	-fno-short-enums \
84	-finline-limit=64 \
85	-Wa,--noexecstack \
86	-U_FORTIFY_SOURCE \
87	-Wno-extra \
88	-Wno-ignored-qualifiers \
89	-Wno-type-limits \
90	-Wno-unused-but-set-variable \
91	-Os \
92	-g \
93	-gdwarf-4 \
94	-fdata-sections \
95	-ffunction-sections \
96	-fomit-frame-pointer \
97	-funwind-tables
98
99MY_DEFS_Debug := \
100	'-DV8_DEPRECATION_WARNINGS' \
101	'-D_FILE_OFFSET_BITS=64' \
102	'-DNO_TCMALLOC' \
103	'-DDISABLE_NACL' \
104	'-DCHROMIUM_BUILD' \
105	'-DUSE_LIBJPEG_TURBO=1' \
106	'-DENABLE_WEBRTC=1' \
107	'-DUSE_PROPRIETARY_CODECS' \
108	'-DENABLE_BROWSER_CDMS' \
109	'-DENABLE_CONFIGURATION_POLICY' \
110	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
111	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
112	'-DENABLE_EGLIMAGE=1' \
113	'-DCLD_VERSION=1' \
114	'-DENABLE_PRINTING=1' \
115	'-DENABLE_MANAGED_USERS=1' \
116	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
117	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
118	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
119	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
120	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
121	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
122	'-DVIDEO_HOLE=1' \
123	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
124	'-DMOJO_SYSTEM_IMPL_IMPLEMENTATION' \
125	'-DMOJO_SYSTEM_IMPLEMENTATION' \
126	'-DMOJO_USE_SYSTEM_IMPL' \
127	'-DUSE_OPENSSL=1' \
128	'-DUSE_OPENSSL_CERTS=1' \
129	'-D__STDC_CONSTANT_MACROS' \
130	'-D__STDC_FORMAT_MACROS' \
131	'-DANDROID' \
132	'-D__GNU_SOURCE=1' \
133	'-DUSE_STLPORT=1' \
134	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
135	'-DCHROME_BUILD_ID=""' \
136	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
137	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
138	'-D_DEBUG'
139
140
141# Include paths placed before CFLAGS/CPPFLAGS
142LOCAL_C_INCLUDES_Debug := \
143	$(gyp_shared_intermediate_dir) \
144	$(LOCAL_PATH) \
145	$(PWD)/frameworks/wilhelm/include \
146	$(PWD)/bionic \
147	$(PWD)/external/stlport/stlport
148
149
150# Flags passed to only C++ (and not C) files.
151LOCAL_CPPFLAGS_Debug := \
152	-fno-exceptions \
153	-fno-rtti \
154	-fno-threadsafe-statics \
155	-fvisibility-inlines-hidden \
156	-Wsign-compare \
157	-Wno-uninitialized \
158	-std=gnu++11 \
159	-Wno-narrowing \
160	-Wno-literal-suffix \
161	-Wno-non-virtual-dtor \
162	-Wno-sign-promo
163
164
165# Flags passed to both C and C++ files.
166MY_CFLAGS_Release := \
167	-fstack-protector \
168	--param=ssp-buffer-size=4 \
169	 \
170	-fno-strict-aliasing \
171	-Wall \
172	-Wno-unused-parameter \
173	-Wno-missing-field-initializers \
174	-fvisibility=hidden \
175	-pipe \
176	-fPIC \
177	-Wno-unused-local-typedefs \
178	-ffunction-sections \
179	-funwind-tables \
180	-g \
181	-fstack-protector \
182	-fno-short-enums \
183	-finline-limit=64 \
184	-Wa,--noexecstack \
185	-U_FORTIFY_SOURCE \
186	-Wno-extra \
187	-Wno-ignored-qualifiers \
188	-Wno-type-limits \
189	-Wno-unused-but-set-variable \
190	-Os \
191	-fno-ident \
192	-fdata-sections \
193	-ffunction-sections \
194	-fomit-frame-pointer \
195	-funwind-tables
196
197MY_DEFS_Release := \
198	'-DV8_DEPRECATION_WARNINGS' \
199	'-D_FILE_OFFSET_BITS=64' \
200	'-DNO_TCMALLOC' \
201	'-DDISABLE_NACL' \
202	'-DCHROMIUM_BUILD' \
203	'-DUSE_LIBJPEG_TURBO=1' \
204	'-DENABLE_WEBRTC=1' \
205	'-DUSE_PROPRIETARY_CODECS' \
206	'-DENABLE_BROWSER_CDMS' \
207	'-DENABLE_CONFIGURATION_POLICY' \
208	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
209	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
210	'-DENABLE_EGLIMAGE=1' \
211	'-DCLD_VERSION=1' \
212	'-DENABLE_PRINTING=1' \
213	'-DENABLE_MANAGED_USERS=1' \
214	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
215	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
216	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
217	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
218	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
219	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
220	'-DVIDEO_HOLE=1' \
221	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
222	'-DMOJO_SYSTEM_IMPL_IMPLEMENTATION' \
223	'-DMOJO_SYSTEM_IMPLEMENTATION' \
224	'-DMOJO_USE_SYSTEM_IMPL' \
225	'-DUSE_OPENSSL=1' \
226	'-DUSE_OPENSSL_CERTS=1' \
227	'-D__STDC_CONSTANT_MACROS' \
228	'-D__STDC_FORMAT_MACROS' \
229	'-DANDROID' \
230	'-D__GNU_SOURCE=1' \
231	'-DUSE_STLPORT=1' \
232	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
233	'-DCHROME_BUILD_ID=""' \
234	'-DNDEBUG' \
235	'-DNVALGRIND' \
236	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
237	'-D_FORTIFY_SOURCE=2'
238
239
240# Include paths placed before CFLAGS/CPPFLAGS
241LOCAL_C_INCLUDES_Release := \
242	$(gyp_shared_intermediate_dir) \
243	$(LOCAL_PATH) \
244	$(PWD)/frameworks/wilhelm/include \
245	$(PWD)/bionic \
246	$(PWD)/external/stlport/stlport
247
248
249# Flags passed to only C++ (and not C) files.
250LOCAL_CPPFLAGS_Release := \
251	-fno-exceptions \
252	-fno-rtti \
253	-fno-threadsafe-statics \
254	-fvisibility-inlines-hidden \
255	-Wsign-compare \
256	-Wno-uninitialized \
257	-std=gnu++11 \
258	-Wno-narrowing \
259	-Wno-literal-suffix \
260	-Wno-non-virtual-dtor \
261	-Wno-sign-promo
262
263
264LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
265LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
266LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
267LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
268### Rules for final target.
269
270LOCAL_SHARED_LIBRARIES := \
271	libstlport \
272	libdl
273
274# Add target alias to "gyp_all_modules" target.
275.PHONY: gyp_all_modules
276gyp_all_modules: mojo_mojo_system_impl_gyp
277
278# Alias gyp target name.
279.PHONY: mojo_system_impl
280mojo_system_impl: mojo_mojo_system_impl_gyp
281
282include $(BUILD_STATIC_LIBRARY)
283