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 gyp_intermediate_dir := $(call local-intermediates-dir) 10 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared) 11 12 # Make sure our deps are built first. 13 GYP_TARGET_DEPENDENCIES := \ 14 $(call intermediates-dir-for,GYP,third_party_icu_icuuc_gyp)/icuuc.stamp 15 16 GYP_GENERATED_OUTPUTS := 17 18 # Make sure our deps and generated files are built first. 19 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 20 21 LOCAL_CPP_EXTENSION := .cc 22 LOCAL_GENERATED_SOURCES := 23 24 GYP_COPIED_SOURCE_ORIGIN_DIRS := 25 26 LOCAL_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. 81 MY_CFLAGS_Debug := \ 82 -fstack-protector \ 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 -fno-tree-sra \ 94 -fuse-ld=gold \ 95 -Wno-psabi \ 96 -ffunction-sections \ 97 -funwind-tables \ 98 -g \ 99 -fstack-protector \ 100 -fno-short-enums \ 101 -finline-limit=64 \ 102 -Wa,--noexecstack \ 103 -U_FORTIFY_SOURCE \ 104 -Wno-extra \ 105 -Wno-ignored-qualifiers \ 106 -Wno-type-limits \ 107 -Os \ 108 -g \ 109 -fomit-frame-pointer \ 110 -fdata-sections \ 111 -ffunction-sections 112 113 MY_DEFS_Debug := \ 114 '-DV8_DEPRECATION_WARNINGS' \ 115 '-D_FILE_OFFSET_BITS=64' \ 116 '-DNO_TCMALLOC' \ 117 '-DDISABLE_NACL' \ 118 '-DCHROMIUM_BUILD' \ 119 '-DUSE_LIBJPEG_TURBO=1' \ 120 '-DUSE_PROPRIETARY_CODECS' \ 121 '-DENABLE_CONFIGURATION_POLICY' \ 122 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 123 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 124 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 125 '-DUSE_OPENSSL=1' \ 126 '-DENABLE_EGLIMAGE=1' \ 127 '-DCLD_VERSION=1' \ 128 '-DENABLE_PRINTING=1' \ 129 '-DENABLE_MANAGED_USERS=1' \ 130 '-DSFNTLY_NO_EXCEPTION' \ 131 '-DU_USING_ICU_NAMESPACE=0' \ 132 '-D__STDC_CONSTANT_MACROS' \ 133 '-D__STDC_FORMAT_MACROS' \ 134 '-DANDROID' \ 135 '-D__GNU_SOURCE=1' \ 136 '-DUSE_STLPORT=1' \ 137 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 138 '-DCHROME_BUILD_ID=""' \ 139 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 140 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 141 '-D_DEBUG' 142 143 144 # Include paths placed before CFLAGS/CPPFLAGS 145 LOCAL_C_INCLUDES_Debug := \ 146 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 147 $(LOCAL_PATH)/third_party/sfntly/cpp/src \ 148 $(LOCAL_PATH) \ 149 $(PWD)/external/icu4c/common \ 150 $(PWD)/external/icu4c/i18n \ 151 $(PWD)/frameworks/wilhelm/include \ 152 $(PWD)/bionic \ 153 $(PWD)/external/stlport/stlport 154 155 156 # Flags passed to only C++ (and not C) files. 157 LOCAL_CPPFLAGS_Debug := \ 158 -fno-rtti \ 159 -fno-threadsafe-statics \ 160 -fvisibility-inlines-hidden \ 161 -Wsign-compare \ 162 -Wno-abi \ 163 -Wno-error=c++0x-compat \ 164 -Wno-non-virtual-dtor \ 165 -Wno-sign-promo 166 167 168 # Flags passed to both C and C++ files. 169 MY_CFLAGS_Release := \ 170 -fstack-protector \ 171 --param=ssp-buffer-size=4 \ 172 -Werror \ 173 -fno-exceptions \ 174 -fno-strict-aliasing \ 175 -Wall \ 176 -Wno-unused-parameter \ 177 -Wno-missing-field-initializers \ 178 -fvisibility=hidden \ 179 -pipe \ 180 -fPIC \ 181 -fno-tree-sra \ 182 -fuse-ld=gold \ 183 -Wno-psabi \ 184 -ffunction-sections \ 185 -funwind-tables \ 186 -g \ 187 -fstack-protector \ 188 -fno-short-enums \ 189 -finline-limit=64 \ 190 -Wa,--noexecstack \ 191 -U_FORTIFY_SOURCE \ 192 -Wno-extra \ 193 -Wno-ignored-qualifiers \ 194 -Wno-type-limits \ 195 -Os \ 196 -fno-ident \ 197 -fdata-sections \ 198 -ffunction-sections \ 199 -fomit-frame-pointer 200 201 MY_DEFS_Release := \ 202 '-DV8_DEPRECATION_WARNINGS' \ 203 '-D_FILE_OFFSET_BITS=64' \ 204 '-DNO_TCMALLOC' \ 205 '-DDISABLE_NACL' \ 206 '-DCHROMIUM_BUILD' \ 207 '-DUSE_LIBJPEG_TURBO=1' \ 208 '-DUSE_PROPRIETARY_CODECS' \ 209 '-DENABLE_CONFIGURATION_POLICY' \ 210 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 211 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 212 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 213 '-DUSE_OPENSSL=1' \ 214 '-DENABLE_EGLIMAGE=1' \ 215 '-DCLD_VERSION=1' \ 216 '-DENABLE_PRINTING=1' \ 217 '-DENABLE_MANAGED_USERS=1' \ 218 '-DSFNTLY_NO_EXCEPTION' \ 219 '-DU_USING_ICU_NAMESPACE=0' \ 220 '-D__STDC_CONSTANT_MACROS' \ 221 '-D__STDC_FORMAT_MACROS' \ 222 '-DANDROID' \ 223 '-D__GNU_SOURCE=1' \ 224 '-DUSE_STLPORT=1' \ 225 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 226 '-DCHROME_BUILD_ID=""' \ 227 '-DNDEBUG' \ 228 '-DNVALGRIND' \ 229 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 230 '-D_FORTIFY_SOURCE=2' 231 232 233 # Include paths placed before CFLAGS/CPPFLAGS 234 LOCAL_C_INCLUDES_Release := \ 235 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 236 $(LOCAL_PATH)/third_party/sfntly/cpp/src \ 237 $(LOCAL_PATH) \ 238 $(PWD)/external/icu4c/common \ 239 $(PWD)/external/icu4c/i18n \ 240 $(PWD)/frameworks/wilhelm/include \ 241 $(PWD)/bionic \ 242 $(PWD)/external/stlport/stlport 243 244 245 # Flags passed to only C++ (and not C) files. 246 LOCAL_CPPFLAGS_Release := \ 247 -fno-rtti \ 248 -fno-threadsafe-statics \ 249 -fvisibility-inlines-hidden \ 250 -Wsign-compare \ 251 -Wno-abi \ 252 -Wno-error=c++0x-compat \ 253 -Wno-non-virtual-dtor \ 254 -Wno-sign-promo 255 256 257 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 258 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 259 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 260 ### Rules for final target. 261 262 LOCAL_LDFLAGS_Debug := \ 263 -Wl,-z,now \ 264 -Wl,-z,relro \ 265 -Wl,-z,noexecstack \ 266 -fPIC \ 267 -Wl,-z,relro \ 268 -Wl,-z,now \ 269 -fuse-ld=gold \ 270 -nostdlib \ 271 -Wl,--no-undefined \ 272 -Wl,--exclude-libs=ALL \ 273 -Wl,--icf=safe \ 274 -Wl,--fatal-warnings \ 275 -Wl,--gc-sections \ 276 -Wl,--warn-shared-textrel \ 277 -Wl,-O1 \ 278 -Wl,--as-needed 279 280 281 LOCAL_LDFLAGS_Release := \ 282 -Wl,-z,now \ 283 -Wl,-z,relro \ 284 -Wl,-z,noexecstack \ 285 -fPIC \ 286 -Wl,-z,relro \ 287 -Wl,-z,now \ 288 -fuse-ld=gold \ 289 -nostdlib \ 290 -Wl,--no-undefined \ 291 -Wl,--exclude-libs=ALL \ 292 -Wl,--icf=safe \ 293 -Wl,-O1 \ 294 -Wl,--as-needed \ 295 -Wl,--gc-sections \ 296 -Wl,--fatal-warnings \ 297 -Wl,--warn-shared-textrel 298 299 300 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 301 302 LOCAL_STATIC_LIBRARIES := 303 304 # Enable grouping to fix circular references 305 LOCAL_GROUP_STATIC_LIBRARIES := true 306 307 LOCAL_SHARED_LIBRARIES := \ 308 libstlport \ 309 libdl 310 311 # Add target alias to "gyp_all_modules" target. 312 .PHONY: gyp_all_modules 313 gyp_all_modules: third_party_sfntly_sfntly_gyp 314 315 # Alias gyp target name. 316 .PHONY: sfntly 317 sfntly: third_party_sfntly_sfntly_gyp 318 319 include $(BUILD_STATIC_LIBRARY) 320