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 -fstack-protector \ 83 --param=ssp-buffer-size=4 \ 84 -Werror \ 85 -fno-strict-aliasing \ 86 -Wall \ 87 -Wno-unused-parameter \ 88 -Wno-missing-field-initializers \ 89 -fvisibility=hidden \ 90 -pipe \ 91 -fPIC \ 92 -Wno-unused-local-typedefs \ 93 -fno-tree-sra \ 94 -fno-caller-saves \ 95 -Wno-psabi \ 96 -fno-partial-inlining \ 97 -fno-early-inlining \ 98 -fno-tree-copy-prop \ 99 -fno-tree-loop-optimize \ 100 -fno-move-loop-invariants \ 101 -ffunction-sections \ 102 -funwind-tables \ 103 -g \ 104 -fstack-protector \ 105 -fno-short-enums \ 106 -finline-limit=64 \ 107 -Wa,--noexecstack \ 108 -U_FORTIFY_SOURCE \ 109 -Wno-extra \ 110 -Wno-ignored-qualifiers \ 111 -Wno-type-limits \ 112 -Wno-unused-but-set-variable \ 113 -Os \ 114 -g \ 115 -gdwarf-4 \ 116 -fdata-sections \ 117 -ffunction-sections \ 118 -fomit-frame-pointer \ 119 -funwind-tables 120 121MY_DEFS_Debug := \ 122 '-DV8_DEPRECATION_WARNINGS' \ 123 '-D_FILE_OFFSET_BITS=64' \ 124 '-DNO_TCMALLOC' \ 125 '-DDISABLE_NACL' \ 126 '-DCHROMIUM_BUILD' \ 127 '-DUSE_LIBJPEG_TURBO=1' \ 128 '-DENABLE_WEBRTC=1' \ 129 '-DUSE_PROPRIETARY_CODECS' \ 130 '-DENABLE_BROWSER_CDMS' \ 131 '-DENABLE_CONFIGURATION_POLICY' \ 132 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 133 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 134 '-DENABLE_EGLIMAGE=1' \ 135 '-DCLD_VERSION=1' \ 136 '-DENABLE_PRINTING=1' \ 137 '-DENABLE_MANAGED_USERS=1' \ 138 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 139 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 140 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 141 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 142 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 143 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 144 '-DVIDEO_HOLE=1' \ 145 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 146 '-DSFNTLY_NO_EXCEPTION' \ 147 '-DU_USING_ICU_NAMESPACE=0' \ 148 '-DU_ENABLE_DYLOAD=0' \ 149 '-DUSE_OPENSSL=1' \ 150 '-DUSE_OPENSSL_CERTS=1' \ 151 '-D__STDC_CONSTANT_MACROS' \ 152 '-D__STDC_FORMAT_MACROS' \ 153 '-DANDROID' \ 154 '-D__GNU_SOURCE=1' \ 155 '-DUSE_STLPORT=1' \ 156 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 157 '-DCHROME_BUILD_ID=""' \ 158 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 159 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 160 '-D_DEBUG' 161 162 163# Include paths placed before CFLAGS/CPPFLAGS 164LOCAL_C_INCLUDES_Debug := \ 165 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 166 $(gyp_shared_intermediate_dir) \ 167 $(LOCAL_PATH)/third_party/sfntly/cpp/src \ 168 $(LOCAL_PATH) \ 169 $(PWD)/external/icu/icu4c/source/common \ 170 $(PWD)/external/icu/icu4c/source/i18n \ 171 $(PWD)/frameworks/wilhelm/include \ 172 $(PWD)/bionic \ 173 $(PWD)/external/stlport/stlport 174 175 176# Flags passed to only C++ (and not C) files. 177LOCAL_CPPFLAGS_Debug := \ 178 -fno-exceptions \ 179 -fno-rtti \ 180 -fno-threadsafe-statics \ 181 -fvisibility-inlines-hidden \ 182 -Wsign-compare \ 183 -Wno-abi \ 184 -std=gnu++11 \ 185 -Wno-narrowing \ 186 -Wno-literal-suffix \ 187 -Wno-non-virtual-dtor \ 188 -Wno-sign-promo 189 190 191# Flags passed to both C and C++ files. 192MY_CFLAGS_Release := \ 193 -fstack-protector \ 194 --param=ssp-buffer-size=4 \ 195 -Werror \ 196 -fno-strict-aliasing \ 197 -Wall \ 198 -Wno-unused-parameter \ 199 -Wno-missing-field-initializers \ 200 -fvisibility=hidden \ 201 -pipe \ 202 -fPIC \ 203 -Wno-unused-local-typedefs \ 204 -fno-tree-sra \ 205 -fno-caller-saves \ 206 -Wno-psabi \ 207 -fno-partial-inlining \ 208 -fno-early-inlining \ 209 -fno-tree-copy-prop \ 210 -fno-tree-loop-optimize \ 211 -fno-move-loop-invariants \ 212 -ffunction-sections \ 213 -funwind-tables \ 214 -g \ 215 -fstack-protector \ 216 -fno-short-enums \ 217 -finline-limit=64 \ 218 -Wa,--noexecstack \ 219 -U_FORTIFY_SOURCE \ 220 -Wno-extra \ 221 -Wno-ignored-qualifiers \ 222 -Wno-type-limits \ 223 -Wno-unused-but-set-variable \ 224 -Os \ 225 -fno-ident \ 226 -fdata-sections \ 227 -ffunction-sections \ 228 -fomit-frame-pointer \ 229 -funwind-tables 230 231MY_DEFS_Release := \ 232 '-DV8_DEPRECATION_WARNINGS' \ 233 '-D_FILE_OFFSET_BITS=64' \ 234 '-DNO_TCMALLOC' \ 235 '-DDISABLE_NACL' \ 236 '-DCHROMIUM_BUILD' \ 237 '-DUSE_LIBJPEG_TURBO=1' \ 238 '-DENABLE_WEBRTC=1' \ 239 '-DUSE_PROPRIETARY_CODECS' \ 240 '-DENABLE_BROWSER_CDMS' \ 241 '-DENABLE_CONFIGURATION_POLICY' \ 242 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 243 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 244 '-DENABLE_EGLIMAGE=1' \ 245 '-DCLD_VERSION=1' \ 246 '-DENABLE_PRINTING=1' \ 247 '-DENABLE_MANAGED_USERS=1' \ 248 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 249 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 250 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 251 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 252 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 253 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 254 '-DVIDEO_HOLE=1' \ 255 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 256 '-DSFNTLY_NO_EXCEPTION' \ 257 '-DU_USING_ICU_NAMESPACE=0' \ 258 '-DU_ENABLE_DYLOAD=0' \ 259 '-DUSE_OPENSSL=1' \ 260 '-DUSE_OPENSSL_CERTS=1' \ 261 '-D__STDC_CONSTANT_MACROS' \ 262 '-D__STDC_FORMAT_MACROS' \ 263 '-DANDROID' \ 264 '-D__GNU_SOURCE=1' \ 265 '-DUSE_STLPORT=1' \ 266 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 267 '-DCHROME_BUILD_ID=""' \ 268 '-DNDEBUG' \ 269 '-DNVALGRIND' \ 270 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 271 '-D_FORTIFY_SOURCE=2' 272 273 274# Include paths placed before CFLAGS/CPPFLAGS 275LOCAL_C_INCLUDES_Release := \ 276 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 277 $(gyp_shared_intermediate_dir) \ 278 $(LOCAL_PATH)/third_party/sfntly/cpp/src \ 279 $(LOCAL_PATH) \ 280 $(PWD)/external/icu/icu4c/source/common \ 281 $(PWD)/external/icu/icu4c/source/i18n \ 282 $(PWD)/frameworks/wilhelm/include \ 283 $(PWD)/bionic \ 284 $(PWD)/external/stlport/stlport 285 286 287# Flags passed to only C++ (and not C) files. 288LOCAL_CPPFLAGS_Release := \ 289 -fno-exceptions \ 290 -fno-rtti \ 291 -fno-threadsafe-statics \ 292 -fvisibility-inlines-hidden \ 293 -Wsign-compare \ 294 -Wno-abi \ 295 -std=gnu++11 \ 296 -Wno-narrowing \ 297 -Wno-literal-suffix \ 298 -Wno-non-virtual-dtor \ 299 -Wno-sign-promo 300 301 302LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 303LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 304LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 305LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 306### Rules for final target. 307 308LOCAL_SHARED_LIBRARIES := \ 309 libstlport \ 310 libdl 311 312# Add target alias to "gyp_all_modules" target. 313.PHONY: gyp_all_modules 314gyp_all_modules: third_party_sfntly_sfntly_gyp 315 316# Alias gyp target name. 317.PHONY: sfntly 318sfntly: third_party_sfntly_sfntly_gyp 319 320include $(BUILD_STATIC_LIBRARY) 321