webkit_storage_common.target.darwin-x86.mk 6.54 KB
Newer Older
1 2 3 4 5
# This file is generated by gyp; do not edit.

include $(CLEAR_VARS)

LOCAL_MODULE_CLASS := STATIC_LIBRARIES
6
LOCAL_MODULE := webkit_webkit_storage_common_gyp
7 8 9 10 11 12
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.
13
GYP_TARGET_DEPENDENCIES :=
14 15 16 17 18 19 20 21 22 23 24 25

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 := \
26 27 28 29 30
	webkit/common/appcache/appcache_interfaces.cc \
	webkit/common/blob/blob_data.cc \
	webkit/common/blob/scoped_file.cc \
	webkit/common/blob/shareable_file_reference.cc \
	webkit/common/database/database_connections.cc \
31 32
	webkit/common/database/database_identifier.cc \
	webkit/common/fileapi/directory_entry.cc \
33 34
	webkit/common/fileapi/file_system_util.cc \
	webkit/common/quota/quota_status_code.cc
35 36 37


# Flags passed to both C and C++ files.
38
MY_CFLAGS_Debug := \
39
	--param=ssp-buffer-size=4 \
40 41 42 43 44 45 46
	-fno-exceptions \
	-fno-strict-aliasing \
	-Wno-unused-parameter \
	-Wno-missing-field-initializers \
	-fvisibility=hidden \
	-pipe \
	-fPIC \
47
	-Wno-format \
48 49 50 51 52
	-m32 \
	-mmmx \
	-march=pentium4 \
	-msse2 \
	-mfpmath=sse \
53
	-fuse-ld=gold \
54 55 56 57 58 59
	-ffunction-sections \
	-funwind-tables \
	-g \
	-fno-short-enums \
	-finline-limit=64 \
	-Wa,--noexecstack \
60 61 62 63 64 65 66 67 68
	-U_FORTIFY_SOURCE \
	-Wno-extra \
	-Wno-ignored-qualifiers \
	-Wno-type-limits \
	-Wno-address \
	-Wno-format-security \
	-Wno-return-type \
	-Wno-sequence-point \
	-fno-stack-protector \
69 70 71 72 73 74
	-Os \
	-g \
	-fomit-frame-pointer \
	-fdata-sections \
	-ffunction-sections

75
MY_DEFS_Debug := \
76
	'-DANGLE_DX11' \
77 78
	'-D_FILE_OFFSET_BITS=64' \
	'-DNO_TCMALLOC' \
79 80
	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
81 82 83 84
	'-DDISABLE_NACL' \
	'-DCHROMIUM_BUILD' \
	'-DUSE_LIBJPEG_TURBO=1' \
	'-DUSE_PROPRIETARY_CODECS' \
85
	'-DENABLE_CONFIGURATION_POLICY' \
86 87
	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
	'-DTRACING_IS_OFFICIAL_BUILD=1' \
88 89 90
	'-DENABLE_GPU=1' \
	'-DUSE_OPENSSL=1' \
	'-DENABLE_EGLIMAGE=1' \
91
	'-DENABLE_PRINTING=1' \
92
	'-DWEBKIT_STORAGE_COMMON_IMPLEMENTATION' \
93 94 95 96
	'-DANDROID' \
	'-D__GNU_SOURCE=1' \
	'-DUSE_STLPORT=1' \
	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
97
	'-DCHROME_BUILD_ID=""' \
98 99 100 101 102 103
	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
	'-D_DEBUG'


# Include paths placed before CFLAGS/CPPFLAGS
104
LOCAL_C_INCLUDES_Debug := \
105
	$(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \
106
	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
107 108
	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
109 110 111 112 113 114 115 116 117 118 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 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170
	$(LOCAL_PATH) \
	$(PWD)/frameworks/wilhelm/include \
	$(PWD)/bionic \
	$(PWD)/external/stlport/stlport


# Flags passed to only C++ (and not C) files.
LOCAL_CPPFLAGS_Debug := \
	-fno-rtti \
	-fno-threadsafe-statics \
	-fvisibility-inlines-hidden \
	-Wno-deprecated \
	-Wno-error=c++0x-compat \
	-Wno-non-virtual-dtor \
	-Wno-sign-promo \
	-Wno-non-virtual-dtor


# Flags passed to both C and C++ files.
MY_CFLAGS_Release := \
	--param=ssp-buffer-size=4 \
	-fno-exceptions \
	-fno-strict-aliasing \
	-Wno-unused-parameter \
	-Wno-missing-field-initializers \
	-fvisibility=hidden \
	-pipe \
	-fPIC \
	-Wno-format \
	-m32 \
	-mmmx \
	-march=pentium4 \
	-msse2 \
	-mfpmath=sse \
	-fuse-ld=gold \
	-ffunction-sections \
	-funwind-tables \
	-g \
	-fno-short-enums \
	-finline-limit=64 \
	-Wa,--noexecstack \
	-U_FORTIFY_SOURCE \
	-Wno-extra \
	-Wno-ignored-qualifiers \
	-Wno-type-limits \
	-Wno-address \
	-Wno-format-security \
	-Wno-return-type \
	-Wno-sequence-point \
	-fno-stack-protector \
	-Os \
	-fno-ident \
	-fdata-sections \
	-ffunction-sections \
	-fomit-frame-pointer \
	-fno-unwind-tables \
	-fno-asynchronous-unwind-tables

MY_DEFS_Release := \
	'-DANGLE_DX11' \
	'-D_FILE_OFFSET_BITS=64' \
	'-DNO_TCMALLOC' \
171 172
	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
173 174 175 176
	'-DDISABLE_NACL' \
	'-DCHROMIUM_BUILD' \
	'-DUSE_LIBJPEG_TURBO=1' \
	'-DUSE_PROPRIETARY_CODECS' \
177
	'-DENABLE_CONFIGURATION_POLICY' \
178 179
	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
	'-DTRACING_IS_OFFICIAL_BUILD=1' \
180 181 182
	'-DENABLE_GPU=1' \
	'-DUSE_OPENSSL=1' \
	'-DENABLE_EGLIMAGE=1' \
183
	'-DENABLE_PRINTING=1' \
184 185 186 187 188 189 190 191 192 193 194 195 196
	'-DWEBKIT_STORAGE_COMMON_IMPLEMENTATION' \
	'-DANDROID' \
	'-D__GNU_SOURCE=1' \
	'-DUSE_STLPORT=1' \
	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
	'-DCHROME_BUILD_ID=""' \
	'-DNDEBUG' \
	'-DNVALGRIND' \
	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'


# Include paths placed before CFLAGS/CPPFLAGS
LOCAL_C_INCLUDES_Release := \
197
	$(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \
198
	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
199 200
	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
201
	$(LOCAL_PATH) \
202 203 204
	$(PWD)/frameworks/wilhelm/include \
	$(PWD)/bionic \
	$(PWD)/external/stlport/stlport
205 206 207


# Flags passed to only C++ (and not C) files.
208
LOCAL_CPPFLAGS_Release := \
209 210 211
	-fno-rtti \
	-fno-threadsafe-statics \
	-fvisibility-inlines-hidden \
212
	-Wno-deprecated \
213 214 215 216
	-Wno-error=c++0x-compat \
	-Wno-non-virtual-dtor \
	-Wno-sign-promo \
	-Wno-non-virtual-dtor
217

218 219 220 221

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))
222 223
### Rules for final target.

224
LOCAL_LDFLAGS_Debug := \
225 226
	-Wl,-z,now \
	-Wl,-z,relro \
227 228
	-Wl,-z,noexecstack \
	-fPIC \
229
	-m32 \
230
	-fuse-ld=gold \
231 232 233
	-nostdlib \
	-Wl,--no-undefined \
	-Wl,--exclude-libs=ALL \
234
	-Wl,--fatal-warnings \
235
	-Wl,--gc-sections \
236
	-Wl,--warn-shared-textrel \
237
	-Wl,-O1 \
238
	-Wl,--as-needed
239 240


241 242 243 244 245 246 247 248 249 250 251 252
LOCAL_LDFLAGS_Release := \
	-Wl,-z,now \
	-Wl,-z,relro \
	-Wl,-z,noexecstack \
	-fPIC \
	-m32 \
	-fuse-ld=gold \
	-nostdlib \
	-Wl,--no-undefined \
	-Wl,--exclude-libs=ALL \
	-Wl,-O1 \
	-Wl,--as-needed \
253 254 255
	-Wl,--gc-sections \
	-Wl,--fatal-warnings \
	-Wl,--warn-shared-textrel
256 257 258 259 260


LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))

LOCAL_STATIC_LIBRARIES :=
261 262 263 264 265 266 267 268 269 270

# 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
271
gyp_all_modules: webkit_webkit_storage_common_gyp
272 273

# Alias gyp target name.
274 275
.PHONY: webkit_storage_common
webkit_storage_common: webkit_webkit_storage_common_gyp
276 277

include $(BUILD_STATIC_LIBRARY)