Home | History | Annotate | Download | only in webkit
      1 # This file is generated by gyp; do not edit.
      2 
      3 include $(CLEAR_VARS)
      4 
      5 LOCAL_MODULE_CLASS := STATIC_LIBRARIES
      6 LOCAL_MODULE := webkit_webkit_storage_common_gyp
      7 LOCAL_MODULE_SUFFIX := .a
      8 LOCAL_MODULE_TAGS := optional
      9 gyp_intermediate_dir := $(call local-intermediates-dir)
     10 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared)
     11 
     12 # Make sure our deps are built first.
     13 GYP_TARGET_DEPENDENCIES :=
     14 
     15 GYP_GENERATED_OUTPUTS :=
     16 
     17 # Make sure our deps and generated files are built first.
     18 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
     19 
     20 LOCAL_CPP_EXTENSION := .cc
     21 LOCAL_GENERATED_SOURCES :=
     22 
     23 GYP_COPIED_SOURCE_ORIGIN_DIRS :=
     24 
     25 LOCAL_SRC_FILES := \
     26 	webkit/common/appcache/appcache_interfaces.cc \
     27 	webkit/common/blob/blob_data.cc \
     28 	webkit/common/blob/scoped_file.cc \
     29 	webkit/common/blob/shareable_file_reference.cc \
     30 	webkit/common/database/database_connections.cc \
     31 	webkit/common/database/database_identifier.cc \
     32 	webkit/common/fileapi/directory_entry.cc \
     33 	webkit/common/fileapi/file_system_util.cc \
     34 	webkit/common/quota/quota_status_code.cc
     35 
     36 
     37 # Flags passed to both C and C++ files.
     38 MY_CFLAGS_Debug := \
     39 	-fstack-protector \
     40 	--param=ssp-buffer-size=4 \
     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 	-fno-tree-sra \
     50 	-fuse-ld=gold \
     51 	-Wno-psabi \
     52 	-ffunction-sections \
     53 	-funwind-tables \
     54 	-g \
     55 	-fstack-protector \
     56 	-fno-short-enums \
     57 	-finline-limit=64 \
     58 	-Wa,--noexecstack \
     59 	-U_FORTIFY_SOURCE \
     60 	-Wno-extra \
     61 	-Wno-ignored-qualifiers \
     62 	-Wno-type-limits \
     63 	-Wno-address \
     64 	-Wno-format-security \
     65 	-Wno-return-type \
     66 	-Wno-sequence-point \
     67 	-Os \
     68 	-g \
     69 	-fomit-frame-pointer \
     70 	-fdata-sections \
     71 	-ffunction-sections
     72 
     73 MY_DEFS_Debug := \
     74 	'-DANGLE_DX11' \
     75 	'-D_FILE_OFFSET_BITS=64' \
     76 	'-DNO_TCMALLOC' \
     77 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     78 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     79 	'-DDISABLE_NACL' \
     80 	'-DCHROMIUM_BUILD' \
     81 	'-DUSE_LIBJPEG_TURBO=1' \
     82 	'-DUSE_PROPRIETARY_CODECS' \
     83 	'-DENABLE_CONFIGURATION_POLICY' \
     84 	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
     85 	'-DTRACING_IS_OFFICIAL_BUILD=1' \
     86 	'-DENABLE_GPU=1' \
     87 	'-DUSE_OPENSSL=1' \
     88 	'-DENABLE_EGLIMAGE=1' \
     89 	'-DENABLE_PRINTING=1' \
     90 	'-DWEBKIT_STORAGE_COMMON_IMPLEMENTATION' \
     91 	'-DPOSIX_AVOID_MMAP' \
     92 	'-DANDROID' \
     93 	'-D__GNU_SOURCE=1' \
     94 	'-DUSE_STLPORT=1' \
     95 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
     96 	'-DCHROME_BUILD_ID=""' \
     97 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
     98 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
     99 	'-D_DEBUG'
    100 
    101 
    102 # Include paths placed before CFLAGS/CPPFLAGS
    103 LOCAL_C_INCLUDES_Debug := \
    104 	$(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \
    105 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    106 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    107 	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
    108 	$(LOCAL_PATH) \
    109 	$(PWD)/frameworks/wilhelm/include \
    110 	$(PWD)/bionic \
    111 	$(PWD)/external/stlport/stlport
    112 
    113 
    114 # Flags passed to only C++ (and not C) files.
    115 LOCAL_CPPFLAGS_Debug := \
    116 	-fno-rtti \
    117 	-fno-threadsafe-statics \
    118 	-fvisibility-inlines-hidden \
    119 	-Wno-deprecated \
    120 	-Wno-abi \
    121 	-Wno-error=c++0x-compat \
    122 	-Wno-non-virtual-dtor \
    123 	-Wno-sign-promo \
    124 	-Wno-non-virtual-dtor
    125 
    126 
    127 # Flags passed to both C and C++ files.
    128 MY_CFLAGS_Release := \
    129 	-fstack-protector \
    130 	--param=ssp-buffer-size=4 \
    131 	-fno-exceptions \
    132 	-fno-strict-aliasing \
    133 	-Wno-unused-parameter \
    134 	-Wno-missing-field-initializers \
    135 	-fvisibility=hidden \
    136 	-pipe \
    137 	-fPIC \
    138 	-Wno-format \
    139 	-fno-tree-sra \
    140 	-fuse-ld=gold \
    141 	-Wno-psabi \
    142 	-ffunction-sections \
    143 	-funwind-tables \
    144 	-g \
    145 	-fstack-protector \
    146 	-fno-short-enums \
    147 	-finline-limit=64 \
    148 	-Wa,--noexecstack \
    149 	-U_FORTIFY_SOURCE \
    150 	-Wno-extra \
    151 	-Wno-ignored-qualifiers \
    152 	-Wno-type-limits \
    153 	-Wno-address \
    154 	-Wno-format-security \
    155 	-Wno-return-type \
    156 	-Wno-sequence-point \
    157 	-Os \
    158 	-fno-ident \
    159 	-fdata-sections \
    160 	-ffunction-sections \
    161 	-fomit-frame-pointer
    162 
    163 MY_DEFS_Release := \
    164 	'-DANGLE_DX11' \
    165 	'-D_FILE_OFFSET_BITS=64' \
    166 	'-DNO_TCMALLOC' \
    167 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    168 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    169 	'-DDISABLE_NACL' \
    170 	'-DCHROMIUM_BUILD' \
    171 	'-DUSE_LIBJPEG_TURBO=1' \
    172 	'-DUSE_PROPRIETARY_CODECS' \
    173 	'-DENABLE_CONFIGURATION_POLICY' \
    174 	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
    175 	'-DTRACING_IS_OFFICIAL_BUILD=1' \
    176 	'-DENABLE_GPU=1' \
    177 	'-DUSE_OPENSSL=1' \
    178 	'-DENABLE_EGLIMAGE=1' \
    179 	'-DENABLE_PRINTING=1' \
    180 	'-DWEBKIT_STORAGE_COMMON_IMPLEMENTATION' \
    181 	'-DPOSIX_AVOID_MMAP' \
    182 	'-DANDROID' \
    183 	'-D__GNU_SOURCE=1' \
    184 	'-DUSE_STLPORT=1' \
    185 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    186 	'-DCHROME_BUILD_ID=""' \
    187 	'-DNDEBUG' \
    188 	'-DNVALGRIND' \
    189 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
    190 
    191 
    192 # Include paths placed before CFLAGS/CPPFLAGS
    193 LOCAL_C_INCLUDES_Release := \
    194 	$(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \
    195 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    196 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    197 	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
    198 	$(LOCAL_PATH) \
    199 	$(PWD)/frameworks/wilhelm/include \
    200 	$(PWD)/bionic \
    201 	$(PWD)/external/stlport/stlport
    202 
    203 
    204 # Flags passed to only C++ (and not C) files.
    205 LOCAL_CPPFLAGS_Release := \
    206 	-fno-rtti \
    207 	-fno-threadsafe-statics \
    208 	-fvisibility-inlines-hidden \
    209 	-Wno-deprecated \
    210 	-Wno-abi \
    211 	-Wno-error=c++0x-compat \
    212 	-Wno-non-virtual-dtor \
    213 	-Wno-sign-promo \
    214 	-Wno-non-virtual-dtor
    215 
    216 
    217 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    218 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    219 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    220 ### Rules for final target.
    221 
    222 LOCAL_LDFLAGS_Debug := \
    223 	-Wl,-z,now \
    224 	-Wl,-z,relro \
    225 	-Wl,-z,noexecstack \
    226 	-fPIC \
    227 	-Wl,-z,relro \
    228 	-Wl,-z,now \
    229 	-fuse-ld=gold \
    230 	-nostdlib \
    231 	-Wl,--no-undefined \
    232 	-Wl,--exclude-libs=ALL \
    233 	-Wl,--icf=safe \
    234 	-Wl,--fatal-warnings \
    235 	-Wl,--gc-sections \
    236 	-Wl,--warn-shared-textrel \
    237 	-Wl,-O1 \
    238 	-Wl,--as-needed
    239 
    240 
    241 LOCAL_LDFLAGS_Release := \
    242 	-Wl,-z,now \
    243 	-Wl,-z,relro \
    244 	-Wl,-z,noexecstack \
    245 	-fPIC \
    246 	-Wl,-z,relro \
    247 	-Wl,-z,now \
    248 	-fuse-ld=gold \
    249 	-nostdlib \
    250 	-Wl,--no-undefined \
    251 	-Wl,--exclude-libs=ALL \
    252 	-Wl,--icf=safe \
    253 	-Wl,-O1 \
    254 	-Wl,--as-needed \
    255 	-Wl,--gc-sections \
    256 	-Wl,--fatal-warnings \
    257 	-Wl,--warn-shared-textrel
    258 
    259 
    260 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
    261 
    262 LOCAL_STATIC_LIBRARIES :=
    263 
    264 # Enable grouping to fix circular references
    265 LOCAL_GROUP_STATIC_LIBRARIES := true
    266 
    267 LOCAL_SHARED_LIBRARIES := \
    268 	libstlport \
    269 	libdl
    270 
    271 # Add target alias to "gyp_all_modules" target.
    272 .PHONY: gyp_all_modules
    273 gyp_all_modules: webkit_webkit_storage_common_gyp
    274 
    275 # Alias gyp target name.
    276 .PHONY: webkit_storage_common
    277 webkit_storage_common: webkit_webkit_storage_common_gyp
    278 
    279 include $(BUILD_STATIC_LIBRARY)
    280