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_autofill_core_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 	$(call intermediates-dir-for,STATIC_LIBRARIES,ui_ui_gyp)/ui_ui_gyp.a \
     15 	$(call intermediates-dir-for,GYP,components_autofill_jni_headers_gyp)/autofill_jni_headers.stamp
     16 
     17 GYP_GENERATED_OUTPUTS :=
     18 
     19 # Make sure our deps and generated files are built first.
     20 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
     21 
     22 LOCAL_CPP_EXTENSION := .cc
     23 LOCAL_GENERATED_SOURCES :=
     24 
     25 GYP_COPIED_SOURCE_ORIGIN_DIRS :=
     26 
     27 LOCAL_SRC_FILES := \
     28 	components/autofill/core/browser/android/auxiliary_profile_loader_android.cc \
     29 	components/autofill/core/browser/android/auxiliary_profiles_android.cc \
     30 	components/autofill/core/browser/android/component_jni_registrar.cc \
     31 	components/autofill/core/browser/android/personal_data_manager_android.cc \
     32 	components/autofill/core/common/autofill_constants.cc \
     33 	components/autofill/core/common/autofill_pref_names.cc \
     34 	components/autofill/core/common/autofill_switches.cc \
     35 	components/autofill/core/common/form_data.cc \
     36 	components/autofill/core/common/form_data_predictions.cc \
     37 	components/autofill/core/common/form_field_data.cc \
     38 	components/autofill/core/common/form_field_data_predictions.cc \
     39 	components/autofill/core/common/password_autofill_util.cc \
     40 	components/autofill/core/common/password_form.cc \
     41 	components/autofill/core/common/password_form_fill_data.cc \
     42 	components/autofill/core/common/password_generation_util.cc \
     43 	components/autofill/core/common/web_element_descriptor.cc
     44 
     45 
     46 # Flags passed to both C and C++ files.
     47 MY_CFLAGS_Debug := \
     48 	--param=ssp-buffer-size=4 \
     49 	-Werror \
     50 	-fno-exceptions \
     51 	-fno-strict-aliasing \
     52 	-Wall \
     53 	-Wno-unused-parameter \
     54 	-Wno-missing-field-initializers \
     55 	-fvisibility=hidden \
     56 	-pipe \
     57 	-fPIC \
     58 	-m32 \
     59 	-mmmx \
     60 	-march=pentium4 \
     61 	-msse2 \
     62 	-mfpmath=sse \
     63 	-fuse-ld=gold \
     64 	-ffunction-sections \
     65 	-funwind-tables \
     66 	-g \
     67 	-fno-short-enums \
     68 	-finline-limit=64 \
     69 	-Wa,--noexecstack \
     70 	-U_FORTIFY_SOURCE \
     71 	-Wno-extra \
     72 	-Wno-ignored-qualifiers \
     73 	-Wno-type-limits \
     74 	-fno-stack-protector \
     75 	-Os \
     76 	-g \
     77 	-fomit-frame-pointer \
     78 	-fdata-sections \
     79 	-ffunction-sections
     80 
     81 MY_DEFS_Debug := \
     82 	'-DV8_DEPRECATION_WARNINGS' \
     83 	'-D_FILE_OFFSET_BITS=64' \
     84 	'-DNO_TCMALLOC' \
     85 	'-DDISABLE_NACL' \
     86 	'-DCHROMIUM_BUILD' \
     87 	'-DUSE_LIBJPEG_TURBO=1' \
     88 	'-DUSE_PROPRIETARY_CODECS' \
     89 	'-DENABLE_CONFIGURATION_POLICY' \
     90 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     91 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     92 	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
     93 	'-DUSE_OPENSSL=1' \
     94 	'-DENABLE_EGLIMAGE=1' \
     95 	'-DCLD_VERSION=1' \
     96 	'-DENABLE_PRINTING=1' \
     97 	'-DENABLE_MANAGED_USERS=1' \
     98 	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
     99 	'-DU_USING_ICU_NAMESPACE=0' \
    100 	'-D__STDC_CONSTANT_MACROS' \
    101 	'-D__STDC_FORMAT_MACROS' \
    102 	'-DANDROID' \
    103 	'-D__GNU_SOURCE=1' \
    104 	'-DUSE_STLPORT=1' \
    105 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    106 	'-DCHROME_BUILD_ID=""' \
    107 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    108 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    109 	'-D_DEBUG'
    110 
    111 
    112 # Include paths placed before CFLAGS/CPPFLAGS
    113 LOCAL_C_INCLUDES_Debug := \
    114 	$(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \
    115 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    116 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    117 	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
    118 	$(LOCAL_PATH) \
    119 	$(gyp_shared_intermediate_dir)/autofill \
    120 	$(LOCAL_PATH)/skia/config \
    121 	$(PWD)/external/skia/include \
    122 	$(PWD)/external/skia/include/core \
    123 	$(LOCAL_PATH)/third_party/skia/src/core \
    124 	$(LOCAL_PATH)/skia/ext \
    125 	$(PWD)/external/icu4c/common \
    126 	$(PWD)/external/icu4c/i18n \
    127 	$(PWD)/frameworks/wilhelm/include \
    128 	$(PWD)/bionic \
    129 	$(PWD)/external/stlport/stlport
    130 
    131 
    132 # Flags passed to only C++ (and not C) files.
    133 LOCAL_CPPFLAGS_Debug := \
    134 	-fno-rtti \
    135 	-fno-threadsafe-statics \
    136 	-fvisibility-inlines-hidden \
    137 	-Wsign-compare \
    138 	-Wno-error=c++0x-compat \
    139 	-Wno-non-virtual-dtor \
    140 	-Wno-sign-promo
    141 
    142 
    143 # Flags passed to both C and C++ files.
    144 MY_CFLAGS_Release := \
    145 	--param=ssp-buffer-size=4 \
    146 	-Werror \
    147 	-fno-exceptions \
    148 	-fno-strict-aliasing \
    149 	-Wall \
    150 	-Wno-unused-parameter \
    151 	-Wno-missing-field-initializers \
    152 	-fvisibility=hidden \
    153 	-pipe \
    154 	-fPIC \
    155 	-m32 \
    156 	-mmmx \
    157 	-march=pentium4 \
    158 	-msse2 \
    159 	-mfpmath=sse \
    160 	-fuse-ld=gold \
    161 	-ffunction-sections \
    162 	-funwind-tables \
    163 	-g \
    164 	-fno-short-enums \
    165 	-finline-limit=64 \
    166 	-Wa,--noexecstack \
    167 	-U_FORTIFY_SOURCE \
    168 	-Wno-extra \
    169 	-Wno-ignored-qualifiers \
    170 	-Wno-type-limits \
    171 	-fno-stack-protector \
    172 	-Os \
    173 	-fno-ident \
    174 	-fdata-sections \
    175 	-ffunction-sections \
    176 	-fomit-frame-pointer \
    177 	-fno-unwind-tables \
    178 	-fno-asynchronous-unwind-tables
    179 
    180 MY_DEFS_Release := \
    181 	'-DV8_DEPRECATION_WARNINGS' \
    182 	'-D_FILE_OFFSET_BITS=64' \
    183 	'-DNO_TCMALLOC' \
    184 	'-DDISABLE_NACL' \
    185 	'-DCHROMIUM_BUILD' \
    186 	'-DUSE_LIBJPEG_TURBO=1' \
    187 	'-DUSE_PROPRIETARY_CODECS' \
    188 	'-DENABLE_CONFIGURATION_POLICY' \
    189 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    190 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    191 	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
    192 	'-DUSE_OPENSSL=1' \
    193 	'-DENABLE_EGLIMAGE=1' \
    194 	'-DCLD_VERSION=1' \
    195 	'-DENABLE_PRINTING=1' \
    196 	'-DENABLE_MANAGED_USERS=1' \
    197 	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
    198 	'-DU_USING_ICU_NAMESPACE=0' \
    199 	'-D__STDC_CONSTANT_MACROS' \
    200 	'-D__STDC_FORMAT_MACROS' \
    201 	'-DANDROID' \
    202 	'-D__GNU_SOURCE=1' \
    203 	'-DUSE_STLPORT=1' \
    204 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    205 	'-DCHROME_BUILD_ID=""' \
    206 	'-DNDEBUG' \
    207 	'-DNVALGRIND' \
    208 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
    209 	'-D_FORTIFY_SOURCE=2'
    210 
    211 
    212 # Include paths placed before CFLAGS/CPPFLAGS
    213 LOCAL_C_INCLUDES_Release := \
    214 	$(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \
    215 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    216 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    217 	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
    218 	$(LOCAL_PATH) \
    219 	$(gyp_shared_intermediate_dir)/autofill \
    220 	$(LOCAL_PATH)/skia/config \
    221 	$(PWD)/external/skia/include \
    222 	$(PWD)/external/skia/include/core \
    223 	$(LOCAL_PATH)/third_party/skia/src/core \
    224 	$(LOCAL_PATH)/skia/ext \
    225 	$(PWD)/external/icu4c/common \
    226 	$(PWD)/external/icu4c/i18n \
    227 	$(PWD)/frameworks/wilhelm/include \
    228 	$(PWD)/bionic \
    229 	$(PWD)/external/stlport/stlport
    230 
    231 
    232 # Flags passed to only C++ (and not C) files.
    233 LOCAL_CPPFLAGS_Release := \
    234 	-fno-rtti \
    235 	-fno-threadsafe-statics \
    236 	-fvisibility-inlines-hidden \
    237 	-Wsign-compare \
    238 	-Wno-error=c++0x-compat \
    239 	-Wno-non-virtual-dtor \
    240 	-Wno-sign-promo
    241 
    242 
    243 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    244 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    245 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    246 ### Rules for final target.
    247 
    248 LOCAL_LDFLAGS_Debug := \
    249 	-Wl,-z,now \
    250 	-Wl,-z,relro \
    251 	-Wl,-z,noexecstack \
    252 	-fPIC \
    253 	-m32 \
    254 	-fuse-ld=gold \
    255 	-nostdlib \
    256 	-Wl,--no-undefined \
    257 	-Wl,--exclude-libs=ALL \
    258 	-Wl,--fatal-warnings \
    259 	-Wl,--gc-sections \
    260 	-Wl,--warn-shared-textrel \
    261 	-Wl,-O1 \
    262 	-Wl,--as-needed
    263 
    264 
    265 LOCAL_LDFLAGS_Release := \
    266 	-Wl,-z,now \
    267 	-Wl,-z,relro \
    268 	-Wl,-z,noexecstack \
    269 	-fPIC \
    270 	-m32 \
    271 	-fuse-ld=gold \
    272 	-nostdlib \
    273 	-Wl,--no-undefined \
    274 	-Wl,--exclude-libs=ALL \
    275 	-Wl,-O1 \
    276 	-Wl,--as-needed \
    277 	-Wl,--gc-sections \
    278 	-Wl,--fatal-warnings \
    279 	-Wl,--warn-shared-textrel
    280 
    281 
    282 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
    283 
    284 LOCAL_STATIC_LIBRARIES := \
    285 	ui_ui_gyp
    286 
    287 # Enable grouping to fix circular references
    288 LOCAL_GROUP_STATIC_LIBRARIES := true
    289 
    290 LOCAL_SHARED_LIBRARIES := \
    291 	libskia \
    292 	libstlport \
    293 	libdl
    294 
    295 # Add target alias to "gyp_all_modules" target.
    296 .PHONY: gyp_all_modules
    297 gyp_all_modules: components_autofill_core_common_gyp
    298 
    299 # Alias gyp target name.
    300 .PHONY: autofill_core_common
    301 autofill_core_common: components_autofill_core_common_gyp
    302 
    303 include $(BUILD_STATIC_LIBRARY)
    304