• 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 := ui_native_theme_native_theme_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	$(call intermediates-dir-for,GYP,skia_skia_gyp)/skia.stamp \
15	$(call intermediates-dir-for,GYP,ui_resources_ui_resources_gyp)/ui_resources.stamp \
16	$(call intermediates-dir-for,STATIC_LIBRARIES,ui_ui_gyp)/ui_ui_gyp.a
17
18GYP_GENERATED_OUTPUTS :=
19
20# Make sure our deps and generated files are built first.
21LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
22
23LOCAL_CPP_EXTENSION := .cc
24LOCAL_GENERATED_SOURCES :=
25
26GYP_COPIED_SOURCE_ORIGIN_DIRS :=
27
28LOCAL_SRC_FILES := \
29	ui/native_theme/common_theme.cc \
30	ui/native_theme/fallback_theme.cc \
31	ui/native_theme/native_theme.cc \
32	ui/native_theme/native_theme_android.cc \
33	ui/native_theme/native_theme_base.cc
34
35
36# Flags passed to both C and C++ files.
37MY_CFLAGS_Debug := \
38	-fstack-protector \
39	--param=ssp-buffer-size=4 \
40	 \
41	-fno-exceptions \
42	-fno-strict-aliasing \
43	-Wall \
44	-Wno-unused-parameter \
45	-Wno-missing-field-initializers \
46	-fvisibility=hidden \
47	-pipe \
48	-fPIC \
49	-EL \
50	-mhard-float \
51	-ffunction-sections \
52	-funwind-tables \
53	-g \
54	-fstack-protector \
55	-fno-short-enums \
56	-finline-limit=64 \
57	-Wa,--noexecstack \
58	-U_FORTIFY_SOURCE \
59	-Wno-extra \
60	-Wno-ignored-qualifiers \
61	-Wno-type-limits \
62	-Os \
63	-g \
64	-fomit-frame-pointer \
65	-fdata-sections \
66	-ffunction-sections
67
68MY_DEFS_Debug := \
69	'-DV8_DEPRECATION_WARNINGS' \
70	'-D_FILE_OFFSET_BITS=64' \
71	'-DNO_TCMALLOC' \
72	'-DDISABLE_NACL' \
73	'-DCHROMIUM_BUILD' \
74	'-DUSE_LIBJPEG_TURBO=1' \
75	'-DUSE_PROPRIETARY_CODECS' \
76	'-DENABLE_CONFIGURATION_POLICY' \
77	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
78	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
79	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
80	'-DUSE_OPENSSL=1' \
81	'-DENABLE_EGLIMAGE=1' \
82	'-DCLD_VERSION=1' \
83	'-DENABLE_PRINTING=1' \
84	'-DENABLE_MANAGED_USERS=1' \
85	'-DNATIVE_THEME_IMPLEMENTATION' \
86	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
87	'-DU_USING_ICU_NAMESPACE=0' \
88	'-DPOSIX_AVOID_MMAP' \
89	'-D__STDC_CONSTANT_MACROS' \
90	'-D__STDC_FORMAT_MACROS' \
91	'-DANDROID' \
92	'-D__GNU_SOURCE=1' \
93	'-DUSE_STLPORT=1' \
94	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
95	'-DCHROME_BUILD_ID=""' \
96	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
97	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
98	'-D_DEBUG'
99
100
101# Include paths placed before CFLAGS/CPPFLAGS
102LOCAL_C_INCLUDES_Debug := \
103	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
104	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
105	$(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \
106	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
107	$(LOCAL_PATH) \
108	$(LOCAL_PATH)/skia/config \
109	$(PWD)/external/skia/include \
110	$(PWD)/external/skia/include/core \
111	$(LOCAL_PATH)/third_party/skia/src/core \
112	$(LOCAL_PATH)/skia/ext \
113	$(PWD)/external/icu4c/common \
114	$(PWD)/external/icu4c/i18n \
115	$(gyp_shared_intermediate_dir)/ui/ui_resources \
116	$(PWD)/frameworks/wilhelm/include \
117	$(PWD)/bionic \
118	$(PWD)/external/stlport/stlport
119
120
121# Flags passed to only C++ (and not C) files.
122LOCAL_CPPFLAGS_Debug := \
123	-fno-rtti \
124	-fno-threadsafe-statics \
125	-fvisibility-inlines-hidden \
126	-Wsign-compare \
127	-Wno-uninitialized \
128	-Wno-error=c++0x-compat \
129	-Wno-non-virtual-dtor \
130	-Wno-sign-promo
131
132
133# Flags passed to both C and C++ files.
134MY_CFLAGS_Release := \
135	-fstack-protector \
136	--param=ssp-buffer-size=4 \
137	 \
138	-fno-exceptions \
139	-fno-strict-aliasing \
140	-Wall \
141	-Wno-unused-parameter \
142	-Wno-missing-field-initializers \
143	-fvisibility=hidden \
144	-pipe \
145	-fPIC \
146	-EL \
147	-mhard-float \
148	-ffunction-sections \
149	-funwind-tables \
150	-g \
151	-fstack-protector \
152	-fno-short-enums \
153	-finline-limit=64 \
154	-Wa,--noexecstack \
155	-U_FORTIFY_SOURCE \
156	-Wno-extra \
157	-Wno-ignored-qualifiers \
158	-Wno-type-limits \
159	-Os \
160	-fno-ident \
161	-fdata-sections \
162	-ffunction-sections \
163	-fomit-frame-pointer
164
165MY_DEFS_Release := \
166	'-DV8_DEPRECATION_WARNINGS' \
167	'-D_FILE_OFFSET_BITS=64' \
168	'-DNO_TCMALLOC' \
169	'-DDISABLE_NACL' \
170	'-DCHROMIUM_BUILD' \
171	'-DUSE_LIBJPEG_TURBO=1' \
172	'-DUSE_PROPRIETARY_CODECS' \
173	'-DENABLE_CONFIGURATION_POLICY' \
174	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
175	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
176	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
177	'-DUSE_OPENSSL=1' \
178	'-DENABLE_EGLIMAGE=1' \
179	'-DCLD_VERSION=1' \
180	'-DENABLE_PRINTING=1' \
181	'-DENABLE_MANAGED_USERS=1' \
182	'-DNATIVE_THEME_IMPLEMENTATION' \
183	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
184	'-DU_USING_ICU_NAMESPACE=0' \
185	'-DPOSIX_AVOID_MMAP' \
186	'-D__STDC_CONSTANT_MACROS' \
187	'-D__STDC_FORMAT_MACROS' \
188	'-DANDROID' \
189	'-D__GNU_SOURCE=1' \
190	'-DUSE_STLPORT=1' \
191	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
192	'-DCHROME_BUILD_ID=""' \
193	'-DNDEBUG' \
194	'-DNVALGRIND' \
195	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
196	'-D_FORTIFY_SOURCE=2'
197
198
199# Include paths placed before CFLAGS/CPPFLAGS
200LOCAL_C_INCLUDES_Release := \
201	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
202	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
203	$(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \
204	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
205	$(LOCAL_PATH) \
206	$(LOCAL_PATH)/skia/config \
207	$(PWD)/external/skia/include \
208	$(PWD)/external/skia/include/core \
209	$(LOCAL_PATH)/third_party/skia/src/core \
210	$(LOCAL_PATH)/skia/ext \
211	$(PWD)/external/icu4c/common \
212	$(PWD)/external/icu4c/i18n \
213	$(gyp_shared_intermediate_dir)/ui/ui_resources \
214	$(PWD)/frameworks/wilhelm/include \
215	$(PWD)/bionic \
216	$(PWD)/external/stlport/stlport
217
218
219# Flags passed to only C++ (and not C) files.
220LOCAL_CPPFLAGS_Release := \
221	-fno-rtti \
222	-fno-threadsafe-statics \
223	-fvisibility-inlines-hidden \
224	-Wsign-compare \
225	-Wno-uninitialized \
226	-Wno-error=c++0x-compat \
227	-Wno-non-virtual-dtor \
228	-Wno-sign-promo
229
230
231LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
232LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
233LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
234### Rules for final target.
235
236LOCAL_LDFLAGS_Debug := \
237	-Wl,-z,now \
238	-Wl,-z,relro \
239	-Wl,-z,noexecstack \
240	-fPIC \
241	-EL \
242	-Wl,--no-keep-memory \
243	-nostdlib \
244	-Wl,--no-undefined \
245	-Wl,--exclude-libs=ALL \
246	-Wl,--fatal-warnings \
247	-Wl,--gc-sections \
248	-Wl,--warn-shared-textrel \
249	-Wl,-O1 \
250	-Wl,--as-needed
251
252
253LOCAL_LDFLAGS_Release := \
254	-Wl,-z,now \
255	-Wl,-z,relro \
256	-Wl,-z,noexecstack \
257	-fPIC \
258	-EL \
259	-Wl,--no-keep-memory \
260	-nostdlib \
261	-Wl,--no-undefined \
262	-Wl,--exclude-libs=ALL \
263	-Wl,-O1 \
264	-Wl,--as-needed \
265	-Wl,--gc-sections \
266	-Wl,--fatal-warnings \
267	-Wl,--warn-shared-textrel
268
269
270LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
271
272LOCAL_STATIC_LIBRARIES := \
273	ui_ui_gyp
274
275# Enable grouping to fix circular references
276LOCAL_GROUP_STATIC_LIBRARIES := true
277
278LOCAL_SHARED_LIBRARIES := \
279	libskia \
280	libstlport \
281	libdl
282
283# Add target alias to "gyp_all_modules" target.
284.PHONY: gyp_all_modules
285gyp_all_modules: ui_native_theme_native_theme_gyp
286
287# Alias gyp target name.
288.PHONY: native_theme
289native_theme: ui_native_theme_native_theme_gyp
290
291include $(BUILD_STATIC_LIBRARY)
292