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