url_lib.target.linux-mips.mk revision 5e3f23d412006dc4db4e659864679f29341e113f
1# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := STATIC_LIBRARIES
6LOCAL_MODULE := url_url_lib_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,third_party_icu_icudata_gyp)/icudata.stamp \
15	$(call intermediates-dir-for,GYP,third_party_icu_icui18n_gyp)/icui18n.stamp \
16	$(call intermediates-dir-for,GYP,third_party_icu_icuuc_gyp)/icuuc.stamp
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	url/gurl.cc \
30	url/url_canon_etc.cc \
31	url/url_canon_filesystemurl.cc \
32	url/url_canon_fileurl.cc \
33	url/url_canon_host.cc \
34	url/url_canon_icu.cc \
35	url/url_canon_internal.cc \
36	url/url_canon_ip.cc \
37	url/url_canon_mailtourl.cc \
38	url/url_canon_path.cc \
39	url/url_canon_pathurl.cc \
40	url/url_canon_query.cc \
41	url/url_canon_relative.cc \
42	url/url_canon_stdurl.cc \
43	url/url_parse.cc \
44	url/url_parse_file.cc \
45	url/url_util.cc
46
47
48# Flags passed to both C and C++ files.
49MY_CFLAGS := \
50	-fstack-protector \
51	--param=ssp-buffer-size=4 \
52	 \
53	-fno-exceptions \
54	-fno-strict-aliasing \
55	-Wall \
56	-Wno-unused-parameter \
57	-Wno-missing-field-initializers \
58	-fvisibility=hidden \
59	-pipe \
60	-fPIC \
61	-EL \
62	-mhard-float \
63	-mips32r2 \
64	-Wa,-mips32r2 \
65	--sysroot=/automerger/android-src/external/chromium_org/mipsel-sysroot/sysroot \
66	-ffunction-sections \
67	-funwind-tables \
68	-g \
69	-fstack-protector \
70	-fno-short-enums \
71	-finline-limit=64 \
72	-Wa,--noexecstack \
73	-U_FORTIFY_SOURCE \
74	-Wno-extra \
75	-Wno-ignored-qualifiers \
76	-Wno-type-limits \
77	-Os \
78	-g \
79	-fomit-frame-pointer \
80	-fdata-sections \
81	-ffunction-sections
82
83MY_CFLAGS_C :=
84
85MY_DEFS := \
86	'-D_FILE_OFFSET_BITS=64' \
87	'-DNO_TCMALLOC' \
88	'-DDISABLE_NACL' \
89	'-DCHROMIUM_BUILD' \
90	'-DUSE_LIBJPEG_TURBO=1' \
91	'-DUSE_PROPRIETARY_CODECS' \
92	'-DENABLE_GPU=1' \
93	'-DUSE_OPENSSL=1' \
94	'-DENABLE_EGLIMAGE=1' \
95	'-DENABLE_LANGUAGE_DETECTION=1' \
96	'-DURL_IMPLEMENTATION' \
97	'-DU_USING_ICU_NAMESPACE=0' \
98	'-D__STDC_CONSTANT_MACROS' \
99	'-D__STDC_FORMAT_MACROS' \
100	'-DANDROID' \
101	'-D__GNU_SOURCE=1' \
102	'-DUSE_STLPORT=1' \
103	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
104	'-DCHROME_BUILD_ID=""' \
105	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
106	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
107	'-D_DEBUG'
108
109LOCAL_CFLAGS := $(MY_CFLAGS_C) $(MY_CFLAGS) $(MY_DEFS)
110
111# Include paths placed before CFLAGS/CPPFLAGS
112LOCAL_C_INCLUDES := \
113	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
114	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
115	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
116	$(LOCAL_PATH) \
117	$(PWD)/external/icu4c/common \
118	$(PWD)/external/icu4c/i18n \
119	$(PWD)/frameworks/wilhelm/include \
120	$(PWD)/bionic \
121	$(PWD)/external/stlport/stlport
122
123LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES)
124
125# Flags passed to only C++ (and not C) files.
126LOCAL_CPPFLAGS := \
127	-fno-rtti \
128	-fno-threadsafe-statics \
129	-fvisibility-inlines-hidden \
130	-Wsign-compare \
131	-Wno-uninitialized \
132	-Wno-error=c++0x-compat \
133	-Wno-non-virtual-dtor \
134	-Wno-sign-promo
135
136### Rules for final target.
137
138LOCAL_LDFLAGS := \
139	-Wl,-z,now \
140	-Wl,-z,relro \
141	-Wl,-z,noexecstack \
142	-fPIC \
143	-EL \
144	-Wl,--no-keep-memory \
145	--sysroot=/automerger/android-src/external/chromium_org/mipsel-sysroot/sysroot \
146	 \
147	-nostdlib \
148	-Wl,--no-undefined \
149	-Wl,--exclude-libs=ALL \
150	-Wl,--gc-sections \
151	-Wl,-O1 \
152	-Wl,--as-needed
153
154
155LOCAL_STATIC_LIBRARIES :=
156
157# Enable grouping to fix circular references
158LOCAL_GROUP_STATIC_LIBRARIES := true
159
160LOCAL_SHARED_LIBRARIES := \
161	libstlport \
162	libdl
163
164# Add target alias to "gyp_all_modules" target.
165.PHONY: gyp_all_modules
166gyp_all_modules: url_url_lib_gyp
167
168# Alias gyp target name.
169.PHONY: url_lib
170url_lib: url_url_lib_gyp
171
172include $(BUILD_STATIC_LIBRARY)
173