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 := third_party_libphonenumber_libphonenumber_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,third_party_libphonenumber_libphonenumber_without_metadata_gyp)/third_party_libphonenumber_libphonenumber_without_metadata_gyp.a 15 16 GYP_GENERATED_OUTPUTS := 17 18 # Make sure our deps and generated files are built first. 19 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 20 21 LOCAL_CPP_EXTENSION := .cc 22 LOCAL_GENERATED_SOURCES := 23 24 GYP_COPIED_SOURCE_ORIGIN_DIRS := 25 26 LOCAL_SRC_FILES := \ 27 third_party/libphonenumber/src/phonenumbers/lite_metadata.cc 28 29 30 # Flags passed to both C and C++ files. 31 MY_CFLAGS_Debug := \ 32 --param=ssp-buffer-size=4 \ 33 -fno-exceptions \ 34 -fno-strict-aliasing \ 35 -Wno-unused-parameter \ 36 -Wno-missing-field-initializers \ 37 -fvisibility=hidden \ 38 -pipe \ 39 -fPIC \ 40 -Wno-format \ 41 -m32 \ 42 -mmmx \ 43 -march=pentium4 \ 44 -msse2 \ 45 -mfpmath=sse \ 46 -fuse-ld=gold \ 47 -ffunction-sections \ 48 -funwind-tables \ 49 -g \ 50 -fno-short-enums \ 51 -finline-limit=64 \ 52 -Wa,--noexecstack \ 53 -U_FORTIFY_SOURCE \ 54 -Wno-extra \ 55 -Wno-ignored-qualifiers \ 56 -Wno-type-limits \ 57 -fno-stack-protector \ 58 -Wno-address \ 59 -Wno-format-security \ 60 -Wno-return-type \ 61 -Wno-sequence-point \ 62 -Os \ 63 -g \ 64 -fomit-frame-pointer \ 65 -fdata-sections \ 66 -ffunction-sections 67 68 MY_DEFS_Debug := \ 69 '-DI18N_PHONENUMBERS_USE_ICU_REGEXP=1' \ 70 '-DV8_DEPRECATION_WARNINGS' \ 71 '-D_FILE_OFFSET_BITS=64' \ 72 '-DNO_TCMALLOC' \ 73 '-DDISABLE_NACL' \ 74 '-DCHROMIUM_BUILD' \ 75 '-DUSE_LIBJPEG_TURBO=1' \ 76 '-DUSE_PROPRIETARY_CODECS' \ 77 '-DENABLE_CONFIGURATION_POLICY' \ 78 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 79 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 80 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 81 '-DUSE_OPENSSL=1' \ 82 '-DENABLE_EGLIMAGE=1' \ 83 '-DCLD_VERSION=1' \ 84 '-DENABLE_PRINTING=1' \ 85 '-DENABLE_MANAGED_USERS=1' \ 86 '-DPROTOBUF_USE_DLLS' \ 87 '-DGOOGLE_PROTOBUF_NO_RTTI' \ 88 '-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \ 89 '-DANDROID' \ 90 '-D__GNU_SOURCE=1' \ 91 '-DUSE_STLPORT=1' \ 92 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 93 '-DCHROME_BUILD_ID=""' \ 94 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 95 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 96 '-D_DEBUG' 97 98 99 # Include paths placed before CFLAGS/CPPFLAGS 100 LOCAL_C_INCLUDES_Debug := \ 101 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 102 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 103 $(LOCAL_PATH)/third_party/libphonenumber/src \ 104 $(LOCAL_PATH)/third_party/libphonenumber/src/test \ 105 $(gyp_shared_intermediate_dir)/protoc_out/third_party/libphonenumber \ 106 $(gyp_shared_intermediate_dir)/protoc_out \ 107 $(LOCAL_PATH) \ 108 $(LOCAL_PATH)/third_party/protobuf \ 109 $(LOCAL_PATH)/third_party/protobuf/src \ 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 -Wno-deprecated \ 121 -Wno-error=c++0x-compat \ 122 -Wno-non-virtual-dtor \ 123 -Wno-sign-promo \ 124 -Wno-non-virtual-dtor 125 126 127 # Flags passed to both C and C++ files. 128 MY_CFLAGS_Release := \ 129 --param=ssp-buffer-size=4 \ 130 -fno-exceptions \ 131 -fno-strict-aliasing \ 132 -Wno-unused-parameter \ 133 -Wno-missing-field-initializers \ 134 -fvisibility=hidden \ 135 -pipe \ 136 -fPIC \ 137 -Wno-format \ 138 -m32 \ 139 -mmmx \ 140 -march=pentium4 \ 141 -msse2 \ 142 -mfpmath=sse \ 143 -fuse-ld=gold \ 144 -ffunction-sections \ 145 -funwind-tables \ 146 -g \ 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 -fno-stack-protector \ 155 -Wno-address \ 156 -Wno-format-security \ 157 -Wno-return-type \ 158 -Wno-sequence-point \ 159 -Os \ 160 -fno-ident \ 161 -fdata-sections \ 162 -ffunction-sections \ 163 -fomit-frame-pointer \ 164 -fno-unwind-tables \ 165 -fno-asynchronous-unwind-tables 166 167 MY_DEFS_Release := \ 168 '-DI18N_PHONENUMBERS_USE_ICU_REGEXP=1' \ 169 '-DV8_DEPRECATION_WARNINGS' \ 170 '-D_FILE_OFFSET_BITS=64' \ 171 '-DNO_TCMALLOC' \ 172 '-DDISABLE_NACL' \ 173 '-DCHROMIUM_BUILD' \ 174 '-DUSE_LIBJPEG_TURBO=1' \ 175 '-DUSE_PROPRIETARY_CODECS' \ 176 '-DENABLE_CONFIGURATION_POLICY' \ 177 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 178 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 179 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 180 '-DUSE_OPENSSL=1' \ 181 '-DENABLE_EGLIMAGE=1' \ 182 '-DCLD_VERSION=1' \ 183 '-DENABLE_PRINTING=1' \ 184 '-DENABLE_MANAGED_USERS=1' \ 185 '-DPROTOBUF_USE_DLLS' \ 186 '-DGOOGLE_PROTOBUF_NO_RTTI' \ 187 '-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \ 188 '-DANDROID' \ 189 '-D__GNU_SOURCE=1' \ 190 '-DUSE_STLPORT=1' \ 191 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 192 '-DCHROME_BUILD_ID=""' \ 193 '-DNDEBUG' \ 194 '-DNVALGRIND' \ 195 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 196 197 198 # Include paths placed before CFLAGS/CPPFLAGS 199 LOCAL_C_INCLUDES_Release := \ 200 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 201 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 202 $(LOCAL_PATH)/third_party/libphonenumber/src \ 203 $(LOCAL_PATH)/third_party/libphonenumber/src/test \ 204 $(gyp_shared_intermediate_dir)/protoc_out/third_party/libphonenumber \ 205 $(gyp_shared_intermediate_dir)/protoc_out \ 206 $(LOCAL_PATH) \ 207 $(LOCAL_PATH)/third_party/protobuf \ 208 $(LOCAL_PATH)/third_party/protobuf/src \ 209 $(PWD)/frameworks/wilhelm/include \ 210 $(PWD)/bionic \ 211 $(PWD)/external/stlport/stlport 212 213 214 # Flags passed to only C++ (and not C) files. 215 LOCAL_CPPFLAGS_Release := \ 216 -fno-rtti \ 217 -fno-threadsafe-statics \ 218 -fvisibility-inlines-hidden \ 219 -Wno-deprecated \ 220 -Wno-error=c++0x-compat \ 221 -Wno-non-virtual-dtor \ 222 -Wno-sign-promo \ 223 -Wno-non-virtual-dtor 224 225 226 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 227 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 228 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 229 ### Rules for final target. 230 231 LOCAL_LDFLAGS_Debug := \ 232 -Wl,-z,now \ 233 -Wl,-z,relro \ 234 -Wl,-z,noexecstack \ 235 -fPIC \ 236 -m32 \ 237 -fuse-ld=gold \ 238 -nostdlib \ 239 -Wl,--no-undefined \ 240 -Wl,--exclude-libs=ALL \ 241 -Wl,--fatal-warnings \ 242 -Wl,--gc-sections \ 243 -Wl,--warn-shared-textrel \ 244 -Wl,-O1 \ 245 -Wl,--as-needed 246 247 248 LOCAL_LDFLAGS_Release := \ 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,-O1 \ 259 -Wl,--as-needed \ 260 -Wl,--gc-sections \ 261 -Wl,--fatal-warnings \ 262 -Wl,--warn-shared-textrel 263 264 265 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 266 267 LOCAL_STATIC_LIBRARIES := \ 268 third_party_libphonenumber_libphonenumber_without_metadata_gyp 269 270 # Enable grouping to fix circular references 271 LOCAL_GROUP_STATIC_LIBRARIES := true 272 273 LOCAL_SHARED_LIBRARIES := \ 274 libstlport \ 275 libdl 276 277 # Add target alias to "gyp_all_modules" target. 278 .PHONY: gyp_all_modules 279 gyp_all_modules: third_party_libphonenumber_libphonenumber_gyp 280 281 # Alias gyp target name. 282 .PHONY: libphonenumber 283 libphonenumber: third_party_libphonenumber_libphonenumber_gyp 284 285 include $(BUILD_STATIC_LIBRARY) 286