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 	'-DANGLE_DX11' \
     70 	'-D_FILE_OFFSET_BITS=64' \
     71 	'-DNO_TCMALLOC' \
     72 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     73 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     74 	'-DDISABLE_NACL' \
     75 	'-DCHROMIUM_BUILD' \
     76 	'-DUSE_LIBJPEG_TURBO=1' \
     77 	'-DUSE_PROPRIETARY_CODECS' \
     78 	'-DENABLE_CONFIGURATION_POLICY' \
     79 	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
     80 	'-DTRACING_IS_OFFICIAL_BUILD=1' \
     81 	'-DENABLE_GPU=1' \
     82 	'-DUSE_OPENSSL=1' \
     83 	'-DENABLE_EGLIMAGE=1' \
     84 	'-DENABLE_PRINTING=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/icuuc/target \
    101 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    102 	$(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \
    103 	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
    104 	$(LOCAL_PATH) \
    105 	$(LOCAL_PATH)/third_party/khronos \
    106 	$(LOCAL_PATH)/gpu \
    107 	$(PWD)/frameworks/wilhelm/include \
    108 	$(PWD)/bionic \
    109 	$(PWD)/external/stlport/stlport
    110 
    111 
    112 # Flags passed to only C++ (and not C) files.
    113 LOCAL_CPPFLAGS_Debug := \
    114 	-fno-rtti \
    115 	-fno-threadsafe-statics \
    116 	-fvisibility-inlines-hidden \
    117 	-Wsign-compare \
    118 	-Wno-abi \
    119 	-Wno-error=c++0x-compat \
    120 	-Wno-non-virtual-dtor \
    121 	-Wno-sign-promo
    122 
    123 
    124 # Flags passed to both C and C++ files.
    125 MY_CFLAGS_Release := \
    126 	-fstack-protector \
    127 	--param=ssp-buffer-size=4 \
    128 	-Werror \
    129 	-fno-exceptions \
    130 	-fno-strict-aliasing \
    131 	-Wall \
    132 	-Wno-unused-parameter \
    133 	-Wno-missing-field-initializers \
    134 	-fvisibility=hidden \
    135 	-pipe \
    136 	-fPIC \
    137 	-fno-tree-sra \
    138 	-fuse-ld=gold \
    139 	-Wno-psabi \
    140 	-ffunction-sections \
    141 	-funwind-tables \
    142 	-g \
    143 	-fstack-protector \
    144 	-fno-short-enums \
    145 	-finline-limit=64 \
    146 	-Wa,--noexecstack \
    147 	-U_FORTIFY_SOURCE \
    148 	-Wno-extra \
    149 	-Wno-ignored-qualifiers \
    150 	-Wno-type-limits \
    151 	-Os \
    152 	-fno-ident \
    153 	-fdata-sections \
    154 	-ffunction-sections \
    155 	-fomit-frame-pointer
    156 
    157 MY_DEFS_Release := \
    158 	'-DANGLE_DX11' \
    159 	'-D_FILE_OFFSET_BITS=64' \
    160 	'-DNO_TCMALLOC' \
    161 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    162 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    163 	'-DDISABLE_NACL' \
    164 	'-DCHROMIUM_BUILD' \
    165 	'-DUSE_LIBJPEG_TURBO=1' \
    166 	'-DUSE_PROPRIETARY_CODECS' \
    167 	'-DENABLE_CONFIGURATION_POLICY' \
    168 	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
    169 	'-DTRACING_IS_OFFICIAL_BUILD=1' \
    170 	'-DENABLE_GPU=1' \
    171 	'-DUSE_OPENSSL=1' \
    172 	'-DENABLE_EGLIMAGE=1' \
    173 	'-DENABLE_PRINTING=1' \
    174 	'-DWEBDATA_IMPLEMENTATION' \
    175 	'-D__STDC_CONSTANT_MACROS' \
    176 	'-D__STDC_FORMAT_MACROS' \
    177 	'-DANDROID' \
    178 	'-D__GNU_SOURCE=1' \
    179 	'-DUSE_STLPORT=1' \
    180 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    181 	'-DCHROME_BUILD_ID=""' \
    182 	'-DNDEBUG' \
    183 	'-DNVALGRIND' \
    184 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
    185 	'-D_FORTIFY_SOURCE=2'
    186 
    187 
    188 # Include paths placed before CFLAGS/CPPFLAGS
    189 LOCAL_C_INCLUDES_Release := \
    190 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    191 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    192 	$(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \
    193 	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
    194 	$(LOCAL_PATH) \
    195 	$(LOCAL_PATH)/third_party/khronos \
    196 	$(LOCAL_PATH)/gpu \
    197 	$(PWD)/frameworks/wilhelm/include \
    198 	$(PWD)/bionic \
    199 	$(PWD)/external/stlport/stlport
    200 
    201 
    202 # Flags passed to only C++ (and not C) files.
    203 LOCAL_CPPFLAGS_Release := \
    204 	-fno-rtti \
    205 	-fno-threadsafe-statics \
    206 	-fvisibility-inlines-hidden \
    207 	-Wsign-compare \
    208 	-Wno-abi \
    209 	-Wno-error=c++0x-compat \
    210 	-Wno-non-virtual-dtor \
    211 	-Wno-sign-promo
    212 
    213 
    214 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    215 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    216 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    217 ### Rules for final target.
    218 
    219 LOCAL_LDFLAGS_Debug := \
    220 	-Wl,-z,now \
    221 	-Wl,-z,relro \
    222 	-Wl,-z,noexecstack \
    223 	-fPIC \
    224 	-Wl,-z,relro \
    225 	-Wl,-z,now \
    226 	-fuse-ld=gold \
    227 	-nostdlib \
    228 	-Wl,--no-undefined \
    229 	-Wl,--exclude-libs=ALL \
    230 	-Wl,--icf=safe \
    231 	-Wl,--fatal-warnings \
    232 	-Wl,--gc-sections \
    233 	-Wl,--warn-shared-textrel \
    234 	-Wl,-O1 \
    235 	-Wl,--as-needed
    236 
    237 
    238 LOCAL_LDFLAGS_Release := \
    239 	-Wl,-z,now \
    240 	-Wl,-z,relro \
    241 	-Wl,-z,noexecstack \
    242 	-fPIC \
    243 	-Wl,-z,relro \
    244 	-Wl,-z,now \
    245 	-fuse-ld=gold \
    246 	-nostdlib \
    247 	-Wl,--no-undefined \
    248 	-Wl,--exclude-libs=ALL \
    249 	-Wl,--icf=safe \
    250 	-Wl,-O1 \
    251 	-Wl,--as-needed \
    252 	-Wl,--gc-sections \
    253 	-Wl,--fatal-warnings \
    254 	-Wl,--warn-shared-textrel
    255 
    256 
    257 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
    258 
    259 LOCAL_STATIC_LIBRARIES :=
    260 
    261 # Enable grouping to fix circular references
    262 LOCAL_GROUP_STATIC_LIBRARIES := true
    263 
    264 LOCAL_SHARED_LIBRARIES := \
    265 	libstlport \
    266 	libdl
    267 
    268 # Add target alias to "gyp_all_modules" target.
    269 .PHONY: gyp_all_modules
    270 gyp_all_modules: components_webdata_common_gyp
    271 
    272 # Alias gyp target name.
    273 .PHONY: webdata_common
    274 webdata_common: components_webdata_common_gyp
    275 
    276 include $(BUILD_STATIC_LIBRARY)
    277