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 \ 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 -EL \ 96 -mhard-float \ 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-uninitialized \ 176 -Wno-non-virtual-dtor \ 177 -Wno-sign-promo 178 179 180 LOCAL_FDO_SUPPORT_Debug := false 181 182 # Flags passed to both C and C++ files. 183 MY_CFLAGS_Release := \ 184 -fstack-protector \ 185 --param=ssp-buffer-size=4 \ 186 \ 187 -fno-exceptions \ 188 -fno-strict-aliasing \ 189 -Wall \ 190 -Wno-unused-parameter \ 191 -Wno-missing-field-initializers \ 192 -fvisibility=hidden \ 193 -pipe \ 194 -fPIC \ 195 -Wno-unused-local-typedefs \ 196 -EL \ 197 -mhard-float \ 198 -ffunction-sections \ 199 -funwind-tables \ 200 -g \ 201 -fstack-protector \ 202 -fno-short-enums \ 203 -finline-limit=64 \ 204 -Wa,--noexecstack \ 205 -U_FORTIFY_SOURCE \ 206 -Wno-extra \ 207 -Wno-ignored-qualifiers \ 208 -Wno-type-limits \ 209 -Wno-unused-but-set-variable \ 210 -Os \ 211 -fno-ident \ 212 -fdata-sections \ 213 -ffunction-sections \ 214 -fomit-frame-pointer \ 215 -funwind-tables 216 217 MY_DEFS_Release := \ 218 '-DV8_DEPRECATION_WARNINGS' \ 219 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 220 '-D_FILE_OFFSET_BITS=64' \ 221 '-DNO_TCMALLOC' \ 222 '-DDISABLE_NACL' \ 223 '-DCHROMIUM_BUILD' \ 224 '-DUSE_LIBJPEG_TURBO=1' \ 225 '-DENABLE_WEBRTC=1' \ 226 '-DUSE_PROPRIETARY_CODECS' \ 227 '-DENABLE_BROWSER_CDMS' \ 228 '-DENABLE_CONFIGURATION_POLICY' \ 229 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 230 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 231 '-DENABLE_EGLIMAGE=1' \ 232 '-DCLD_VERSION=1' \ 233 '-DENABLE_PRINTING=1' \ 234 '-DENABLE_MANAGED_USERS=1' \ 235 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 236 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 237 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 238 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 239 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 240 '-DVIDEO_HOLE=1' \ 241 '-DSFNTLY_NO_EXCEPTION' \ 242 '-DU_USING_ICU_NAMESPACE=0' \ 243 '-DUSE_OPENSSL=1' \ 244 '-DUSE_OPENSSL_CERTS=1' \ 245 '-D__STDC_CONSTANT_MACROS' \ 246 '-D__STDC_FORMAT_MACROS' \ 247 '-DANDROID' \ 248 '-D__GNU_SOURCE=1' \ 249 '-DUSE_STLPORT=1' \ 250 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 251 '-DCHROME_BUILD_ID=""' \ 252 '-DNDEBUG' \ 253 '-DNVALGRIND' \ 254 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 255 '-D_FORTIFY_SOURCE=2' 256 257 258 # Include paths placed before CFLAGS/CPPFLAGS 259 LOCAL_C_INCLUDES_Release := \ 260 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 261 $(gyp_shared_intermediate_dir) \ 262 $(LOCAL_PATH)/third_party/sfntly/cpp/src \ 263 $(LOCAL_PATH) \ 264 $(PWD)/external/icu/icu4c/source/common \ 265 $(PWD)/external/icu/icu4c/source/i18n \ 266 $(PWD)/frameworks/wilhelm/include \ 267 $(PWD)/bionic \ 268 $(PWD)/external/stlport/stlport 269 270 271 # Flags passed to only C++ (and not C) files. 272 LOCAL_CPPFLAGS_Release := \ 273 -fno-rtti \ 274 -fno-threadsafe-statics \ 275 -fvisibility-inlines-hidden \ 276 -Wsign-compare \ 277 -Wno-uninitialized \ 278 -Wno-non-virtual-dtor \ 279 -Wno-sign-promo 280 281 282 LOCAL_FDO_SUPPORT_Release := false 283 284 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 285 LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION)) 286 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 287 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 288 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 289 ### Rules for final target. 290 291 LOCAL_LDFLAGS_Debug := \ 292 -Wl,-z,now \ 293 -Wl,-z,relro \ 294 -Wl,--fatal-warnings \ 295 -Wl,-z,noexecstack \ 296 -fPIC \ 297 -EL \ 298 -Wl,--no-keep-memory \ 299 -nostdlib \ 300 -Wl,--no-undefined \ 301 -Wl,--exclude-libs=ALL \ 302 -Wl,--warn-shared-textrel \ 303 -Wl,-O1 \ 304 -Wl,--as-needed 305 306 307 LOCAL_LDFLAGS_Release := \ 308 -Wl,-z,now \ 309 -Wl,-z,relro \ 310 -Wl,--fatal-warnings \ 311 -Wl,-z,noexecstack \ 312 -fPIC \ 313 -EL \ 314 -Wl,--no-keep-memory \ 315 -nostdlib \ 316 -Wl,--no-undefined \ 317 -Wl,--exclude-libs=ALL \ 318 -Wl,-O1 \ 319 -Wl,--as-needed \ 320 -Wl,--gc-sections \ 321 -Wl,--warn-shared-textrel 322 323 324 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 325 326 LOCAL_STATIC_LIBRARIES := 327 328 # Enable grouping to fix circular references 329 LOCAL_GROUP_STATIC_LIBRARIES := true 330 331 LOCAL_SHARED_LIBRARIES := \ 332 libstlport \ 333 libdl 334 335 # Add target alias to "gyp_all_modules" target. 336 .PHONY: gyp_all_modules 337 gyp_all_modules: third_party_sfntly_sfntly_gyp 338 339 # Alias gyp target name. 340 .PHONY: sfntly 341 sfntly: third_party_sfntly_sfntly_gyp 342 343 include $(BUILD_STATIC_LIBRARY) 344