sqlite.target.darwin-mips.mk revision 7d4cd473f85ac64c3747c96c277f9e506a0d2246
1# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := STATIC_LIBRARIES
6LOCAL_MODULE := third_party_sqlite_sqlite_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_icui18n_gyp)/icui18n.stamp \
15	$(call intermediates-dir-for,GYP,third_party_icu_icuuc_gyp)/icuuc.stamp
16
17GYP_GENERATED_OUTPUTS :=
18
19# Make sure our deps and generated files are built first.
20LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
21
22LOCAL_GENERATED_SOURCES :=
23
24GYP_COPIED_SOURCE_ORIGIN_DIRS :=
25
26LOCAL_SRC_FILES := \
27	third_party/sqlite/amalgamation/sqlite3.c \
28	third_party/sqlite/src/ext/fts2/fts2.c \
29	third_party/sqlite/src/ext/fts2/fts2_hash.c \
30	third_party/sqlite/src/ext/fts2/fts2_icu.c \
31	third_party/sqlite/src/ext/fts2/fts2_porter.c \
32	third_party/sqlite/src/ext/fts2/fts2_tokenizer.c \
33	third_party/sqlite/src/ext/fts2/fts2_tokenizer1.c
34
35
36# Flags passed to both C and C++ files.
37MY_CFLAGS := \
38	-fstack-protector \
39	--param=ssp-buffer-size=4 \
40	 \
41	-fno-exceptions \
42	-fno-strict-aliasing \
43	-Wno-unused-parameter \
44	-Wno-missing-field-initializers \
45	-fvisibility=hidden \
46	-pipe \
47	-fPIC \
48	-Wno-format \
49	-EL \
50	-mhard-float \
51	-mips32r2 \
52	-Wa,-mips32r2 \
53	--sysroot=/automerger/android-src/external/chromium_org/mipsel-sysroot/sysroot \
54	-ffunction-sections \
55	-funwind-tables \
56	-g \
57	-fstack-protector \
58	-fno-short-enums \
59	-finline-limit=64 \
60	-Wa,--noexecstack \
61	-U_FORTIFY_SOURCE \
62	-Wno-extra \
63	-Wno-ignored-qualifiers \
64	-Wno-type-limits \
65	-Wno-address \
66	-Wno-format-security \
67	-Wno-return-type \
68	-Wno-sequence-point \
69	-Os \
70	-g \
71	-fomit-frame-pointer \
72	-fdata-sections \
73	-ffunction-sections
74
75MY_CFLAGS_C :=
76
77MY_DEFS := \
78	'-DSQLITE_CORE' \
79	'-DSQLITE_ENABLE_BROKEN_FTS2' \
80	'-DSQLITE_ENABLE_FTS2' \
81	'-DSQLITE_ENABLE_FTS3' \
82	'-DSQLITE_ENABLE_ICU' \
83	'-DSQLITE_ENABLE_MEMORY_MANAGEMENT' \
84	'-DSQLITE_SECURE_DELETE' \
85	'-DTHREADSAFE' \
86	'-D_HAS_EXCEPTIONS=0' \
87	'-DANGLE_DX11' \
88	'-D_FILE_OFFSET_BITS=64' \
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	'-DHAVE_USLEEP=1' \
99	'-DSQLITE_DEFAULT_JOURNAL_SIZE_LIMIT=1048576' \
100	'-DSQLITE_DEFAULT_AUTOVACUUM=1' \
101	'-DSQLITE_TEMP_STORE=3' \
102	'-DSQLITE_ENABLE_FTS3_BACKWARDS' \
103	'-DDSQLITE_DEFAULT_FILE_FORMAT=4' \
104	'-DU_USING_ICU_NAMESPACE=0' \
105	'-DANDROID' \
106	'-D__GNU_SOURCE=1' \
107	'-DUSE_STLPORT=1' \
108	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
109	'-DCHROME_BUILD_ID=""' \
110	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
111	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
112	'-D_DEBUG'
113
114LOCAL_CFLAGS := $(MY_CFLAGS_C) $(MY_CFLAGS) $(MY_DEFS)
115
116# Include paths placed before CFLAGS/CPPFLAGS
117LOCAL_C_INCLUDES := \
118	$(LOCAL_PATH)/third_party/sqlite/amalgamation \
119	$(LOCAL_PATH)/third_party/sqlite/src/src \
120	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
121	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
122	$(PWD)/external/icu4c/common \
123	$(PWD)/external/icu4c/i18n \
124	$(PWD)/frameworks/wilhelm/include \
125	$(PWD)/bionic \
126	$(PWD)/external/stlport/stlport
127
128LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES)
129
130# Flags passed to only C++ (and not C) files.
131LOCAL_CPPFLAGS := \
132	-fno-rtti \
133	-fno-threadsafe-statics \
134	-fvisibility-inlines-hidden \
135	-Wno-deprecated \
136	-Wno-uninitialized \
137	-Wno-error=c++0x-compat \
138	-Wno-non-virtual-dtor \
139	-Wno-sign-promo \
140	-Wno-non-virtual-dtor
141
142### Rules for final target.
143
144LOCAL_LDFLAGS := \
145	-Wl,-z,now \
146	-Wl,-z,relro \
147	-Wl,-z,noexecstack \
148	-fPIC \
149	-EL \
150	-Wl,--no-keep-memory \
151	--sysroot=/automerger/android-src/external/chromium_org/mipsel-sysroot/sysroot \
152	 \
153	-nostdlib \
154	-Wl,--no-undefined \
155	-Wl,--exclude-libs=ALL \
156	-Wl,--gc-sections \
157	-Wl,-O1 \
158	-Wl,--as-needed
159
160
161LOCAL_STATIC_LIBRARIES :=
162
163# Enable grouping to fix circular references
164LOCAL_GROUP_STATIC_LIBRARIES := true
165
166LOCAL_SHARED_LIBRARIES := \
167	libstlport \
168	libdl
169
170# Add target alias to "gyp_all_modules" target.
171.PHONY: gyp_all_modules
172gyp_all_modules: third_party_sqlite_sqlite_gyp
173
174# Alias gyp target name.
175.PHONY: sqlite
176sqlite: third_party_sqlite_sqlite_gyp
177
178include $(BUILD_STATIC_LIBRARY)
179