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