• 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	-Werror \
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	-m64 \
80	-march=x86-64 \
81	-ffunction-sections \
82	-funwind-tables \
83	-g \
84	-fstack-protector \
85	-fno-short-enums \
86	-finline-limit=64 \
87	-Wa,--noexecstack \
88	-U_FORTIFY_SOURCE \
89	-Wno-extra \
90	-Wno-ignored-qualifiers \
91	-Wno-type-limits \
92	-Wno-unused-but-set-variable \
93	-Os \
94	-g \
95	-gdwarf-4 \
96	-fdata-sections \
97	-ffunction-sections \
98	-fomit-frame-pointer \
99	-funwind-tables
100
101MY_DEFS_Debug := \
102	'-DV8_DEPRECATION_WARNINGS' \
103	'-D_FILE_OFFSET_BITS=64' \
104	'-DNO_TCMALLOC' \
105	'-DDISABLE_NACL' \
106	'-DCHROMIUM_BUILD' \
107	'-DUSE_LIBJPEG_TURBO=1' \
108	'-DENABLE_WEBRTC=1' \
109	'-DUSE_PROPRIETARY_CODECS' \
110	'-DENABLE_BROWSER_CDMS' \
111	'-DENABLE_CONFIGURATION_POLICY' \
112	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
113	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
114	'-DENABLE_EGLIMAGE=1' \
115	'-DCLD_VERSION=1' \
116	'-DENABLE_PRINTING=1' \
117	'-DENABLE_MANAGED_USERS=1' \
118	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
119	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
120	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
121	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
122	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
123	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
124	'-DVIDEO_HOLE=1' \
125	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
126	'-DMOJO_SYSTEM_IMPL_IMPLEMENTATION' \
127	'-DMOJO_SYSTEM_IMPLEMENTATION' \
128	'-DMOJO_USE_SYSTEM_IMPL' \
129	'-DUSE_OPENSSL=1' \
130	'-DUSE_OPENSSL_CERTS=1' \
131	'-D__STDC_CONSTANT_MACROS' \
132	'-D__STDC_FORMAT_MACROS' \
133	'-DANDROID' \
134	'-D__GNU_SOURCE=1' \
135	'-DUSE_STLPORT=1' \
136	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
137	'-DCHROME_BUILD_ID=""' \
138	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
139	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
140	'-D_DEBUG'
141
142
143# Include paths placed before CFLAGS/CPPFLAGS
144LOCAL_C_INCLUDES_Debug := \
145	$(gyp_shared_intermediate_dir) \
146	$(LOCAL_PATH) \
147	$(PWD)/frameworks/wilhelm/include \
148	$(PWD)/bionic \
149	$(PWD)/external/stlport/stlport
150
151
152# Flags passed to only C++ (and not C) files.
153LOCAL_CPPFLAGS_Debug := \
154	-fno-exceptions \
155	-fno-rtti \
156	-fno-threadsafe-statics \
157	-fvisibility-inlines-hidden \
158	-Wsign-compare \
159	-std=gnu++11 \
160	-Wno-narrowing \
161	-Wno-literal-suffix \
162	-Wno-non-virtual-dtor \
163	-Wno-sign-promo
164
165
166# Flags passed to both C and C++ files.
167MY_CFLAGS_Release := \
168	-fstack-protector \
169	--param=ssp-buffer-size=4 \
170	-Werror \
171	-fno-strict-aliasing \
172	-Wall \
173	-Wno-unused-parameter \
174	-Wno-missing-field-initializers \
175	-fvisibility=hidden \
176	-pipe \
177	-fPIC \
178	-Wno-unused-local-typedefs \
179	-m64 \
180	-march=x86-64 \
181	-ffunction-sections \
182	-funwind-tables \
183	-g \
184	-fstack-protector \
185	-fno-short-enums \
186	-finline-limit=64 \
187	-Wa,--noexecstack \
188	-U_FORTIFY_SOURCE \
189	-Wno-extra \
190	-Wno-ignored-qualifiers \
191	-Wno-type-limits \
192	-Wno-unused-but-set-variable \
193	-Os \
194	-fno-ident \
195	-fdata-sections \
196	-ffunction-sections \
197	-fomit-frame-pointer \
198	-funwind-tables
199
200MY_DEFS_Release := \
201	'-DV8_DEPRECATION_WARNINGS' \
202	'-D_FILE_OFFSET_BITS=64' \
203	'-DNO_TCMALLOC' \
204	'-DDISABLE_NACL' \
205	'-DCHROMIUM_BUILD' \
206	'-DUSE_LIBJPEG_TURBO=1' \
207	'-DENABLE_WEBRTC=1' \
208	'-DUSE_PROPRIETARY_CODECS' \
209	'-DENABLE_BROWSER_CDMS' \
210	'-DENABLE_CONFIGURATION_POLICY' \
211	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
212	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
213	'-DENABLE_EGLIMAGE=1' \
214	'-DCLD_VERSION=1' \
215	'-DENABLE_PRINTING=1' \
216	'-DENABLE_MANAGED_USERS=1' \
217	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
218	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
219	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
220	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
221	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
222	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
223	'-DVIDEO_HOLE=1' \
224	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
225	'-DMOJO_SYSTEM_IMPL_IMPLEMENTATION' \
226	'-DMOJO_SYSTEM_IMPLEMENTATION' \
227	'-DMOJO_USE_SYSTEM_IMPL' \
228	'-DUSE_OPENSSL=1' \
229	'-DUSE_OPENSSL_CERTS=1' \
230	'-D__STDC_CONSTANT_MACROS' \
231	'-D__STDC_FORMAT_MACROS' \
232	'-DANDROID' \
233	'-D__GNU_SOURCE=1' \
234	'-DUSE_STLPORT=1' \
235	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
236	'-DCHROME_BUILD_ID=""' \
237	'-DNDEBUG' \
238	'-DNVALGRIND' \
239	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
240	'-D_FORTIFY_SOURCE=2'
241
242
243# Include paths placed before CFLAGS/CPPFLAGS
244LOCAL_C_INCLUDES_Release := \
245	$(gyp_shared_intermediate_dir) \
246	$(LOCAL_PATH) \
247	$(PWD)/frameworks/wilhelm/include \
248	$(PWD)/bionic \
249	$(PWD)/external/stlport/stlport
250
251
252# Flags passed to only C++ (and not C) files.
253LOCAL_CPPFLAGS_Release := \
254	-fno-exceptions \
255	-fno-rtti \
256	-fno-threadsafe-statics \
257	-fvisibility-inlines-hidden \
258	-Wsign-compare \
259	-std=gnu++11 \
260	-Wno-narrowing \
261	-Wno-literal-suffix \
262	-Wno-non-virtual-dtor \
263	-Wno-sign-promo
264
265
266LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
267LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
268LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
269LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
270### Rules for final target.
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: mojo_mojo_system_impl_gyp
279
280# Alias gyp target name.
281.PHONY: mojo_system_impl
282mojo_system_impl: mojo_mojo_system_impl_gyp
283
284include $(BUILD_STATIC_LIBRARY)
285