• 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_modp_b64_modp_b64_gyp
7LOCAL_MODULE_SUFFIX := .a
8LOCAL_MODULE_TAGS := optional
9gyp_intermediate_dir := $(call local-intermediates-dir)
10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared)
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	third_party/modp_b64/modp_b64.cc
27
28
29# Flags passed to both C and C++ files.
30MY_CFLAGS_Debug := \
31	-fstack-protector \
32	--param=ssp-buffer-size=4 \
33	 \
34	-fno-exceptions \
35	-fno-strict-aliasing \
36	-Wno-unused-parameter \
37	-Wno-missing-field-initializers \
38	-fvisibility=hidden \
39	-pipe \
40	-fPIC \
41	-Wno-format \
42	-EL \
43	-mhard-float \
44	-ffunction-sections \
45	-funwind-tables \
46	-g \
47	-fstack-protector \
48	-fno-short-enums \
49	-finline-limit=64 \
50	-Wa,--noexecstack \
51	-U_FORTIFY_SOURCE \
52	-Wno-extra \
53	-Wno-ignored-qualifiers \
54	-Wno-type-limits \
55	-Wno-address \
56	-Wno-format-security \
57	-Wno-return-type \
58	-Wno-sequence-point \
59	-Os \
60	-g \
61	-fomit-frame-pointer \
62	-fdata-sections \
63	-ffunction-sections
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	'-DUSE_PROPRIETARY_CODECS' \
73	'-DENABLE_CONFIGURATION_POLICY' \
74	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
75	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
76	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
77	'-DUSE_OPENSSL=1' \
78	'-DENABLE_EGLIMAGE=1' \
79	'-DCLD_VERSION=1' \
80	'-DENABLE_PRINTING=1' \
81	'-DENABLE_MANAGED_USERS=1' \
82	'-DANDROID' \
83	'-D__GNU_SOURCE=1' \
84	'-DUSE_STLPORT=1' \
85	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
86	'-DCHROME_BUILD_ID=""' \
87	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
88	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
89	'-D_DEBUG'
90
91
92# Include paths placed before CFLAGS/CPPFLAGS
93LOCAL_C_INCLUDES_Debug := \
94	$(LOCAL_PATH) \
95	$(PWD)/frameworks/wilhelm/include \
96	$(PWD)/bionic \
97	$(PWD)/external/stlport/stlport
98
99
100# Flags passed to only C++ (and not C) files.
101LOCAL_CPPFLAGS_Debug := \
102	-fno-rtti \
103	-fno-threadsafe-statics \
104	-fvisibility-inlines-hidden \
105	-Wno-deprecated \
106	-Wno-uninitialized \
107	-Wno-error=c++0x-compat \
108	-Wno-non-virtual-dtor \
109	-Wno-sign-promo \
110	-Wno-non-virtual-dtor
111
112
113# Flags passed to both C and C++ files.
114MY_CFLAGS_Release := \
115	-fstack-protector \
116	--param=ssp-buffer-size=4 \
117	 \
118	-fno-exceptions \
119	-fno-strict-aliasing \
120	-Wno-unused-parameter \
121	-Wno-missing-field-initializers \
122	-fvisibility=hidden \
123	-pipe \
124	-fPIC \
125	-Wno-format \
126	-EL \
127	-mhard-float \
128	-ffunction-sections \
129	-funwind-tables \
130	-g \
131	-fstack-protector \
132	-fno-short-enums \
133	-finline-limit=64 \
134	-Wa,--noexecstack \
135	-U_FORTIFY_SOURCE \
136	-Wno-extra \
137	-Wno-ignored-qualifiers \
138	-Wno-type-limits \
139	-Wno-address \
140	-Wno-format-security \
141	-Wno-return-type \
142	-Wno-sequence-point \
143	-Os \
144	-fno-ident \
145	-fdata-sections \
146	-ffunction-sections \
147	-fomit-frame-pointer
148
149MY_DEFS_Release := \
150	'-DV8_DEPRECATION_WARNINGS' \
151	'-D_FILE_OFFSET_BITS=64' \
152	'-DNO_TCMALLOC' \
153	'-DDISABLE_NACL' \
154	'-DCHROMIUM_BUILD' \
155	'-DUSE_LIBJPEG_TURBO=1' \
156	'-DUSE_PROPRIETARY_CODECS' \
157	'-DENABLE_CONFIGURATION_POLICY' \
158	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
159	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
160	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
161	'-DUSE_OPENSSL=1' \
162	'-DENABLE_EGLIMAGE=1' \
163	'-DCLD_VERSION=1' \
164	'-DENABLE_PRINTING=1' \
165	'-DENABLE_MANAGED_USERS=1' \
166	'-DANDROID' \
167	'-D__GNU_SOURCE=1' \
168	'-DUSE_STLPORT=1' \
169	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
170	'-DCHROME_BUILD_ID=""' \
171	'-DNDEBUG' \
172	'-DNVALGRIND' \
173	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
174
175
176# Include paths placed before CFLAGS/CPPFLAGS
177LOCAL_C_INCLUDES_Release := \
178	$(LOCAL_PATH) \
179	$(PWD)/frameworks/wilhelm/include \
180	$(PWD)/bionic \
181	$(PWD)/external/stlport/stlport
182
183
184# Flags passed to only C++ (and not C) files.
185LOCAL_CPPFLAGS_Release := \
186	-fno-rtti \
187	-fno-threadsafe-statics \
188	-fvisibility-inlines-hidden \
189	-Wno-deprecated \
190	-Wno-uninitialized \
191	-Wno-error=c++0x-compat \
192	-Wno-non-virtual-dtor \
193	-Wno-sign-promo \
194	-Wno-non-virtual-dtor
195
196
197LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
198LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
199LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
200### Rules for final target.
201
202LOCAL_LDFLAGS_Debug := \
203	-Wl,-z,now \
204	-Wl,-z,relro \
205	-Wl,-z,noexecstack \
206	-fPIC \
207	-EL \
208	-Wl,--no-keep-memory \
209	-nostdlib \
210	-Wl,--no-undefined \
211	-Wl,--exclude-libs=ALL \
212	-Wl,--fatal-warnings \
213	-Wl,--gc-sections \
214	-Wl,--warn-shared-textrel \
215	-Wl,-O1 \
216	-Wl,--as-needed
217
218
219LOCAL_LDFLAGS_Release := \
220	-Wl,-z,now \
221	-Wl,-z,relro \
222	-Wl,-z,noexecstack \
223	-fPIC \
224	-EL \
225	-Wl,--no-keep-memory \
226	-nostdlib \
227	-Wl,--no-undefined \
228	-Wl,--exclude-libs=ALL \
229	-Wl,-O1 \
230	-Wl,--as-needed \
231	-Wl,--gc-sections \
232	-Wl,--fatal-warnings \
233	-Wl,--warn-shared-textrel
234
235
236LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
237
238LOCAL_STATIC_LIBRARIES :=
239
240# Enable grouping to fix circular references
241LOCAL_GROUP_STATIC_LIBRARIES := true
242
243LOCAL_SHARED_LIBRARIES := \
244	libstlport \
245	libdl
246
247# Add target alias to "gyp_all_modules" target.
248.PHONY: gyp_all_modules
249gyp_all_modules: third_party_modp_b64_modp_b64_gyp
250
251# Alias gyp target name.
252.PHONY: modp_b64
253modp_b64: third_party_modp_b64_modp_b64_gyp
254
255include $(BUILD_STATIC_LIBRARY)
256