url_lib.target.darwin-arm.mk revision 868fa2fe829687343ffae624259930155e16dbd8
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	-Werror \
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	-fno-tree-sra \
62	-fuse-ld=gold \
63	-Wno-psabi \
64	-ffunction-sections \
65	-funwind-tables \
66	-g \
67	-fstack-protector \
68	-fno-short-enums \
69	-finline-limit=64 \
70	-Wa,--noexecstack \
71	-U_FORTIFY_SOURCE \
72	-Wno-extra \
73	-Wno-ignored-qualifiers \
74	-Wno-type-limits \
75	-Os \
76	-g \
77	-fomit-frame-pointer \
78	-fdata-sections \
79	-ffunction-sections
80
81MY_CFLAGS_C :=
82
83MY_DEFS := \
84	'-D_FILE_OFFSET_BITS=64' \
85	'-DUSE_LINUX_BREAKPAD' \
86	'-DNO_TCMALLOC' \
87	'-DDISABLE_NACL' \
88	'-DCHROMIUM_BUILD' \
89	'-DUSE_LIBJPEG_TURBO=1' \
90	'-DUSE_PROPRIETARY_CODECS' \
91	'-DENABLE_GPU=1' \
92	'-DUSE_OPENSSL=1' \
93	'-DENABLE_EGLIMAGE=1' \
94	'-DENABLE_LANGUAGE_DETECTION=1' \
95	'-DURL_IMPLEMENTATION' \
96	'-DU_USING_ICU_NAMESPACE=0' \
97	'-D__STDC_CONSTANT_MACROS' \
98	'-D__STDC_FORMAT_MACROS' \
99	'-DANDROID' \
100	'-D__GNU_SOURCE=1' \
101	'-DUSE_STLPORT=1' \
102	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
103	'-DCHROME_BUILD_ID=""' \
104	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
105	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
106	'-D_DEBUG'
107
108LOCAL_CFLAGS := $(MY_CFLAGS_C) $(MY_CFLAGS) $(MY_DEFS)
109
110# Include paths placed before CFLAGS/CPPFLAGS
111LOCAL_C_INCLUDES := \
112	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
113	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
114	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
115	$(LOCAL_PATH) \
116	$(PWD)/external/icu4c/common \
117	$(PWD)/external/icu4c/i18n \
118	$(PWD)/frameworks/wilhelm/include \
119	$(PWD)/bionic \
120	$(PWD)/external/stlport/stlport
121
122LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES)
123
124# Flags passed to only C++ (and not C) files.
125LOCAL_CPPFLAGS := \
126	-fno-rtti \
127	-fno-threadsafe-statics \
128	-fvisibility-inlines-hidden \
129	-Wsign-compare \
130	-Wno-abi \
131	-Wno-error=c++0x-compat \
132	-Wno-non-virtual-dtor \
133	-Wno-sign-promo
134
135### Rules for final target.
136
137LOCAL_LDFLAGS := \
138	-Wl,-z,now \
139	-Wl,-z,relro \
140	-Wl,-z,noexecstack \
141	-fPIC \
142	-Wl,-z,relro \
143	-Wl,-z,now \
144	-fuse-ld=gold \
145	-nostdlib \
146	-Wl,--no-undefined \
147	-Wl,--exclude-libs=ALL \
148	-Wl,--icf=safe \
149	-Wl,--gc-sections \
150	-Wl,-O1 \
151	-Wl,--as-needed
152
153
154LOCAL_STATIC_LIBRARIES :=
155
156# Enable grouping to fix circular references
157LOCAL_GROUP_STATIC_LIBRARIES := true
158
159LOCAL_SHARED_LIBRARIES := \
160	libstlport \
161	libdl
162
163# Add target alias to "gyp_all_modules" target.
164.PHONY: gyp_all_modules
165gyp_all_modules: url_url_lib_gyp
166
167# Alias gyp target name.
168.PHONY: url_lib
169url_lib: url_url_lib_gyp
170
171include $(BUILD_STATIC_LIBRARY)
172