Home | History | Annotate | Download | only in components
      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 := components_webdata_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 	components/webdata/common/web_database.cc \
     27 	components/webdata/common/web_database_service.cc \
     28 	components/webdata/common/web_database_table.cc \
     29 	components/webdata/common/web_data_request_manager.cc \
     30 	components/webdata/common/web_data_service_backend.cc \
     31 	components/webdata/common/web_data_service_base.cc \
     32 	components/webdata/common/webdata_constants.cc
     33 
     34 
     35 # Flags passed to both C and C++ files.
     36 MY_CFLAGS_Debug := \
     37 	-fstack-protector \
     38 	--param=ssp-buffer-size=4 \
     39 	-Werror \
     40 	-fno-exceptions \
     41 	-fno-strict-aliasing \
     42 	-Wall \
     43 	-Wno-unused-parameter \
     44 	-Wno-missing-field-initializers \
     45 	-fvisibility=hidden \
     46 	-pipe \
     47 	-fPIC \
     48 	-fno-tree-sra \
     49 	-fuse-ld=gold \
     50 	-Wno-psabi \
     51 	-ffunction-sections \
     52 	-funwind-tables \
     53 	-g \
     54 	-fstack-protector \
     55 	-fno-short-enums \
     56 	-finline-limit=64 \
     57 	-Wa,--noexecstack \
     58 	-U_FORTIFY_SOURCE \
     59 	-Wno-extra \
     60 	-Wno-ignored-qualifiers \
     61 	-Wno-type-limits \
     62 	-Os \
     63 	-g \
     64 	-fomit-frame-pointer \
     65 	-fdata-sections \
     66 	-ffunction-sections
     67 
     68 MY_DEFS_Debug := \
     69 	'-DV8_DEPRECATION_WARNINGS' \
     70 	'-D_FILE_OFFSET_BITS=64' \
     71 	'-DNO_TCMALLOC' \
     72 	'-DDISABLE_NACL' \
     73 	'-DCHROMIUM_BUILD' \
     74 	'-DUSE_LIBJPEG_TURBO=1' \
     75 	'-DUSE_PROPRIETARY_CODECS' \
     76 	'-DENABLE_CONFIGURATION_POLICY' \
     77 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     78 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     79 	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
     80 	'-DUSE_OPENSSL=1' \
     81 	'-DENABLE_EGLIMAGE=1' \
     82 	'-DCLD_VERSION=1' \
     83 	'-DENABLE_PRINTING=1' \
     84 	'-DENABLE_MANAGED_USERS=1' \
     85 	'-DWEBDATA_IMPLEMENTATION' \
     86 	'-D__STDC_CONSTANT_MACROS' \
     87 	'-D__STDC_FORMAT_MACROS' \
     88 	'-DANDROID' \
     89 	'-D__GNU_SOURCE=1' \
     90 	'-DUSE_STLPORT=1' \
     91 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
     92 	'-DCHROME_BUILD_ID=""' \
     93 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
     94 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
     95 	'-D_DEBUG'
     96 
     97 
     98 # Include paths placed before CFLAGS/CPPFLAGS
     99 LOCAL_C_INCLUDES_Debug := \
    100 	$(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \
    101 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    102 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    103 	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
    104 	$(LOCAL_PATH) \
    105 	$(LOCAL_PATH)/skia/config \
    106 	$(LOCAL_PATH)/third_party/khronos \
    107 	$(LOCAL_PATH)/gpu \
    108 	$(LOCAL_PATH)/third_party/WebKit/Source \
    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 	-Wsign-compare \
    120 	-Wno-abi \
    121 	-Wno-error=c++0x-compat \
    122 	-Wno-non-virtual-dtor \
    123 	-Wno-sign-promo
    124 
    125 
    126 # Flags passed to both C and C++ files.
    127 MY_CFLAGS_Release := \
    128 	-fstack-protector \
    129 	--param=ssp-buffer-size=4 \
    130 	-Werror \
    131 	-fno-exceptions \
    132 	-fno-strict-aliasing \
    133 	-Wall \
    134 	-Wno-unused-parameter \
    135 	-Wno-missing-field-initializers \
    136 	-fvisibility=hidden \
    137 	-pipe \
    138 	-fPIC \
    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 	-Os \
    154 	-fno-ident \
    155 	-fdata-sections \
    156 	-ffunction-sections \
    157 	-fomit-frame-pointer
    158 
    159 MY_DEFS_Release := \
    160 	'-DV8_DEPRECATION_WARNINGS' \
    161 	'-D_FILE_OFFSET_BITS=64' \
    162 	'-DNO_TCMALLOC' \
    163 	'-DDISABLE_NACL' \
    164 	'-DCHROMIUM_BUILD' \
    165 	'-DUSE_LIBJPEG_TURBO=1' \
    166 	'-DUSE_PROPRIETARY_CODECS' \
    167 	'-DENABLE_CONFIGURATION_POLICY' \
    168 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    169 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    170 	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
    171 	'-DUSE_OPENSSL=1' \
    172 	'-DENABLE_EGLIMAGE=1' \
    173 	'-DCLD_VERSION=1' \
    174 	'-DENABLE_PRINTING=1' \
    175 	'-DENABLE_MANAGED_USERS=1' \
    176 	'-DWEBDATA_IMPLEMENTATION' \
    177 	'-D__STDC_CONSTANT_MACROS' \
    178 	'-D__STDC_FORMAT_MACROS' \
    179 	'-DANDROID' \
    180 	'-D__GNU_SOURCE=1' \
    181 	'-DUSE_STLPORT=1' \
    182 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    183 	'-DCHROME_BUILD_ID=""' \
    184 	'-DNDEBUG' \
    185 	'-DNVALGRIND' \
    186 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
    187 	'-D_FORTIFY_SOURCE=2'
    188 
    189 
    190 # Include paths placed before CFLAGS/CPPFLAGS
    191 LOCAL_C_INCLUDES_Release := \
    192 	$(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \
    193 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    194 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    195 	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
    196 	$(LOCAL_PATH) \
    197 	$(LOCAL_PATH)/skia/config \
    198 	$(LOCAL_PATH)/third_party/khronos \
    199 	$(LOCAL_PATH)/gpu \
    200 	$(LOCAL_PATH)/third_party/WebKit/Source \
    201 	$(PWD)/frameworks/wilhelm/include \
    202 	$(PWD)/bionic \
    203 	$(PWD)/external/stlport/stlport
    204 
    205 
    206 # Flags passed to only C++ (and not C) files.
    207 LOCAL_CPPFLAGS_Release := \
    208 	-fno-rtti \
    209 	-fno-threadsafe-statics \
    210 	-fvisibility-inlines-hidden \
    211 	-Wsign-compare \
    212 	-Wno-abi \
    213 	-Wno-error=c++0x-compat \
    214 	-Wno-non-virtual-dtor \
    215 	-Wno-sign-promo
    216 
    217 
    218 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    219 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    220 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    221 ### Rules for final target.
    222 
    223 LOCAL_LDFLAGS_Debug := \
    224 	-Wl,-z,now \
    225 	-Wl,-z,relro \
    226 	-Wl,-z,noexecstack \
    227 	-fPIC \
    228 	-Wl,-z,relro \
    229 	-Wl,-z,now \
    230 	-fuse-ld=gold \
    231 	-nostdlib \
    232 	-Wl,--no-undefined \
    233 	-Wl,--exclude-libs=ALL \
    234 	-Wl,--icf=safe \
    235 	-Wl,--fatal-warnings \
    236 	-Wl,--gc-sections \
    237 	-Wl,--warn-shared-textrel \
    238 	-Wl,-O1 \
    239 	-Wl,--as-needed
    240 
    241 
    242 LOCAL_LDFLAGS_Release := \
    243 	-Wl,-z,now \
    244 	-Wl,-z,relro \
    245 	-Wl,-z,noexecstack \
    246 	-fPIC \
    247 	-Wl,-z,relro \
    248 	-Wl,-z,now \
    249 	-fuse-ld=gold \
    250 	-nostdlib \
    251 	-Wl,--no-undefined \
    252 	-Wl,--exclude-libs=ALL \
    253 	-Wl,--icf=safe \
    254 	-Wl,-O1 \
    255 	-Wl,--as-needed \
    256 	-Wl,--gc-sections \
    257 	-Wl,--fatal-warnings \
    258 	-Wl,--warn-shared-textrel
    259 
    260 
    261 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
    262 
    263 LOCAL_STATIC_LIBRARIES :=
    264 
    265 # Enable grouping to fix circular references
    266 LOCAL_GROUP_STATIC_LIBRARIES := true
    267 
    268 LOCAL_SHARED_LIBRARIES := \
    269 	libstlport \
    270 	libdl
    271 
    272 # Add target alias to "gyp_all_modules" target.
    273 .PHONY: gyp_all_modules
    274 gyp_all_modules: components_webdata_common_gyp
    275 
    276 # Alias gyp target name.
    277 .PHONY: webdata_common
    278 webdata_common: components_webdata_common_gyp
    279 
    280 include $(BUILD_STATIC_LIBRARY)
    281