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_builder.cc \ 36 base/prefs/pref_store.cc \ 37 base/prefs/pref_value_map.cc \ 38 base/prefs/pref_value_store.cc \ 39 base/prefs/value_map_pref_store.cc 40 41 42 # Flags passed to both C and C++ files. 43 MY_CFLAGS_Debug := \ 44 -fstack-protector \ 45 --param=ssp-buffer-size=4 \ 46 -Werror \ 47 -fno-exceptions \ 48 -fno-strict-aliasing \ 49 -Wall \ 50 -Wno-unused-parameter \ 51 -Wno-missing-field-initializers \ 52 -fvisibility=hidden \ 53 -pipe \ 54 -fPIC \ 55 -fno-tree-sra \ 56 -fuse-ld=gold \ 57 -Wno-psabi \ 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 '-DANGLE_DX11' \ 77 '-D_FILE_OFFSET_BITS=64' \ 78 '-DNO_TCMALLOC' \ 79 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 80 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 81 '-DDISABLE_NACL' \ 82 '-DCHROMIUM_BUILD' \ 83 '-DUSE_LIBJPEG_TURBO=1' \ 84 '-DUSE_PROPRIETARY_CODECS' \ 85 '-DENABLE_CONFIGURATION_POLICY' \ 86 '-DLOGGING_IS_OFFICIAL_BUILD=1' \ 87 '-DTRACING_IS_OFFICIAL_BUILD=1' \ 88 '-DENABLE_GPU=1' \ 89 '-DUSE_OPENSSL=1' \ 90 '-DENABLE_EGLIMAGE=1' \ 91 '-DENABLE_PRINTING=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-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 '-DANGLE_DX11' \ 161 '-D_FILE_OFFSET_BITS=64' \ 162 '-DNO_TCMALLOC' \ 163 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 164 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 165 '-DDISABLE_NACL' \ 166 '-DCHROMIUM_BUILD' \ 167 '-DUSE_LIBJPEG_TURBO=1' \ 168 '-DUSE_PROPRIETARY_CODECS' \ 169 '-DENABLE_CONFIGURATION_POLICY' \ 170 '-DLOGGING_IS_OFFICIAL_BUILD=1' \ 171 '-DTRACING_IS_OFFICIAL_BUILD=1' \ 172 '-DENABLE_GPU=1' \ 173 '-DUSE_OPENSSL=1' \ 174 '-DENABLE_EGLIMAGE=1' \ 175 '-DENABLE_PRINTING=1' \ 176 '-DBASE_PREFS_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/ashmem/target \ 193 $(LOCAL_PATH) \ 194 $(PWD)/frameworks/wilhelm/include \ 195 $(PWD)/bionic \ 196 $(PWD)/external/stlport/stlport 197 198 199 # Flags passed to only C++ (and not C) files. 200 LOCAL_CPPFLAGS_Release := \ 201 -fno-rtti \ 202 -fno-threadsafe-statics \ 203 -fvisibility-inlines-hidden \ 204 -Wsign-compare \ 205 -Wno-abi \ 206 -Wno-error=c++0x-compat \ 207 -Wno-non-virtual-dtor \ 208 -Wno-sign-promo 209 210 211 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 212 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 213 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 214 ### Rules for final target. 215 216 LOCAL_LDFLAGS_Debug := \ 217 -Wl,-z,now \ 218 -Wl,-z,relro \ 219 -Wl,-z,noexecstack \ 220 -fPIC \ 221 -Wl,-z,relro \ 222 -Wl,-z,now \ 223 -fuse-ld=gold \ 224 -nostdlib \ 225 -Wl,--no-undefined \ 226 -Wl,--exclude-libs=ALL \ 227 -Wl,--icf=safe \ 228 -Wl,--fatal-warnings \ 229 -Wl,--gc-sections \ 230 -Wl,--warn-shared-textrel \ 231 -Wl,-O1 \ 232 -Wl,--as-needed 233 234 235 LOCAL_LDFLAGS_Release := \ 236 -Wl,-z,now \ 237 -Wl,-z,relro \ 238 -Wl,-z,noexecstack \ 239 -fPIC \ 240 -Wl,-z,relro \ 241 -Wl,-z,now \ 242 -fuse-ld=gold \ 243 -nostdlib \ 244 -Wl,--no-undefined \ 245 -Wl,--exclude-libs=ALL \ 246 -Wl,--icf=safe \ 247 -Wl,-O1 \ 248 -Wl,--as-needed \ 249 -Wl,--gc-sections \ 250 -Wl,--fatal-warnings \ 251 -Wl,--warn-shared-textrel 252 253 254 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 255 256 LOCAL_STATIC_LIBRARIES := 257 258 # Enable grouping to fix circular references 259 LOCAL_GROUP_STATIC_LIBRARIES := true 260 261 LOCAL_SHARED_LIBRARIES := \ 262 libstlport \ 263 libdl 264 265 # Add target alias to "gyp_all_modules" target. 266 .PHONY: gyp_all_modules 267 gyp_all_modules: base_base_prefs_gyp 268 269 # Alias gyp target name. 270 .PHONY: base_prefs 271 base_prefs: base_base_prefs_gyp 272 273 include $(BUILD_STATIC_LIBRARY) 274