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 \ 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 -EL \ 57 -mhard-float \ 58 -ffunction-sections \ 59 -funwind-tables \ 60 -g \ 61 -fstack-protector \ 62 -fno-short-enums \ 63 -finline-limit=64 \ 64 -Wa,--noexecstack \ 65 -U_FORTIFY_SOURCE \ 66 -Wno-extra \ 67 -Wno-ignored-qualifiers \ 68 -Wno-type-limits \ 69 -Os \ 70 -g \ 71 -fomit-frame-pointer \ 72 -fdata-sections \ 73 -ffunction-sections 74 75 MY_DEFS_Debug := \ 76 '-DV8_DEPRECATION_WARNINGS' \ 77 '-D_FILE_OFFSET_BITS=64' \ 78 '-DNO_TCMALLOC' \ 79 '-DDISABLE_NACL' \ 80 '-DCHROMIUM_BUILD' \ 81 '-DUSE_LIBJPEG_TURBO=1' \ 82 '-DUSE_PROPRIETARY_CODECS' \ 83 '-DENABLE_CONFIGURATION_POLICY' \ 84 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 85 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 86 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 87 '-DUSE_OPENSSL=1' \ 88 '-DENABLE_EGLIMAGE=1' \ 89 '-DCLD_VERSION=1' \ 90 '-DENABLE_PRINTING=1' \ 91 '-DENABLE_MANAGED_USERS=1' \ 92 '-DBASE_PREFS_IMPLEMENTATION' \ 93 '-D__STDC_CONSTANT_MACROS' \ 94 '-D__STDC_FORMAT_MACROS' \ 95 '-DANDROID' \ 96 '-D__GNU_SOURCE=1' \ 97 '-DUSE_STLPORT=1' \ 98 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 99 '-DCHROME_BUILD_ID=""' \ 100 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 101 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 102 '-D_DEBUG' 103 104 105 # Include paths placed before CFLAGS/CPPFLAGS 106 LOCAL_C_INCLUDES_Debug := \ 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 -Wsign-compare \ 120 -Wno-uninitialized \ 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 \ 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 -EL \ 140 -mhard-float \ 141 -ffunction-sections \ 142 -funwind-tables \ 143 -g \ 144 -fstack-protector \ 145 -fno-short-enums \ 146 -finline-limit=64 \ 147 -Wa,--noexecstack \ 148 -U_FORTIFY_SOURCE \ 149 -Wno-extra \ 150 -Wno-ignored-qualifiers \ 151 -Wno-type-limits \ 152 -Os \ 153 -fno-ident \ 154 -fdata-sections \ 155 -ffunction-sections \ 156 -fomit-frame-pointer 157 158 MY_DEFS_Release := \ 159 '-DV8_DEPRECATION_WARNINGS' \ 160 '-D_FILE_OFFSET_BITS=64' \ 161 '-DNO_TCMALLOC' \ 162 '-DDISABLE_NACL' \ 163 '-DCHROMIUM_BUILD' \ 164 '-DUSE_LIBJPEG_TURBO=1' \ 165 '-DUSE_PROPRIETARY_CODECS' \ 166 '-DENABLE_CONFIGURATION_POLICY' \ 167 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 168 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 169 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 170 '-DUSE_OPENSSL=1' \ 171 '-DENABLE_EGLIMAGE=1' \ 172 '-DCLD_VERSION=1' \ 173 '-DENABLE_PRINTING=1' \ 174 '-DENABLE_MANAGED_USERS=1' \ 175 '-DBASE_PREFS_IMPLEMENTATION' \ 176 '-D__STDC_CONSTANT_MACROS' \ 177 '-D__STDC_FORMAT_MACROS' \ 178 '-DANDROID' \ 179 '-D__GNU_SOURCE=1' \ 180 '-DUSE_STLPORT=1' \ 181 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 182 '-DCHROME_BUILD_ID=""' \ 183 '-DNDEBUG' \ 184 '-DNVALGRIND' \ 185 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 186 '-D_FORTIFY_SOURCE=2' 187 188 189 # Include paths placed before CFLAGS/CPPFLAGS 190 LOCAL_C_INCLUDES_Release := \ 191 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 192 $(LOCAL_PATH) \ 193 $(PWD)/frameworks/wilhelm/include \ 194 $(PWD)/bionic \ 195 $(PWD)/external/stlport/stlport 196 197 198 # Flags passed to only C++ (and not C) files. 199 LOCAL_CPPFLAGS_Release := \ 200 -fno-rtti \ 201 -fno-threadsafe-statics \ 202 -fvisibility-inlines-hidden \ 203 -Wsign-compare \ 204 -Wno-uninitialized \ 205 -Wno-error=c++0x-compat \ 206 -Wno-non-virtual-dtor \ 207 -Wno-sign-promo 208 209 210 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 211 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 212 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 213 ### Rules for final target. 214 215 LOCAL_LDFLAGS_Debug := \ 216 -Wl,-z,now \ 217 -Wl,-z,relro \ 218 -Wl,-z,noexecstack \ 219 -fPIC \ 220 -EL \ 221 -Wl,--no-keep-memory \ 222 -nostdlib \ 223 -Wl,--no-undefined \ 224 -Wl,--exclude-libs=ALL \ 225 -Wl,--fatal-warnings \ 226 -Wl,--gc-sections \ 227 -Wl,--warn-shared-textrel \ 228 -Wl,-O1 \ 229 -Wl,--as-needed 230 231 232 LOCAL_LDFLAGS_Release := \ 233 -Wl,-z,now \ 234 -Wl,-z,relro \ 235 -Wl,-z,noexecstack \ 236 -fPIC \ 237 -EL \ 238 -Wl,--no-keep-memory \ 239 -nostdlib \ 240 -Wl,--no-undefined \ 241 -Wl,--exclude-libs=ALL \ 242 -Wl,-O1 \ 243 -Wl,--as-needed \ 244 -Wl,--gc-sections \ 245 -Wl,--fatal-warnings \ 246 -Wl,--warn-shared-textrel 247 248 249 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 250 251 LOCAL_STATIC_LIBRARIES := 252 253 # Enable grouping to fix circular references 254 LOCAL_GROUP_STATIC_LIBRARIES := true 255 256 LOCAL_SHARED_LIBRARIES := \ 257 libstlport \ 258 libdl 259 260 # Add target alias to "gyp_all_modules" target. 261 .PHONY: gyp_all_modules 262 gyp_all_modules: base_base_prefs_gyp 263 264 # Alias gyp target name. 265 .PHONY: base_prefs 266 base_prefs: base_base_prefs_gyp 267 268 include $(BUILD_STATIC_LIBRARY) 269