blob: 254be60c5d2b3050189c93b09e54906b2e248a72 [file] [log] [blame]
Torne (Richard Coles)868fa2f2013-06-11 10:57:03 +01001# 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 --param=ssp-buffer-size=4 \
51 -Werror \
52 -fno-exceptions \
53 -fno-strict-aliasing \
54 -Wall \
55 -Wno-unused-parameter \
56 -Wno-missing-field-initializers \
57 -fvisibility=hidden \
58 -pipe \
59 -fPIC \
60 -m32 \
61 -mmmx \
62 -march=pentium4 \
63 -msse2 \
64 -mfpmath=sse \
65 -fuse-ld=gold \
66 -ffunction-sections \
67 -funwind-tables \
68 -g \
69 -fno-short-enums \
70 -finline-limit=64 \
71 -Wa,--noexecstack \
72 -U_FORTIFY_SOURCE \
73 -Wno-extra \
74 -Wno-ignored-qualifiers \
75 -Wno-type-limits \
76 -fno-stack-protector \
77 -Os \
78 -g \
79 -fomit-frame-pointer \
80 -fdata-sections \
81 -ffunction-sections
82
83MY_CFLAGS_C :=
84
85MY_DEFS := \
Torne (Richard Coles)7d4cd472013-06-19 11:58:07 +010086 '-DANGLE_DX11' \
Torne (Richard Coles)868fa2f2013-06-11 10:57:03 +010087 '-D_FILE_OFFSET_BITS=64' \
88 '-DUSE_LINUX_BREAKPAD' \
89 '-DNO_TCMALLOC' \
90 '-DDISABLE_NACL' \
91 '-DCHROMIUM_BUILD' \
92 '-DUSE_LIBJPEG_TURBO=1' \
93 '-DUSE_PROPRIETARY_CODECS' \
94 '-DENABLE_GPU=1' \
95 '-DUSE_OPENSSL=1' \
96 '-DENABLE_EGLIMAGE=1' \
97 '-DENABLE_LANGUAGE_DETECTION=1' \
98 '-DURL_IMPLEMENTATION' \
99 '-DU_USING_ICU_NAMESPACE=0' \
100 '-D__STDC_CONSTANT_MACROS' \
101 '-D__STDC_FORMAT_MACROS' \
102 '-DANDROID' \
103 '-D__GNU_SOURCE=1' \
104 '-DUSE_STLPORT=1' \
105 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
106 '-DCHROME_BUILD_ID=""' \
107 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
108 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
109 '-D_DEBUG'
110
111LOCAL_CFLAGS := $(MY_CFLAGS_C) $(MY_CFLAGS) $(MY_DEFS)
112
113# Include paths placed before CFLAGS/CPPFLAGS
114LOCAL_C_INCLUDES := \
115 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
116 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
117 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
118 $(LOCAL_PATH) \
119 $(PWD)/external/icu4c/common \
120 $(PWD)/external/icu4c/i18n \
121 $(PWD)/frameworks/wilhelm/include \
122 $(PWD)/bionic \
123 $(PWD)/external/stlport/stlport
124
125LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES)
126
127# Flags passed to only C++ (and not C) files.
128LOCAL_CPPFLAGS := \
129 -fno-rtti \
130 -fno-threadsafe-statics \
131 -fvisibility-inlines-hidden \
132 -Wsign-compare \
133 -Wno-error=c++0x-compat \
134 -Wno-non-virtual-dtor \
135 -Wno-sign-promo
136
137### Rules for final target.
138
139LOCAL_LDFLAGS := \
140 -Wl,-z,now \
141 -Wl,-z,relro \
142 -Wl,-z,noexecstack \
143 -fPIC \
144 -m32 \
145 -fuse-ld=gold \
146 -nostdlib \
147 -Wl,--no-undefined \
148 -Wl,--exclude-libs=ALL \
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)