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