1# This file is generated by gyp; do not edit. 2 3include $(CLEAR_VARS) 4 5LOCAL_MODULE_CLASS := STATIC_LIBRARIES 6LOCAL_MODULE := third_party_sfntly_sfntly_gyp 7LOCAL_MODULE_SUFFIX := .a 8LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 9gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 11 12# Make sure our deps are built first. 13GYP_TARGET_DEPENDENCIES := \ 14 $(call intermediates-dir-for,GYP,third_party_icu_icuuc_gyp,,,$(GYP_VAR_PREFIX))/icuuc.stamp 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/sfntly/cpp/src/sfntly/data/byte_array.cc \ 28 third_party/sfntly/cpp/src/sfntly/data/font_data.cc \ 29 third_party/sfntly/cpp/src/sfntly/data/font_input_stream.cc \ 30 third_party/sfntly/cpp/src/sfntly/data/font_output_stream.cc \ 31 third_party/sfntly/cpp/src/sfntly/data/growable_memory_byte_array.cc \ 32 third_party/sfntly/cpp/src/sfntly/data/memory_byte_array.cc \ 33 third_party/sfntly/cpp/src/sfntly/data/readable_font_data.cc \ 34 third_party/sfntly/cpp/src/sfntly/data/writable_font_data.cc \ 35 third_party/sfntly/cpp/src/sfntly/font.cc \ 36 third_party/sfntly/cpp/src/sfntly/font_factory.cc \ 37 third_party/sfntly/cpp/src/sfntly/port/file_input_stream.cc \ 38 third_party/sfntly/cpp/src/sfntly/port/lock.cc \ 39 third_party/sfntly/cpp/src/sfntly/port/memory_input_stream.cc \ 40 third_party/sfntly/cpp/src/sfntly/port/memory_output_stream.cc \ 41 third_party/sfntly/cpp/src/sfntly/table/bitmap/big_glyph_metrics.cc \ 42 third_party/sfntly/cpp/src/sfntly/table/bitmap/bitmap_glyph.cc \ 43 third_party/sfntly/cpp/src/sfntly/table/bitmap/bitmap_glyph_info.cc \ 44 third_party/sfntly/cpp/src/sfntly/table/bitmap/bitmap_size_table.cc \ 45 third_party/sfntly/cpp/src/sfntly/table/bitmap/composite_bitmap_glyph.cc \ 46 third_party/sfntly/cpp/src/sfntly/table/bitmap/ebdt_table.cc \ 47 third_party/sfntly/cpp/src/sfntly/table/bitmap/eblc_table.cc \ 48 third_party/sfntly/cpp/src/sfntly/table/bitmap/ebsc_table.cc \ 49 third_party/sfntly/cpp/src/sfntly/table/bitmap/glyph_metrics.cc \ 50 third_party/sfntly/cpp/src/sfntly/table/bitmap/index_sub_table.cc \ 51 third_party/sfntly/cpp/src/sfntly/table/bitmap/index_sub_table_format1.cc \ 52 third_party/sfntly/cpp/src/sfntly/table/bitmap/index_sub_table_format2.cc \ 53 third_party/sfntly/cpp/src/sfntly/table/bitmap/index_sub_table_format3.cc \ 54 third_party/sfntly/cpp/src/sfntly/table/bitmap/index_sub_table_format4.cc \ 55 third_party/sfntly/cpp/src/sfntly/table/bitmap/index_sub_table_format5.cc \ 56 third_party/sfntly/cpp/src/sfntly/table/bitmap/simple_bitmap_glyph.cc \ 57 third_party/sfntly/cpp/src/sfntly/table/bitmap/small_glyph_metrics.cc \ 58 third_party/sfntly/cpp/src/sfntly/table/byte_array_table_builder.cc \ 59 third_party/sfntly/cpp/src/sfntly/table/core/cmap_table.cc \ 60 third_party/sfntly/cpp/src/sfntly/table/core/font_header_table.cc \ 61 third_party/sfntly/cpp/src/sfntly/table/core/horizontal_device_metrics_table.cc \ 62 third_party/sfntly/cpp/src/sfntly/table/core/horizontal_header_table.cc \ 63 third_party/sfntly/cpp/src/sfntly/table/core/horizontal_metrics_table.cc \ 64 third_party/sfntly/cpp/src/sfntly/table/core/maximum_profile_table.cc \ 65 third_party/sfntly/cpp/src/sfntly/table/core/name_table.cc \ 66 third_party/sfntly/cpp/src/sfntly/table/core/os2_table.cc \ 67 third_party/sfntly/cpp/src/sfntly/table/font_data_table.cc \ 68 third_party/sfntly/cpp/src/sfntly/table/generic_table_builder.cc \ 69 third_party/sfntly/cpp/src/sfntly/table/header.cc \ 70 third_party/sfntly/cpp/src/sfntly/table/subtable.cc \ 71 third_party/sfntly/cpp/src/sfntly/table/table.cc \ 72 third_party/sfntly/cpp/src/sfntly/table/table_based_table_builder.cc \ 73 third_party/sfntly/cpp/src/sfntly/table/truetype/glyph_table.cc \ 74 third_party/sfntly/cpp/src/sfntly/table/truetype/loca_table.cc \ 75 third_party/sfntly/cpp/src/sfntly/tag.cc \ 76 third_party/sfntly/cpp/src/sample/chromium/font_subsetter.cc \ 77 third_party/sfntly/cpp/src/sample/chromium/subsetter_impl.cc 78 79 80# Flags passed to both C and C++ files. 81MY_CFLAGS_Debug := \ 82 --param=ssp-buffer-size=4 \ 83 -Werror \ 84 -fno-strict-aliasing \ 85 -Wall \ 86 -Wno-unused-parameter \ 87 -Wno-missing-field-initializers \ 88 -fvisibility=hidden \ 89 -pipe \ 90 -fPIC \ 91 -Wno-unused-local-typedefs \ 92 -msse2 \ 93 -mfpmath=sse \ 94 -mmmx \ 95 -m32 \ 96 -ffunction-sections \ 97 -funwind-tables \ 98 -g \ 99 -fno-short-enums \ 100 -finline-limit=64 \ 101 -Wa,--noexecstack \ 102 -U_FORTIFY_SOURCE \ 103 -Wno-extra \ 104 -Wno-ignored-qualifiers \ 105 -Wno-type-limits \ 106 -Wno-unused-but-set-variable \ 107 -fno-stack-protector \ 108 -Os \ 109 -g \ 110 -gdwarf-4 \ 111 -fdata-sections \ 112 -ffunction-sections \ 113 -fomit-frame-pointer \ 114 -funwind-tables 115 116MY_DEFS_Debug := \ 117 '-DV8_DEPRECATION_WARNINGS' \ 118 '-D_FILE_OFFSET_BITS=64' \ 119 '-DNO_TCMALLOC' \ 120 '-DDISABLE_NACL' \ 121 '-DCHROMIUM_BUILD' \ 122 '-DUSE_LIBJPEG_TURBO=1' \ 123 '-DENABLE_WEBRTC=1' \ 124 '-DUSE_PROPRIETARY_CODECS' \ 125 '-DENABLE_BROWSER_CDMS' \ 126 '-DENABLE_CONFIGURATION_POLICY' \ 127 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 128 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 129 '-DENABLE_EGLIMAGE=1' \ 130 '-DCLD_VERSION=1' \ 131 '-DENABLE_PRINTING=1' \ 132 '-DENABLE_MANAGED_USERS=1' \ 133 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 134 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 135 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 136 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 137 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 138 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 139 '-DVIDEO_HOLE=1' \ 140 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 141 '-DSFNTLY_NO_EXCEPTION' \ 142 '-DU_USING_ICU_NAMESPACE=0' \ 143 '-DU_ENABLE_DYLOAD=0' \ 144 '-DUSE_OPENSSL=1' \ 145 '-DUSE_OPENSSL_CERTS=1' \ 146 '-D__STDC_CONSTANT_MACROS' \ 147 '-D__STDC_FORMAT_MACROS' \ 148 '-DANDROID' \ 149 '-D__GNU_SOURCE=1' \ 150 '-DUSE_STLPORT=1' \ 151 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 152 '-DCHROME_BUILD_ID=""' \ 153 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 154 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 155 '-D_DEBUG' 156 157 158# Include paths placed before CFLAGS/CPPFLAGS 159LOCAL_C_INCLUDES_Debug := \ 160 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 161 $(gyp_shared_intermediate_dir) \ 162 $(LOCAL_PATH)/third_party/sfntly/cpp/src \ 163 $(LOCAL_PATH) \ 164 $(PWD)/external/icu/icu4c/source/common \ 165 $(PWD)/external/icu/icu4c/source/i18n \ 166 $(PWD)/frameworks/wilhelm/include \ 167 $(PWD)/bionic \ 168 $(PWD)/external/stlport/stlport 169 170 171# Flags passed to only C++ (and not C) files. 172LOCAL_CPPFLAGS_Debug := \ 173 -fno-exceptions \ 174 -fno-rtti \ 175 -fno-threadsafe-statics \ 176 -fvisibility-inlines-hidden \ 177 -Wsign-compare \ 178 -std=gnu++11 \ 179 -Wno-narrowing \ 180 -Wno-literal-suffix \ 181 -Wno-non-virtual-dtor \ 182 -Wno-sign-promo 183 184 185# Flags passed to both C and C++ files. 186MY_CFLAGS_Release := \ 187 --param=ssp-buffer-size=4 \ 188 -Werror \ 189 -fno-strict-aliasing \ 190 -Wall \ 191 -Wno-unused-parameter \ 192 -Wno-missing-field-initializers \ 193 -fvisibility=hidden \ 194 -pipe \ 195 -fPIC \ 196 -Wno-unused-local-typedefs \ 197 -msse2 \ 198 -mfpmath=sse \ 199 -mmmx \ 200 -m32 \ 201 -ffunction-sections \ 202 -funwind-tables \ 203 -g \ 204 -fno-short-enums \ 205 -finline-limit=64 \ 206 -Wa,--noexecstack \ 207 -U_FORTIFY_SOURCE \ 208 -Wno-extra \ 209 -Wno-ignored-qualifiers \ 210 -Wno-type-limits \ 211 -Wno-unused-but-set-variable \ 212 -fno-stack-protector \ 213 -Os \ 214 -fno-ident \ 215 -fdata-sections \ 216 -ffunction-sections \ 217 -fomit-frame-pointer \ 218 -funwind-tables 219 220MY_DEFS_Release := \ 221 '-DV8_DEPRECATION_WARNINGS' \ 222 '-D_FILE_OFFSET_BITS=64' \ 223 '-DNO_TCMALLOC' \ 224 '-DDISABLE_NACL' \ 225 '-DCHROMIUM_BUILD' \ 226 '-DUSE_LIBJPEG_TURBO=1' \ 227 '-DENABLE_WEBRTC=1' \ 228 '-DUSE_PROPRIETARY_CODECS' \ 229 '-DENABLE_BROWSER_CDMS' \ 230 '-DENABLE_CONFIGURATION_POLICY' \ 231 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 232 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 233 '-DENABLE_EGLIMAGE=1' \ 234 '-DCLD_VERSION=1' \ 235 '-DENABLE_PRINTING=1' \ 236 '-DENABLE_MANAGED_USERS=1' \ 237 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 238 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 239 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 240 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 241 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 242 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 243 '-DVIDEO_HOLE=1' \ 244 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 245 '-DSFNTLY_NO_EXCEPTION' \ 246 '-DU_USING_ICU_NAMESPACE=0' \ 247 '-DU_ENABLE_DYLOAD=0' \ 248 '-DUSE_OPENSSL=1' \ 249 '-DUSE_OPENSSL_CERTS=1' \ 250 '-D__STDC_CONSTANT_MACROS' \ 251 '-D__STDC_FORMAT_MACROS' \ 252 '-DANDROID' \ 253 '-D__GNU_SOURCE=1' \ 254 '-DUSE_STLPORT=1' \ 255 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 256 '-DCHROME_BUILD_ID=""' \ 257 '-DNDEBUG' \ 258 '-DNVALGRIND' \ 259 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 260 '-D_FORTIFY_SOURCE=2' 261 262 263# Include paths placed before CFLAGS/CPPFLAGS 264LOCAL_C_INCLUDES_Release := \ 265 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 266 $(gyp_shared_intermediate_dir) \ 267 $(LOCAL_PATH)/third_party/sfntly/cpp/src \ 268 $(LOCAL_PATH) \ 269 $(PWD)/external/icu/icu4c/source/common \ 270 $(PWD)/external/icu/icu4c/source/i18n \ 271 $(PWD)/frameworks/wilhelm/include \ 272 $(PWD)/bionic \ 273 $(PWD)/external/stlport/stlport 274 275 276# Flags passed to only C++ (and not C) files. 277LOCAL_CPPFLAGS_Release := \ 278 -fno-exceptions \ 279 -fno-rtti \ 280 -fno-threadsafe-statics \ 281 -fvisibility-inlines-hidden \ 282 -Wsign-compare \ 283 -std=gnu++11 \ 284 -Wno-narrowing \ 285 -Wno-literal-suffix \ 286 -Wno-non-virtual-dtor \ 287 -Wno-sign-promo 288 289 290LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 291LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 292LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 293LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 294### Rules for final target. 295 296LOCAL_SHARED_LIBRARIES := \ 297 libstlport \ 298 libdl 299 300# Add target alias to "gyp_all_modules" target. 301.PHONY: gyp_all_modules 302gyp_all_modules: third_party_sfntly_sfntly_gyp 303 304# Alias gyp target name. 305.PHONY: sfntly 306sfntly: third_party_sfntly_sfntly_gyp 307 308include $(BUILD_STATIC_LIBRARY) 309