• 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 := third_party_brotli_brotli_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_GENERATED_SOURCES :=
21
22GYP_COPIED_SOURCE_ORIGIN_DIRS :=
23
24LOCAL_SRC_FILES := \
25	third_party/brotli/src/brotli/dec/bit_reader.c \
26	third_party/brotli/src/brotli/dec/decode.c \
27	third_party/brotli/src/brotli/dec/huffman.c \
28	third_party/brotli/src/brotli/dec/safe_malloc.c \
29	third_party/brotli/src/brotli/dec/streams.c
30
31
32# Flags passed to both C and C++ files.
33MY_CFLAGS_Debug := \
34	--param=ssp-buffer-size=4 \
35	-fno-strict-aliasing \
36	-Wno-unused-parameter \
37	-Wno-missing-field-initializers \
38	-fvisibility=hidden \
39	-pipe \
40	-fPIC \
41	-Wno-unused-local-typedefs \
42	-Wno-format \
43	-ffunction-sections \
44	-funwind-tables \
45	-g \
46	-fno-short-enums \
47	-finline-limit=64 \
48	-Wa,--noexecstack \
49	-U_FORTIFY_SOURCE \
50	-Wno-extra \
51	-Wno-ignored-qualifiers \
52	-Wno-type-limits \
53	-Wno-unused-but-set-variable \
54	-Wno-address \
55	-Wno-format-security \
56	-Wno-return-type \
57	-Wno-sequence-point \
58	-Os \
59	-g \
60	-gdwarf-4 \
61	-fdata-sections \
62	-ffunction-sections \
63	-funwind-tables
64
65MY_DEFS_Debug := \
66	'-DV8_DEPRECATION_WARNINGS' \
67	'-D_FILE_OFFSET_BITS=64' \
68	'-DNO_TCMALLOC' \
69	'-DDISABLE_NACL' \
70	'-DCHROMIUM_BUILD' \
71	'-DUSE_LIBJPEG_TURBO=1' \
72	'-DENABLE_WEBRTC=1' \
73	'-DUSE_PROPRIETARY_CODECS' \
74	'-DENABLE_BROWSER_CDMS' \
75	'-DENABLE_CONFIGURATION_POLICY' \
76	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
77	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
78	'-DENABLE_EGLIMAGE=1' \
79	'-DCLD_VERSION=1' \
80	'-DENABLE_PRINTING=1' \
81	'-DENABLE_MANAGED_USERS=1' \
82	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
83	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
84	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
85	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
86	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
87	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
88	'-DVIDEO_HOLE=1' \
89	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
90	'-DUSE_OPENSSL=1' \
91	'-DUSE_OPENSSL_CERTS=1' \
92	'-DANDROID' \
93	'-D__GNU_SOURCE=1' \
94	'-DUSE_STLPORT=1' \
95	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
96	'-DCHROME_BUILD_ID=""' \
97	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
98	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
99	'-D_DEBUG'
100
101
102# Include paths placed before CFLAGS/CPPFLAGS
103LOCAL_C_INCLUDES_Debug := \
104	$(gyp_shared_intermediate_dir) \
105	$(LOCAL_PATH)/third_party/brotli/src/brotli/dec \
106	$(PWD)/frameworks/wilhelm/include \
107	$(PWD)/bionic \
108	$(PWD)/external/stlport/stlport
109
110
111# Flags passed to only C++ (and not C) files.
112LOCAL_CPPFLAGS_Debug := \
113	-fno-exceptions \
114	-fno-rtti \
115	-fno-threadsafe-statics \
116	-fvisibility-inlines-hidden \
117	-Wno-deprecated \
118	-std=gnu++11 \
119	-Wno-narrowing \
120	-Wno-literal-suffix \
121	-Wno-non-virtual-dtor \
122	-Wno-sign-promo \
123	-Wno-non-virtual-dtor
124
125
126# Flags passed to both C and C++ files.
127MY_CFLAGS_Release := \
128	--param=ssp-buffer-size=4 \
129	-fno-strict-aliasing \
130	-Wno-unused-parameter \
131	-Wno-missing-field-initializers \
132	-fvisibility=hidden \
133	-pipe \
134	-fPIC \
135	-Wno-unused-local-typedefs \
136	-Wno-format \
137	-ffunction-sections \
138	-funwind-tables \
139	-g \
140	-fno-short-enums \
141	-finline-limit=64 \
142	-Wa,--noexecstack \
143	-U_FORTIFY_SOURCE \
144	-Wno-extra \
145	-Wno-ignored-qualifiers \
146	-Wno-type-limits \
147	-Wno-unused-but-set-variable \
148	-Wno-address \
149	-Wno-format-security \
150	-Wno-return-type \
151	-Wno-sequence-point \
152	-Os \
153	-fno-ident \
154	-fdata-sections \
155	-ffunction-sections \
156	-funwind-tables
157
158MY_DEFS_Release := \
159	'-DV8_DEPRECATION_WARNINGS' \
160	'-D_FILE_OFFSET_BITS=64' \
161	'-DNO_TCMALLOC' \
162	'-DDISABLE_NACL' \
163	'-DCHROMIUM_BUILD' \
164	'-DUSE_LIBJPEG_TURBO=1' \
165	'-DENABLE_WEBRTC=1' \
166	'-DUSE_PROPRIETARY_CODECS' \
167	'-DENABLE_BROWSER_CDMS' \
168	'-DENABLE_CONFIGURATION_POLICY' \
169	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
170	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
171	'-DENABLE_EGLIMAGE=1' \
172	'-DCLD_VERSION=1' \
173	'-DENABLE_PRINTING=1' \
174	'-DENABLE_MANAGED_USERS=1' \
175	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
176	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
177	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
178	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
179	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
180	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
181	'-DVIDEO_HOLE=1' \
182	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
183	'-DUSE_OPENSSL=1' \
184	'-DUSE_OPENSSL_CERTS=1' \
185	'-DANDROID' \
186	'-D__GNU_SOURCE=1' \
187	'-DUSE_STLPORT=1' \
188	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
189	'-DCHROME_BUILD_ID=""' \
190	'-DNDEBUG' \
191	'-DNVALGRIND' \
192	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
193
194
195# Include paths placed before CFLAGS/CPPFLAGS
196LOCAL_C_INCLUDES_Release := \
197	$(gyp_shared_intermediate_dir) \
198	$(LOCAL_PATH)/third_party/brotli/src/brotli/dec \
199	$(PWD)/frameworks/wilhelm/include \
200	$(PWD)/bionic \
201	$(PWD)/external/stlport/stlport
202
203
204# Flags passed to only C++ (and not C) files.
205LOCAL_CPPFLAGS_Release := \
206	-fno-exceptions \
207	-fno-rtti \
208	-fno-threadsafe-statics \
209	-fvisibility-inlines-hidden \
210	-Wno-deprecated \
211	-std=gnu++11 \
212	-Wno-narrowing \
213	-Wno-literal-suffix \
214	-Wno-non-virtual-dtor \
215	-Wno-sign-promo \
216	-Wno-non-virtual-dtor
217
218
219LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
220LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
221LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
222LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
223### Rules for final target.
224
225LOCAL_SHARED_LIBRARIES := \
226	libstlport \
227	libdl
228
229# Add target alias to "gyp_all_modules" target.
230.PHONY: gyp_all_modules
231gyp_all_modules: third_party_brotli_brotli_gyp
232
233# Alias gyp target name.
234.PHONY: brotli
235brotli: third_party_brotli_brotli_gyp
236
237include $(BUILD_STATIC_LIBRARY)
238