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