libphonenumber.target.darwin-mips.mk revision 68043e1e95eeb07d5cae7aca370b26518b0867d6
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 \ 35 -fno-exceptions \ 36 -fno-strict-aliasing \ 37 -Wno-unused-parameter \ 38 -Wno-missing-field-initializers \ 39 -fvisibility=hidden \ 40 -pipe \ 41 -fPIC \ 42 -Wno-format \ 43 -EL \ 44 -mhard-float \ 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 '-D_FILE_OFFSET_BITS=64' \ 70 '-DNO_TCMALLOC' \ 71 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 72 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 73 '-DDISABLE_NACL' \ 74 '-DCHROMIUM_BUILD' \ 75 '-DUSE_LIBJPEG_TURBO=1' \ 76 '-DUSE_PROPRIETARY_CODECS' \ 77 '-DENABLE_CONFIGURATION_POLICY' \ 78 '-DENABLE_GPU=1' \ 79 '-DUSE_OPENSSL=1' \ 80 '-DENABLE_EGLIMAGE=1' \ 81 '-DCLD_VERSION=1' \ 82 '-DPROTOBUF_USE_DLLS' \ 83 '-DGOOGLE_PROTOBUF_NO_RTTI' \ 84 '-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \ 85 '-DANDROID' \ 86 '-D__GNU_SOURCE=1' \ 87 '-DUSE_STLPORT=1' \ 88 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 89 '-DCHROME_BUILD_ID=""' \ 90 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 91 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 92 '-D_DEBUG' 93 94 95# Include paths placed before CFLAGS/CPPFLAGS 96LOCAL_C_INCLUDES_Debug := \ 97 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 98 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 99 $(LOCAL_PATH)/third_party/libphonenumber/src \ 100 $(LOCAL_PATH)/third_party/libphonenumber/src/test \ 101 $(gyp_shared_intermediate_dir)/protoc_out/third_party/libphonenumber \ 102 $(gyp_shared_intermediate_dir)/protoc_out \ 103 $(LOCAL_PATH) \ 104 $(LOCAL_PATH)/third_party/protobuf \ 105 $(LOCAL_PATH)/third_party/protobuf/src \ 106 $(PWD)/frameworks/wilhelm/include \ 107 $(PWD)/bionic \ 108 $(PWD)/external/stlport/stlport 109 110 111# Flags passed to only C++ (and not C) files. 112LOCAL_CPPFLAGS_Debug := \ 113 -fno-rtti \ 114 -fno-threadsafe-statics \ 115 -fvisibility-inlines-hidden \ 116 -Wno-deprecated \ 117 -Wno-uninitialized \ 118 -Wno-error=c++0x-compat \ 119 -Wno-non-virtual-dtor \ 120 -Wno-sign-promo \ 121 -Wno-non-virtual-dtor 122 123 124# Flags passed to both C and C++ files. 125MY_CFLAGS_Release := \ 126 -fstack-protector \ 127 --param=ssp-buffer-size=4 \ 128 \ 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 -EL \ 138 -mhard-float \ 139 -ffunction-sections \ 140 -funwind-tables \ 141 -g \ 142 -fstack-protector \ 143 -fno-short-enums \ 144 -finline-limit=64 \ 145 -Wa,--noexecstack \ 146 -U_FORTIFY_SOURCE \ 147 -Wno-extra \ 148 -Wno-ignored-qualifiers \ 149 -Wno-type-limits \ 150 -Wno-address \ 151 -Wno-format-security \ 152 -Wno-return-type \ 153 -Wno-sequence-point \ 154 -Os \ 155 -fno-ident \ 156 -fdata-sections \ 157 -ffunction-sections \ 158 -fomit-frame-pointer 159 160MY_DEFS_Release := \ 161 '-DI18N_PHONENUMBERS_USE_ICU_REGEXP=1' \ 162 '-DANGLE_DX11' \ 163 '-D_FILE_OFFSET_BITS=64' \ 164 '-DNO_TCMALLOC' \ 165 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 166 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 167 '-DDISABLE_NACL' \ 168 '-DCHROMIUM_BUILD' \ 169 '-DUSE_LIBJPEG_TURBO=1' \ 170 '-DUSE_PROPRIETARY_CODECS' \ 171 '-DENABLE_CONFIGURATION_POLICY' \ 172 '-DENABLE_GPU=1' \ 173 '-DUSE_OPENSSL=1' \ 174 '-DENABLE_EGLIMAGE=1' \ 175 '-DCLD_VERSION=1' \ 176 '-DPROTOBUF_USE_DLLS' \ 177 '-DGOOGLE_PROTOBUF_NO_RTTI' \ 178 '-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \ 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 188 189# Include paths placed before CFLAGS/CPPFLAGS 190LOCAL_C_INCLUDES_Release := \ 191 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 192 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 193 $(LOCAL_PATH)/third_party/libphonenumber/src \ 194 $(LOCAL_PATH)/third_party/libphonenumber/src/test \ 195 $(gyp_shared_intermediate_dir)/protoc_out/third_party/libphonenumber \ 196 $(gyp_shared_intermediate_dir)/protoc_out \ 197 $(LOCAL_PATH) \ 198 $(LOCAL_PATH)/third_party/protobuf \ 199 $(LOCAL_PATH)/third_party/protobuf/src \ 200 $(PWD)/frameworks/wilhelm/include \ 201 $(PWD)/bionic \ 202 $(PWD)/external/stlport/stlport 203 204 205# Flags passed to only C++ (and not C) files. 206LOCAL_CPPFLAGS_Release := \ 207 -fno-rtti \ 208 -fno-threadsafe-statics \ 209 -fvisibility-inlines-hidden \ 210 -Wno-deprecated \ 211 -Wno-uninitialized \ 212 -Wno-error=c++0x-compat \ 213 -Wno-non-virtual-dtor \ 214 -Wno-sign-promo \ 215 -Wno-non-virtual-dtor 216 217 218LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 219LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 220LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 221### Rules for final target. 222 223LOCAL_LDFLAGS_Debug := \ 224 -Wl,-z,now \ 225 -Wl,-z,relro \ 226 -Wl,-z,noexecstack \ 227 -fPIC \ 228 -EL \ 229 -Wl,--no-keep-memory \ 230 -nostdlib \ 231 -Wl,--no-undefined \ 232 -Wl,--exclude-libs=ALL \ 233 -Wl,--fatal-warnings \ 234 -Wl,--gc-sections \ 235 -Wl,--warn-shared-textrel \ 236 -Wl,-O1 \ 237 -Wl,--as-needed 238 239 240LOCAL_LDFLAGS_Release := \ 241 -Wl,-z,now \ 242 -Wl,-z,relro \ 243 -Wl,-z,noexecstack \ 244 -fPIC \ 245 -EL \ 246 -Wl,--no-keep-memory \ 247 -nostdlib \ 248 -Wl,--no-undefined \ 249 -Wl,--exclude-libs=ALL \ 250 -Wl,-O1 \ 251 -Wl,--as-needed \ 252 -Wl,--gc-sections \ 253 -Wl,--fatal-warnings \ 254 -Wl,--warn-shared-textrel 255 256 257LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 258 259LOCAL_STATIC_LIBRARIES := \ 260 third_party_libphonenumber_libphonenumber_without_metadata_gyp 261 262# Enable grouping to fix circular references 263LOCAL_GROUP_STATIC_LIBRARIES := true 264 265LOCAL_SHARED_LIBRARIES := \ 266 libstlport \ 267 libdl 268 269# Add target alias to "gyp_all_modules" target. 270.PHONY: gyp_all_modules 271gyp_all_modules: third_party_libphonenumber_libphonenumber_gyp 272 273# Alias gyp target name. 274.PHONY: libphonenumber 275libphonenumber: third_party_libphonenumber_libphonenumber_gyp 276 277include $(BUILD_STATIC_LIBRARY) 278