brotli.target.darwin-x86_64.mk revision 6e8cce623b6e4fe0c9e4af605d675dd9d0338c38
1# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := STATIC_LIBRARIES
6LOCAL_MODULE := third_party_brotli_brotli_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_GENERATED_SOURCES :=
22
23GYP_COPIED_SOURCE_ORIGIN_DIRS :=
24
25LOCAL_SRC_FILES := \
26	third_party/brotli/src/brotli/dec/bit_reader.c \
27	third_party/brotli/src/brotli/dec/decode.c \
28	third_party/brotli/src/brotli/dec/huffman.c \
29	third_party/brotli/src/brotli/dec/safe_malloc.c \
30	third_party/brotli/src/brotli/dec/streams.c
31
32
33# Flags passed to both C and C++ files.
34MY_CFLAGS_Debug := \
35	-fstack-protector \
36	--param=ssp-buffer-size=4 \
37	-fno-exceptions \
38	-fno-strict-aliasing \
39	-Wno-unused-parameter \
40	-Wno-missing-field-initializers \
41	-fvisibility=hidden \
42	-pipe \
43	-fPIC \
44	-Wno-unused-local-typedefs \
45	-Wno-format \
46	-m64 \
47	-march=x86-64 \
48	-ffunction-sections \
49	-funwind-tables \
50	-g \
51	-fstack-protector \
52	-fno-short-enums \
53	-finline-limit=64 \
54	-Wa,--noexecstack \
55	-U_FORTIFY_SOURCE \
56	-Wno-extra \
57	-Wno-ignored-qualifiers \
58	-Wno-type-limits \
59	-Wno-unused-but-set-variable \
60	-Wno-address \
61	-Wno-format-security \
62	-Wno-return-type \
63	-Wno-sequence-point \
64	-Os \
65	-g \
66	-fdata-sections \
67	-ffunction-sections \
68	-fomit-frame-pointer \
69	-funwind-tables
70
71MY_DEFS_Debug := \
72	'-DV8_DEPRECATION_WARNINGS' \
73	'-D_FILE_OFFSET_BITS=64' \
74	'-DNO_TCMALLOC' \
75	'-DDISABLE_NACL' \
76	'-DCHROMIUM_BUILD' \
77	'-DUSE_LIBJPEG_TURBO=1' \
78	'-DENABLE_WEBRTC=1' \
79	'-DUSE_PROPRIETARY_CODECS' \
80	'-DENABLE_BROWSER_CDMS' \
81	'-DENABLE_CONFIGURATION_POLICY' \
82	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
83	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
84	'-DENABLE_EGLIMAGE=1' \
85	'-DCLD_VERSION=1' \
86	'-DENABLE_PRINTING=1' \
87	'-DENABLE_MANAGED_USERS=1' \
88	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
89	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
90	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
91	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
92	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
93	'-DVIDEO_HOLE=1' \
94	'-DUSE_OPENSSL=1' \
95	'-DUSE_OPENSSL_CERTS=1' \
96	'-DANDROID' \
97	'-D__GNU_SOURCE=1' \
98	'-DUSE_STLPORT=1' \
99	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
100	'-DCHROME_BUILD_ID=""' \
101	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
102	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
103	'-D_DEBUG'
104
105
106# Include paths placed before CFLAGS/CPPFLAGS
107LOCAL_C_INCLUDES_Debug := \
108	$(gyp_shared_intermediate_dir) \
109	$(LOCAL_PATH)/third_party/brotli/src/brotli/dec \
110	$(PWD)/frameworks/wilhelm/include \
111	$(PWD)/bionic \
112	$(PWD)/external/stlport/stlport
113
114
115# Flags passed to only C++ (and not C) files.
116LOCAL_CPPFLAGS_Debug := \
117	-fno-rtti \
118	-fno-threadsafe-statics \
119	-fvisibility-inlines-hidden \
120	-Wno-deprecated \
121	-std=gnu++11 \
122	-Wno-narrowing \
123	-Wno-literal-suffix \
124	-Wno-non-virtual-dtor \
125	-Wno-sign-promo \
126	-Wno-non-virtual-dtor
127
128
129# Flags passed to both C and C++ files.
130MY_CFLAGS_Release := \
131	-fstack-protector \
132	--param=ssp-buffer-size=4 \
133	-fno-exceptions \
134	-fno-strict-aliasing \
135	-Wno-unused-parameter \
136	-Wno-missing-field-initializers \
137	-fvisibility=hidden \
138	-pipe \
139	-fPIC \
140	-Wno-unused-local-typedefs \
141	-Wno-format \
142	-m64 \
143	-march=x86-64 \
144	-ffunction-sections \
145	-funwind-tables \
146	-g \
147	-fstack-protector \
148	-fno-short-enums \
149	-finline-limit=64 \
150	-Wa,--noexecstack \
151	-U_FORTIFY_SOURCE \
152	-Wno-extra \
153	-Wno-ignored-qualifiers \
154	-Wno-type-limits \
155	-Wno-unused-but-set-variable \
156	-Wno-address \
157	-Wno-format-security \
158	-Wno-return-type \
159	-Wno-sequence-point \
160	-Os \
161	-fno-ident \
162	-fdata-sections \
163	-ffunction-sections \
164	-fomit-frame-pointer \
165	-funwind-tables
166
167MY_DEFS_Release := \
168	'-DV8_DEPRECATION_WARNINGS' \
169	'-D_FILE_OFFSET_BITS=64' \
170	'-DNO_TCMALLOC' \
171	'-DDISABLE_NACL' \
172	'-DCHROMIUM_BUILD' \
173	'-DUSE_LIBJPEG_TURBO=1' \
174	'-DENABLE_WEBRTC=1' \
175	'-DUSE_PROPRIETARY_CODECS' \
176	'-DENABLE_BROWSER_CDMS' \
177	'-DENABLE_CONFIGURATION_POLICY' \
178	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
179	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
180	'-DENABLE_EGLIMAGE=1' \
181	'-DCLD_VERSION=1' \
182	'-DENABLE_PRINTING=1' \
183	'-DENABLE_MANAGED_USERS=1' \
184	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
185	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
186	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
187	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
188	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
189	'-DVIDEO_HOLE=1' \
190	'-DUSE_OPENSSL=1' \
191	'-DUSE_OPENSSL_CERTS=1' \
192	'-DANDROID' \
193	'-D__GNU_SOURCE=1' \
194	'-DUSE_STLPORT=1' \
195	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
196	'-DCHROME_BUILD_ID=""' \
197	'-DNDEBUG' \
198	'-DNVALGRIND' \
199	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
200
201
202# Include paths placed before CFLAGS/CPPFLAGS
203LOCAL_C_INCLUDES_Release := \
204	$(gyp_shared_intermediate_dir) \
205	$(LOCAL_PATH)/third_party/brotli/src/brotli/dec \
206	$(PWD)/frameworks/wilhelm/include \
207	$(PWD)/bionic \
208	$(PWD)/external/stlport/stlport
209
210
211# Flags passed to only C++ (and not C) files.
212LOCAL_CPPFLAGS_Release := \
213	-fno-rtti \
214	-fno-threadsafe-statics \
215	-fvisibility-inlines-hidden \
216	-Wno-deprecated \
217	-std=gnu++11 \
218	-Wno-narrowing \
219	-Wno-literal-suffix \
220	-Wno-non-virtual-dtor \
221	-Wno-sign-promo \
222	-Wno-non-virtual-dtor
223
224
225LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
226LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
227LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
228LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
229### Rules for final target.
230
231LOCAL_LDFLAGS_Debug := \
232	-Wl,-z,now \
233	-Wl,-z,relro \
234	-Wl,--fatal-warnings \
235	-Wl,-z,noexecstack \
236	-fPIC \
237	-m64 \
238	-fuse-ld=gold \
239	-nostdlib \
240	-Wl,--no-undefined \
241	-Wl,--exclude-libs=ALL \
242	-Wl,--warn-shared-textrel \
243	-Wl,-O1 \
244	-Wl,--as-needed
245
246
247LOCAL_LDFLAGS_Release := \
248	-Wl,-z,now \
249	-Wl,-z,relro \
250	-Wl,--fatal-warnings \
251	-Wl,-z,noexecstack \
252	-fPIC \
253	-m64 \
254	-fuse-ld=gold \
255	-nostdlib \
256	-Wl,--no-undefined \
257	-Wl,--exclude-libs=ALL \
258	-Wl,-O1 \
259	-Wl,--as-needed \
260	-Wl,--gc-sections \
261	-Wl,--warn-shared-textrel
262
263
264LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
265
266LOCAL_STATIC_LIBRARIES :=
267
268# Enable grouping to fix circular references
269LOCAL_GROUP_STATIC_LIBRARIES := true
270
271LOCAL_SHARED_LIBRARIES := \
272	libstlport \
273	libdl
274
275# Add target alias to "gyp_all_modules" target.
276.PHONY: gyp_all_modules
277gyp_all_modules: third_party_brotli_brotli_gyp
278
279# Alias gyp target name.
280.PHONY: brotli
281brotli: third_party_brotli_brotli_gyp
282
283include $(BUILD_STATIC_LIBRARY)
284