sql.target.linux-arm.mk 6.03 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
# This file is generated by gyp; do not edit.

include $(CLEAR_VARS)

LOCAL_MODULE_CLASS := STATIC_LIBRARIES
LOCAL_MODULE := sql_sql_gyp
LOCAL_MODULE_SUFFIX := .a
LOCAL_MODULE_TAGS := optional
gyp_intermediate_dir := $(call local-intermediates-dir)
gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared)

# Make sure our deps are built first.
GYP_TARGET_DEPENDENCIES :=

GYP_GENERATED_OUTPUTS :=

# Make sure our deps and generated files are built first.
LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)

LOCAL_CPP_EXTENSION := .cc
LOCAL_GENERATED_SOURCES :=

GYP_COPIED_SOURCE_ORIGIN_DIRS :=

LOCAL_SRC_FILES := \
	sql/connection.cc \
	sql/error_delegate_util.cc \
	sql/meta_table.cc \
29
	sql/recovery.cc \
30 31 32 33 34
	sql/statement.cc \
	sql/transaction.cc


# Flags passed to both C and C++ files.
35
MY_CFLAGS_Debug := \
36 37
	-fstack-protector \
	--param=ssp-buffer-size=4 \
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
	-Werror \
	-fno-exceptions \
	-fno-strict-aliasing \
	-Wall \
	-Wno-unused-parameter \
	-Wno-missing-field-initializers \
	-fvisibility=hidden \
	-pipe \
	-fPIC \
	-fno-tree-sra \
	-fuse-ld=gold \
	-Wno-psabi \
	-ffunction-sections \
	-funwind-tables \
	-g \
	-fstack-protector \
	-fno-short-enums \
	-finline-limit=64 \
	-Wa,--noexecstack \
57 58 59 60
	-U_FORTIFY_SOURCE \
	-Wno-extra \
	-Wno-ignored-qualifiers \
	-Wno-type-limits \
61
	-Wno-unused-but-set-variable \
62 63 64 65
	-Os \
	-g \
	-fomit-frame-pointer \
	-fdata-sections \
66 67
	-ffunction-sections \
	-funwind-tables
68

69
MY_DEFS_Debug := \
70
	'-DV8_DEPRECATION_WARNINGS' \
71 72 73 74 75 76
	'-D_FILE_OFFSET_BITS=64' \
	'-DNO_TCMALLOC' \
	'-DDISABLE_NACL' \
	'-DCHROMIUM_BUILD' \
	'-DUSE_LIBJPEG_TURBO=1' \
	'-DUSE_PROPRIETARY_CODECS' \
77
	'-DENABLE_CONFIGURATION_POLICY' \
78 79
	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
80 81
	'-DUSE_OPENSSL=1' \
	'-DENABLE_EGLIMAGE=1' \
82
	'-DCLD_VERSION=1' \
83
	'-DENABLE_PRINTING=1' \
84
	'-DENABLE_MANAGED_USERS=1' \
85 86 87 88 89 90 91
	'-DSQL_IMPLEMENTATION' \
	'-D__STDC_CONSTANT_MACROS' \
	'-D__STDC_FORMAT_MACROS' \
	'-DANDROID' \
	'-D__GNU_SOURCE=1' \
	'-DUSE_STLPORT=1' \
	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
92
	'-DCHROME_BUILD_ID=""' \
93 94 95 96 97 98
	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
	'-D_DEBUG'


# Include paths placed before CFLAGS/CPPFLAGS
99
LOCAL_C_INCLUDES_Debug := \
100
	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
101 102 103
	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
	$(LOCAL_PATH) \
104
	$(LOCAL_PATH)/third_party/sqlite \
105 106 107
	$(PWD)/frameworks/wilhelm/include \
	$(PWD)/bionic \
	$(PWD)/external/stlport/stlport
108 109 110


# Flags passed to only C++ (and not C) files.
111
LOCAL_CPPFLAGS_Debug := \
112 113 114 115 116
	-fno-rtti \
	-fno-threadsafe-statics \
	-fvisibility-inlines-hidden \
	-Wsign-compare \
	-Wno-abi \
117 118
	-Wno-non-virtual-dtor \
	-Wno-sign-promo
119

120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147

# Flags passed to both C and C++ files.
MY_CFLAGS_Release := \
	-fstack-protector \
	--param=ssp-buffer-size=4 \
	-Werror \
	-fno-exceptions \
	-fno-strict-aliasing \
	-Wall \
	-Wno-unused-parameter \
	-Wno-missing-field-initializers \
	-fvisibility=hidden \
	-pipe \
	-fPIC \
	-fno-tree-sra \
	-fuse-ld=gold \
	-Wno-psabi \
	-ffunction-sections \
	-funwind-tables \
	-g \
	-fstack-protector \
	-fno-short-enums \
	-finline-limit=64 \
	-Wa,--noexecstack \
	-U_FORTIFY_SOURCE \
	-Wno-extra \
	-Wno-ignored-qualifiers \
	-Wno-type-limits \
148
	-Wno-unused-but-set-variable \
149 150 151 152
	-Os \
	-fno-ident \
	-fdata-sections \
	-ffunction-sections \
153 154
	-fomit-frame-pointer \
	-funwind-tables
155 156

MY_DEFS_Release := \
157
	'-DV8_DEPRECATION_WARNINGS' \
158 159 160 161 162 163
	'-D_FILE_OFFSET_BITS=64' \
	'-DNO_TCMALLOC' \
	'-DDISABLE_NACL' \
	'-DCHROMIUM_BUILD' \
	'-DUSE_LIBJPEG_TURBO=1' \
	'-DUSE_PROPRIETARY_CODECS' \
164
	'-DENABLE_CONFIGURATION_POLICY' \
165 166
	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
167 168
	'-DUSE_OPENSSL=1' \
	'-DENABLE_EGLIMAGE=1' \
169
	'-DCLD_VERSION=1' \
170
	'-DENABLE_PRINTING=1' \
171
	'-DENABLE_MANAGED_USERS=1' \
172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188
	'-DSQL_IMPLEMENTATION' \
	'-D__STDC_CONSTANT_MACROS' \
	'-D__STDC_FORMAT_MACROS' \
	'-DANDROID' \
	'-D__GNU_SOURCE=1' \
	'-DUSE_STLPORT=1' \
	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
	'-DCHROME_BUILD_ID=""' \
	'-DNDEBUG' \
	'-DNVALGRIND' \
	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
	'-D_FORTIFY_SOURCE=2'


# Include paths placed before CFLAGS/CPPFLAGS
LOCAL_C_INCLUDES_Release := \
	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
189 190 191
	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
	$(LOCAL_PATH) \
192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211
	$(LOCAL_PATH)/third_party/sqlite \
	$(PWD)/frameworks/wilhelm/include \
	$(PWD)/bionic \
	$(PWD)/external/stlport/stlport


# Flags passed to only C++ (and not C) files.
LOCAL_CPPFLAGS_Release := \
	-fno-rtti \
	-fno-threadsafe-statics \
	-fvisibility-inlines-hidden \
	-Wsign-compare \
	-Wno-abi \
	-Wno-non-virtual-dtor \
	-Wno-sign-promo


LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
212 213
### Rules for final target.

214
LOCAL_LDFLAGS_Debug := \
215 216
	-Wl,-z,now \
	-Wl,-z,relro \
217 218 219 220 221 222 223 224 225
	-Wl,-z,noexecstack \
	-fPIC \
	-Wl,-z,relro \
	-Wl,-z,now \
	-fuse-ld=gold \
	-nostdlib \
	-Wl,--no-undefined \
	-Wl,--exclude-libs=ALL \
	-Wl,--icf=safe \
226
	-Wl,--fatal-warnings \
227
	-Wl,--gc-sections \
228
	-Wl,--warn-shared-textrel \
229
	-Wl,-O1 \
230
	-Wl,--as-needed
231 232


233 234 235 236 237 238 239 240 241 242 243 244 245 246
LOCAL_LDFLAGS_Release := \
	-Wl,-z,now \
	-Wl,-z,relro \
	-Wl,-z,noexecstack \
	-fPIC \
	-Wl,-z,relro \
	-Wl,-z,now \
	-fuse-ld=gold \
	-nostdlib \
	-Wl,--no-undefined \
	-Wl,--exclude-libs=ALL \
	-Wl,--icf=safe \
	-Wl,-O1 \
	-Wl,--as-needed \
247 248 249
	-Wl,--gc-sections \
	-Wl,--fatal-warnings \
	-Wl,--warn-shared-textrel
250 251 252 253


LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))

254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271
LOCAL_STATIC_LIBRARIES :=

# Enable grouping to fix circular references
LOCAL_GROUP_STATIC_LIBRARIES := true

LOCAL_SHARED_LIBRARIES := \
	libstlport \
	libdl

# Add target alias to "gyp_all_modules" target.
.PHONY: gyp_all_modules
gyp_all_modules: sql_sql_gyp

# Alias gyp target name.
.PHONY: sql
sql: sql_sql_gyp

include $(BUILD_STATIC_LIBRARY)