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 --param=ssp-buffer-size=4 \ 84 -Werror \ 85 -fno-exceptions \ 86 -fno-strict-aliasing \ 87 -Wall \ 88 -Wno-unused-parameter \ 89 -Wno-missing-field-initializers \ 90 -fvisibility=hidden \ 91 -pipe \ 92 -fPIC \ 93 -Wno-unused-local-typedefs \ 94 -msse2 \ 95 -mfpmath=sse \ 96 -mmmx \ 97 -m32 \ 98 -ffunction-sections \ 99 -funwind-tables \ 100 -g \ 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 -fno-stack-protector \ 110 -Os \ 111 -g \ 112 -fdata-sections \ 113 -ffunction-sections \ 114 -fomit-frame-pointer \ 115 -funwind-tables 116 117 MY_DEFS_Debug := \ 118 '-DV8_DEPRECATION_WARNINGS' \ 119 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 120 '-D_FILE_OFFSET_BITS=64' \ 121 '-DNO_TCMALLOC' \ 122 '-DDISABLE_NACL' \ 123 '-DCHROMIUM_BUILD' \ 124 '-DUSE_LIBJPEG_TURBO=1' \ 125 '-DENABLE_WEBRTC=1' \ 126 '-DUSE_PROPRIETARY_CODECS' \ 127 '-DENABLE_BROWSER_CDMS' \ 128 '-DENABLE_CONFIGURATION_POLICY' \ 129 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 130 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 131 '-DENABLE_EGLIMAGE=1' \ 132 '-DCLD_VERSION=1' \ 133 '-DENABLE_PRINTING=1' \ 134 '-DENABLE_MANAGED_USERS=1' \ 135 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 136 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 137 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 138 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 139 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 140 '-DVIDEO_HOLE=1' \ 141 '-DSFNTLY_NO_EXCEPTION' \ 142 '-DU_USING_ICU_NAMESPACE=0' \ 143 '-DUSE_OPENSSL=1' \ 144 '-DUSE_OPENSSL_CERTS=1' \ 145 '-D__STDC_CONSTANT_MACROS' \ 146 '-D__STDC_FORMAT_MACROS' \ 147 '-DANDROID' \ 148 '-D__GNU_SOURCE=1' \ 149 '-DUSE_STLPORT=1' \ 150 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 151 '-DCHROME_BUILD_ID=""' \ 152 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 153 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 154 '-D_DEBUG' 155 156 157 # Include paths placed before CFLAGS/CPPFLAGS 158 LOCAL_C_INCLUDES_Debug := \ 159 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 160 $(gyp_shared_intermediate_dir) \ 161 $(LOCAL_PATH)/third_party/sfntly/cpp/src \ 162 $(LOCAL_PATH) \ 163 $(PWD)/external/icu/icu4c/source/common \ 164 $(PWD)/external/icu/icu4c/source/i18n \ 165 $(PWD)/frameworks/wilhelm/include \ 166 $(PWD)/bionic \ 167 $(PWD)/external/stlport/stlport 168 169 170 # Flags passed to only C++ (and not C) files. 171 LOCAL_CPPFLAGS_Debug := \ 172 -fno-rtti \ 173 -fno-threadsafe-statics \ 174 -fvisibility-inlines-hidden \ 175 -Wsign-compare \ 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 --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 -msse2 \ 196 -mfpmath=sse \ 197 -mmmx \ 198 -m32 \ 199 -ffunction-sections \ 200 -funwind-tables \ 201 -g \ 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 -fno-stack-protector \ 211 -Os \ 212 -fno-ident \ 213 -fdata-sections \ 214 -ffunction-sections \ 215 -fomit-frame-pointer \ 216 -funwind-tables 217 218 MY_DEFS_Release := \ 219 '-DV8_DEPRECATION_WARNINGS' \ 220 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 221 '-D_FILE_OFFSET_BITS=64' \ 222 '-DNO_TCMALLOC' \ 223 '-DDISABLE_NACL' \ 224 '-DCHROMIUM_BUILD' \ 225 '-DUSE_LIBJPEG_TURBO=1' \ 226 '-DENABLE_WEBRTC=1' \ 227 '-DUSE_PROPRIETARY_CODECS' \ 228 '-DENABLE_BROWSER_CDMS' \ 229 '-DENABLE_CONFIGURATION_POLICY' \ 230 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 231 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 232 '-DENABLE_EGLIMAGE=1' \ 233 '-DCLD_VERSION=1' \ 234 '-DENABLE_PRINTING=1' \ 235 '-DENABLE_MANAGED_USERS=1' \ 236 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 237 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 238 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 239 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 240 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 241 '-DVIDEO_HOLE=1' \ 242 '-DSFNTLY_NO_EXCEPTION' \ 243 '-DU_USING_ICU_NAMESPACE=0' \ 244 '-DUSE_OPENSSL=1' \ 245 '-DUSE_OPENSSL_CERTS=1' \ 246 '-D__STDC_CONSTANT_MACROS' \ 247 '-D__STDC_FORMAT_MACROS' \ 248 '-DANDROID' \ 249 '-D__GNU_SOURCE=1' \ 250 '-DUSE_STLPORT=1' \ 251 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 252 '-DCHROME_BUILD_ID=""' \ 253 '-DNDEBUG' \ 254 '-DNVALGRIND' \ 255 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 256 '-D_FORTIFY_SOURCE=2' 257 258 259 # Include paths placed before CFLAGS/CPPFLAGS 260 LOCAL_C_INCLUDES_Release := \ 261 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 262 $(gyp_shared_intermediate_dir) \ 263 $(LOCAL_PATH)/third_party/sfntly/cpp/src \ 264 $(LOCAL_PATH) \ 265 $(PWD)/external/icu/icu4c/source/common \ 266 $(PWD)/external/icu/icu4c/source/i18n \ 267 $(PWD)/frameworks/wilhelm/include \ 268 $(PWD)/bionic \ 269 $(PWD)/external/stlport/stlport 270 271 272 # Flags passed to only C++ (and not C) files. 273 LOCAL_CPPFLAGS_Release := \ 274 -fno-rtti \ 275 -fno-threadsafe-statics \ 276 -fvisibility-inlines-hidden \ 277 -Wsign-compare \ 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 -m32 \ 298 -fuse-ld=gold \ 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 -m32 \ 314 -fuse-ld=gold \ 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