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