Home | History | Annotate | Download | only in libphonenumber
      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_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH)
      9 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX))
     10 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX))
     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,,,$(GYP_VAR_PREFIX))/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-strict-aliasing \
     34 	-Wno-unused-parameter \
     35 	-Wno-missing-field-initializers \
     36 	-fvisibility=hidden \
     37 	-pipe \
     38 	-fPIC \
     39 	-Wno-unused-local-typedefs \
     40 	-Wno-format \
     41 	-ffunction-sections \
     42 	-funwind-tables \
     43 	-g \
     44 	-fno-short-enums \
     45 	-finline-limit=64 \
     46 	-Wa,--noexecstack \
     47 	-U_FORTIFY_SOURCE \
     48 	-Wno-extra \
     49 	-Wno-ignored-qualifiers \
     50 	-Wno-type-limits \
     51 	-Wno-unused-but-set-variable \
     52 	-Wno-address \
     53 	-Wno-format-security \
     54 	-Wno-return-type \
     55 	-Wno-sequence-point \
     56 	-Os \
     57 	-g \
     58 	-gdwarf-4 \
     59 	-fdata-sections \
     60 	-ffunction-sections \
     61 	-funwind-tables
     62 
     63 MY_DEFS_Debug := \
     64 	'-DI18N_PHONENUMBERS_USE_ICU_REGEXP=1' \
     65 	'-DV8_DEPRECATION_WARNINGS' \
     66 	'-D_FILE_OFFSET_BITS=64' \
     67 	'-DNO_TCMALLOC' \
     68 	'-DDISABLE_NACL' \
     69 	'-DCHROMIUM_BUILD' \
     70 	'-DUSE_LIBJPEG_TURBO=1' \
     71 	'-DENABLE_WEBRTC=1' \
     72 	'-DUSE_PROPRIETARY_CODECS' \
     73 	'-DENABLE_BROWSER_CDMS' \
     74 	'-DENABLE_CONFIGURATION_POLICY' \
     75 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     76 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     77 	'-DENABLE_EGLIMAGE=1' \
     78 	'-DCLD_VERSION=1' \
     79 	'-DENABLE_PRINTING=1' \
     80 	'-DENABLE_MANAGED_USERS=1' \
     81 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
     82 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
     83 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
     84 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
     85 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
     86 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
     87 	'-DVIDEO_HOLE=1' \
     88 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
     89 	'-DPROTOBUF_USE_DLLS' \
     90 	'-DGOOGLE_PROTOBUF_NO_RTTI' \
     91 	'-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \
     92 	'-DUSE_OPENSSL=1' \
     93 	'-DUSE_OPENSSL_CERTS=1' \
     94 	'-DANDROID' \
     95 	'-D__GNU_SOURCE=1' \
     96 	'-DUSE_STLPORT=1' \
     97 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
     98 	'-DCHROME_BUILD_ID=""' \
     99 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    100 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    101 	'-D_DEBUG'
    102 
    103 
    104 # Include paths placed before CFLAGS/CPPFLAGS
    105 LOCAL_C_INCLUDES_Debug := \
    106 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    107 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    108 	$(LOCAL_PATH)/third_party/libphonenumber/src \
    109 	$(LOCAL_PATH)/third_party/libphonenumber/src/test \
    110 	$(gyp_shared_intermediate_dir)/protoc_out/third_party/libphonenumber \
    111 	$(gyp_shared_intermediate_dir) \
    112 	$(gyp_shared_intermediate_dir)/protoc_out \
    113 	$(LOCAL_PATH) \
    114 	$(LOCAL_PATH)/third_party/protobuf \
    115 	$(LOCAL_PATH)/third_party/protobuf/src \
    116 	$(PWD)/frameworks/wilhelm/include \
    117 	$(PWD)/bionic \
    118 	$(PWD)/external/stlport/stlport
    119 
    120 
    121 # Flags passed to only C++ (and not C) files.
    122 LOCAL_CPPFLAGS_Debug := \
    123 	-fno-exceptions \
    124 	-fno-rtti \
    125 	-fno-threadsafe-statics \
    126 	-fvisibility-inlines-hidden \
    127 	-Wno-deprecated \
    128 	-std=gnu++11 \
    129 	-Wno-narrowing \
    130 	-Wno-literal-suffix \
    131 	-Wno-non-virtual-dtor \
    132 	-Wno-sign-promo \
    133 	-Wno-non-virtual-dtor
    134 
    135 
    136 # Flags passed to both C and C++ files.
    137 MY_CFLAGS_Release := \
    138 	--param=ssp-buffer-size=4 \
    139 	-fno-strict-aliasing \
    140 	-Wno-unused-parameter \
    141 	-Wno-missing-field-initializers \
    142 	-fvisibility=hidden \
    143 	-pipe \
    144 	-fPIC \
    145 	-Wno-unused-local-typedefs \
    146 	-Wno-format \
    147 	-ffunction-sections \
    148 	-funwind-tables \
    149 	-g \
    150 	-fno-short-enums \
    151 	-finline-limit=64 \
    152 	-Wa,--noexecstack \
    153 	-U_FORTIFY_SOURCE \
    154 	-Wno-extra \
    155 	-Wno-ignored-qualifiers \
    156 	-Wno-type-limits \
    157 	-Wno-unused-but-set-variable \
    158 	-Wno-address \
    159 	-Wno-format-security \
    160 	-Wno-return-type \
    161 	-Wno-sequence-point \
    162 	-Os \
    163 	-fno-ident \
    164 	-fdata-sections \
    165 	-ffunction-sections \
    166 	-funwind-tables
    167 
    168 MY_DEFS_Release := \
    169 	'-DI18N_PHONENUMBERS_USE_ICU_REGEXP=1' \
    170 	'-DV8_DEPRECATION_WARNINGS' \
    171 	'-D_FILE_OFFSET_BITS=64' \
    172 	'-DNO_TCMALLOC' \
    173 	'-DDISABLE_NACL' \
    174 	'-DCHROMIUM_BUILD' \
    175 	'-DUSE_LIBJPEG_TURBO=1' \
    176 	'-DENABLE_WEBRTC=1' \
    177 	'-DUSE_PROPRIETARY_CODECS' \
    178 	'-DENABLE_BROWSER_CDMS' \
    179 	'-DENABLE_CONFIGURATION_POLICY' \
    180 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    181 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    182 	'-DENABLE_EGLIMAGE=1' \
    183 	'-DCLD_VERSION=1' \
    184 	'-DENABLE_PRINTING=1' \
    185 	'-DENABLE_MANAGED_USERS=1' \
    186 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    187 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
    188 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
    189 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    190 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    191 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    192 	'-DVIDEO_HOLE=1' \
    193 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
    194 	'-DPROTOBUF_USE_DLLS' \
    195 	'-DGOOGLE_PROTOBUF_NO_RTTI' \
    196 	'-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \
    197 	'-DUSE_OPENSSL=1' \
    198 	'-DUSE_OPENSSL_CERTS=1' \
    199 	'-DANDROID' \
    200 	'-D__GNU_SOURCE=1' \
    201 	'-DUSE_STLPORT=1' \
    202 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    203 	'-DCHROME_BUILD_ID=""' \
    204 	'-DNDEBUG' \
    205 	'-DNVALGRIND' \
    206 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
    207 
    208 
    209 # Include paths placed before CFLAGS/CPPFLAGS
    210 LOCAL_C_INCLUDES_Release := \
    211 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    212 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    213 	$(LOCAL_PATH)/third_party/libphonenumber/src \
    214 	$(LOCAL_PATH)/third_party/libphonenumber/src/test \
    215 	$(gyp_shared_intermediate_dir)/protoc_out/third_party/libphonenumber \
    216 	$(gyp_shared_intermediate_dir) \
    217 	$(gyp_shared_intermediate_dir)/protoc_out \
    218 	$(LOCAL_PATH) \
    219 	$(LOCAL_PATH)/third_party/protobuf \
    220 	$(LOCAL_PATH)/third_party/protobuf/src \
    221 	$(PWD)/frameworks/wilhelm/include \
    222 	$(PWD)/bionic \
    223 	$(PWD)/external/stlport/stlport
    224 
    225 
    226 # Flags passed to only C++ (and not C) files.
    227 LOCAL_CPPFLAGS_Release := \
    228 	-fno-exceptions \
    229 	-fno-rtti \
    230 	-fno-threadsafe-statics \
    231 	-fvisibility-inlines-hidden \
    232 	-Wno-deprecated \
    233 	-std=gnu++11 \
    234 	-Wno-narrowing \
    235 	-Wno-literal-suffix \
    236 	-Wno-non-virtual-dtor \
    237 	-Wno-sign-promo \
    238 	-Wno-non-virtual-dtor
    239 
    240 
    241 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    242 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    243 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    244 LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
    245 ### Rules for final target.
    246 
    247 LOCAL_SHARED_LIBRARIES := \
    248 	libstlport \
    249 	libdl
    250 
    251 # Add target alias to "gyp_all_modules" target.
    252 .PHONY: gyp_all_modules
    253 gyp_all_modules: third_party_libphonenumber_libphonenumber_gyp
    254 
    255 # Alias gyp target name.
    256 .PHONY: libphonenumber
    257 libphonenumber: third_party_libphonenumber_libphonenumber_gyp
    258 
    259 include $(BUILD_STATIC_LIBRARY)
    260