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