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