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