• 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 := ipc_ipc_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	ipc/file_descriptor_set_posix.cc \
28	ipc/ipc_channel.cc \
29	ipc/ipc_channel_common.cc \
30	ipc/ipc_channel_factory.cc \
31	ipc/ipc_channel_posix.cc \
32	ipc/ipc_channel_proxy.cc \
33	ipc/ipc_channel_reader.cc \
34	ipc/ipc_forwarding_message_filter.cc \
35	ipc/ipc_logging.cc \
36	ipc/ipc_message.cc \
37	ipc/ipc_message_utils.cc \
38	ipc/ipc_platform_file.cc \
39	ipc/ipc_switches.cc \
40	ipc/ipc_sync_channel.cc \
41	ipc/ipc_sync_message.cc \
42	ipc/ipc_sync_message_filter.cc \
43	ipc/message_filter.cc \
44	ipc/message_filter_router.cc \
45	ipc/unix_domain_socket_util.cc
46
47
48# Flags passed to both C and C++ files.
49MY_CFLAGS_Debug := \
50	-fstack-protector \
51	--param=ssp-buffer-size=4 \
52	-Werror \
53	-fno-exceptions \
54	-fno-strict-aliasing \
55	-Wall \
56	-Wno-unused-parameter \
57	-Wno-missing-field-initializers \
58	-fvisibility=hidden \
59	-pipe \
60	-fPIC \
61	-Wno-unused-local-typedefs \
62	-fno-tree-sra \
63	-fno-partial-inlining \
64	-fno-early-inlining \
65	-fno-tree-copy-prop \
66	-fno-tree-loop-optimize \
67	-fno-move-loop-invariants \
68	-fno-caller-saves \
69	-Wno-psabi \
70	-ffunction-sections \
71	-funwind-tables \
72	-g \
73	-fstack-protector \
74	-fno-short-enums \
75	-finline-limit=64 \
76	-Wa,--noexecstack \
77	-U_FORTIFY_SOURCE \
78	-Wno-extra \
79	-Wno-ignored-qualifiers \
80	-Wno-type-limits \
81	-Wno-unused-but-set-variable \
82	-Os \
83	-g \
84	-fdata-sections \
85	-ffunction-sections \
86	-fomit-frame-pointer \
87	-funwind-tables
88
89MY_DEFS_Debug := \
90	'-DV8_DEPRECATION_WARNINGS' \
91	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
92	'-D_FILE_OFFSET_BITS=64' \
93	'-DNO_TCMALLOC' \
94	'-DDISABLE_NACL' \
95	'-DCHROMIUM_BUILD' \
96	'-DUSE_LIBJPEG_TURBO=1' \
97	'-DENABLE_WEBRTC=1' \
98	'-DUSE_PROPRIETARY_CODECS' \
99	'-DENABLE_BROWSER_CDMS' \
100	'-DENABLE_CONFIGURATION_POLICY' \
101	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
102	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
103	'-DENABLE_EGLIMAGE=1' \
104	'-DCLD_VERSION=1' \
105	'-DENABLE_PRINTING=1' \
106	'-DENABLE_MANAGED_USERS=1' \
107	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
108	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
109	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
110	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
111	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
112	'-DVIDEO_HOLE=1' \
113	'-DUSE_OPENSSL=1' \
114	'-DUSE_OPENSSL_CERTS=1' \
115	'-D__STDC_CONSTANT_MACROS' \
116	'-D__STDC_FORMAT_MACROS' \
117	'-DIPC_IMPLEMENTATION' \
118	'-DANDROID' \
119	'-D__GNU_SOURCE=1' \
120	'-DUSE_STLPORT=1' \
121	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
122	'-DCHROME_BUILD_ID=""' \
123	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
124	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
125	'-D_DEBUG'
126
127
128# Include paths placed before CFLAGS/CPPFLAGS
129LOCAL_C_INCLUDES_Debug := \
130	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
131	$(gyp_shared_intermediate_dir) \
132	$(LOCAL_PATH) \
133	$(PWD)/frameworks/wilhelm/include \
134	$(PWD)/bionic \
135	$(PWD)/external/stlport/stlport
136
137
138# Flags passed to only C++ (and not C) files.
139LOCAL_CPPFLAGS_Debug := \
140	-fno-rtti \
141	-fno-threadsafe-statics \
142	-fvisibility-inlines-hidden \
143	-Wsign-compare \
144	-Wno-abi \
145	-Wno-non-virtual-dtor \
146	-Wno-sign-promo
147
148
149LOCAL_FDO_SUPPORT_Debug := false
150
151# Flags passed to both C and C++ files.
152MY_CFLAGS_Release := \
153	-fstack-protector \
154	--param=ssp-buffer-size=4 \
155	-Werror \
156	-fno-exceptions \
157	-fno-strict-aliasing \
158	-Wall \
159	-Wno-unused-parameter \
160	-Wno-missing-field-initializers \
161	-fvisibility=hidden \
162	-pipe \
163	-fPIC \
164	-Wno-unused-local-typedefs \
165	-fno-tree-sra \
166	-fno-partial-inlining \
167	-fno-early-inlining \
168	-fno-tree-copy-prop \
169	-fno-tree-loop-optimize \
170	-fno-move-loop-invariants \
171	-fno-caller-saves \
172	-Wno-psabi \
173	-ffunction-sections \
174	-funwind-tables \
175	-g \
176	-fstack-protector \
177	-fno-short-enums \
178	-finline-limit=64 \
179	-Wa,--noexecstack \
180	-U_FORTIFY_SOURCE \
181	-Wno-extra \
182	-Wno-ignored-qualifiers \
183	-Wno-type-limits \
184	-Wno-unused-but-set-variable \
185	-Os \
186	-fno-ident \
187	-fdata-sections \
188	-ffunction-sections \
189	-fomit-frame-pointer \
190	-funwind-tables
191
192MY_DEFS_Release := \
193	'-DV8_DEPRECATION_WARNINGS' \
194	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
195	'-D_FILE_OFFSET_BITS=64' \
196	'-DNO_TCMALLOC' \
197	'-DDISABLE_NACL' \
198	'-DCHROMIUM_BUILD' \
199	'-DUSE_LIBJPEG_TURBO=1' \
200	'-DENABLE_WEBRTC=1' \
201	'-DUSE_PROPRIETARY_CODECS' \
202	'-DENABLE_BROWSER_CDMS' \
203	'-DENABLE_CONFIGURATION_POLICY' \
204	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
205	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
206	'-DENABLE_EGLIMAGE=1' \
207	'-DCLD_VERSION=1' \
208	'-DENABLE_PRINTING=1' \
209	'-DENABLE_MANAGED_USERS=1' \
210	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
211	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
212	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
213	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
214	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
215	'-DVIDEO_HOLE=1' \
216	'-DUSE_OPENSSL=1' \
217	'-DUSE_OPENSSL_CERTS=1' \
218	'-D__STDC_CONSTANT_MACROS' \
219	'-D__STDC_FORMAT_MACROS' \
220	'-DIPC_IMPLEMENTATION' \
221	'-DANDROID' \
222	'-D__GNU_SOURCE=1' \
223	'-DUSE_STLPORT=1' \
224	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
225	'-DCHROME_BUILD_ID=""' \
226	'-DNDEBUG' \
227	'-DNVALGRIND' \
228	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
229	'-D_FORTIFY_SOURCE=2'
230
231
232# Include paths placed before CFLAGS/CPPFLAGS
233LOCAL_C_INCLUDES_Release := \
234	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
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-rtti \
245	-fno-threadsafe-statics \
246	-fvisibility-inlines-hidden \
247	-Wsign-compare \
248	-Wno-abi \
249	-Wno-non-virtual-dtor \
250	-Wno-sign-promo
251
252
253LOCAL_FDO_SUPPORT_Release := false
254
255LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
256LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(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_LDFLAGS_Debug := \
263	-Wl,-z,now \
264	-Wl,-z,relro \
265	-Wl,--fatal-warnings \
266	-Wl,-z,noexecstack \
267	-fPIC \
268	-Wl,-z,relro \
269	-Wl,-z,now \
270	-fuse-ld=gold \
271	-nostdlib \
272	-Wl,--no-undefined \
273	-Wl,--exclude-libs=ALL \
274	-Wl,--icf=safe \
275	-Wl,--warn-shared-textrel \
276	-Wl,-O1 \
277	-Wl,--as-needed
278
279
280LOCAL_LDFLAGS_Release := \
281	-Wl,-z,now \
282	-Wl,-z,relro \
283	-Wl,--fatal-warnings \
284	-Wl,-z,noexecstack \
285	-fPIC \
286	-Wl,-z,relro \
287	-Wl,-z,now \
288	-fuse-ld=gold \
289	-nostdlib \
290	-Wl,--no-undefined \
291	-Wl,--exclude-libs=ALL \
292	-Wl,--icf=safe \
293	-Wl,-O1 \
294	-Wl,--as-needed \
295	-Wl,--gc-sections \
296	-Wl,--warn-shared-textrel
297
298
299LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
300
301LOCAL_STATIC_LIBRARIES :=
302
303# Enable grouping to fix circular references
304LOCAL_GROUP_STATIC_LIBRARIES := true
305
306LOCAL_SHARED_LIBRARIES := \
307	libstlport \
308	libdl
309
310# Add target alias to "gyp_all_modules" target.
311.PHONY: gyp_all_modules
312gyp_all_modules: ipc_ipc_gyp
313
314# Alias gyp target name.
315.PHONY: ipc
316ipc: ipc_ipc_gyp
317
318include $(BUILD_STATIC_LIBRARY)
319