7d6fb2c92d
Once you have downloaded an android NDK, you can set the ndk GN arg to use it. E.g. my gn.args looks like: is_debug = false ndk = "/opt/android-ndk" This should be enough to get you going for an arm64 build. You ought to be able to tweak that to other architectures by changing target_cpu to "arm", "x86", "x86-64", etc. That won't quite work until I follow this up a bit, but the skeleton is there. This is enough to get me compiled, linked, and running to completion on my N5x. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2275983004 Review-Url: https://codereview.chromium.org/2275983004
74 lines
4.1 KiB
Plaintext
74 lines
4.1 KiB
Plaintext
# Copyright 2016 Google Inc.
|
|
#
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
declare_args() {
|
|
}
|
|
|
|
import("../third_party.gni")
|
|
|
|
third_party("sfntly") {
|
|
public_include_dirs = [ "../externals/sfntly/cpp/src" ]
|
|
defines = [ "SFNTLY_NO_EXCEPTION" ]
|
|
deps = [
|
|
"//third_party/icu",
|
|
]
|
|
sources = [
|
|
"../externals/sfntly/cpp/src/sample/chromium/font_subsetter.cc",
|
|
"../externals/sfntly/cpp/src/sample/chromium/subsetter_impl.cc",
|
|
"../externals/sfntly/cpp/src/sfntly/data/byte_array.cc",
|
|
"../externals/sfntly/cpp/src/sfntly/data/font_data.cc",
|
|
"../externals/sfntly/cpp/src/sfntly/data/font_input_stream.cc",
|
|
"../externals/sfntly/cpp/src/sfntly/data/font_output_stream.cc",
|
|
"../externals/sfntly/cpp/src/sfntly/data/growable_memory_byte_array.cc",
|
|
"../externals/sfntly/cpp/src/sfntly/data/memory_byte_array.cc",
|
|
"../externals/sfntly/cpp/src/sfntly/data/readable_font_data.cc",
|
|
"../externals/sfntly/cpp/src/sfntly/data/writable_font_data.cc",
|
|
"../externals/sfntly/cpp/src/sfntly/font.cc",
|
|
"../externals/sfntly/cpp/src/sfntly/font_factory.cc",
|
|
"../externals/sfntly/cpp/src/sfntly/port/file_input_stream.cc",
|
|
"../externals/sfntly/cpp/src/sfntly/port/lock.cc",
|
|
"../externals/sfntly/cpp/src/sfntly/port/memory_input_stream.cc",
|
|
"../externals/sfntly/cpp/src/sfntly/port/memory_output_stream.cc",
|
|
"../externals/sfntly/cpp/src/sfntly/table/bitmap/big_glyph_metrics.cc",
|
|
"../externals/sfntly/cpp/src/sfntly/table/bitmap/bitmap_glyph.cc",
|
|
"../externals/sfntly/cpp/src/sfntly/table/bitmap/bitmap_glyph_info.cc",
|
|
"../externals/sfntly/cpp/src/sfntly/table/bitmap/bitmap_size_table.cc",
|
|
"../externals/sfntly/cpp/src/sfntly/table/bitmap/composite_bitmap_glyph.cc",
|
|
"../externals/sfntly/cpp/src/sfntly/table/bitmap/ebdt_table.cc",
|
|
"../externals/sfntly/cpp/src/sfntly/table/bitmap/eblc_table.cc",
|
|
"../externals/sfntly/cpp/src/sfntly/table/bitmap/ebsc_table.cc",
|
|
"../externals/sfntly/cpp/src/sfntly/table/bitmap/glyph_metrics.cc",
|
|
"../externals/sfntly/cpp/src/sfntly/table/bitmap/index_sub_table.cc",
|
|
"../externals/sfntly/cpp/src/sfntly/table/bitmap/index_sub_table_format1.cc",
|
|
"../externals/sfntly/cpp/src/sfntly/table/bitmap/index_sub_table_format2.cc",
|
|
"../externals/sfntly/cpp/src/sfntly/table/bitmap/index_sub_table_format3.cc",
|
|
"../externals/sfntly/cpp/src/sfntly/table/bitmap/index_sub_table_format4.cc",
|
|
"../externals/sfntly/cpp/src/sfntly/table/bitmap/index_sub_table_format5.cc",
|
|
"../externals/sfntly/cpp/src/sfntly/table/bitmap/simple_bitmap_glyph.cc",
|
|
"../externals/sfntly/cpp/src/sfntly/table/bitmap/small_glyph_metrics.cc",
|
|
"../externals/sfntly/cpp/src/sfntly/table/byte_array_table_builder.cc",
|
|
"../externals/sfntly/cpp/src/sfntly/table/core/cmap_table.cc",
|
|
"../externals/sfntly/cpp/src/sfntly/table/core/font_header_table.cc",
|
|
"../externals/sfntly/cpp/src/sfntly/table/core/horizontal_device_metrics_table.cc",
|
|
"../externals/sfntly/cpp/src/sfntly/table/core/horizontal_header_table.cc",
|
|
"../externals/sfntly/cpp/src/sfntly/table/core/horizontal_metrics_table.cc",
|
|
"../externals/sfntly/cpp/src/sfntly/table/core/maximum_profile_table.cc",
|
|
"../externals/sfntly/cpp/src/sfntly/table/core/name_table.cc",
|
|
"../externals/sfntly/cpp/src/sfntly/table/core/os2_table.cc",
|
|
"../externals/sfntly/cpp/src/sfntly/table/font_data_table.cc",
|
|
"../externals/sfntly/cpp/src/sfntly/table/generic_table_builder.cc",
|
|
"../externals/sfntly/cpp/src/sfntly/table/header.cc",
|
|
"../externals/sfntly/cpp/src/sfntly/table/subtable.cc",
|
|
"../externals/sfntly/cpp/src/sfntly/table/table.cc",
|
|
"../externals/sfntly/cpp/src/sfntly/table/table_based_table_builder.cc",
|
|
"../externals/sfntly/cpp/src/sfntly/table/truetype/glyph_table.cc",
|
|
"../externals/sfntly/cpp/src/sfntly/table/truetype/loca_table.cc",
|
|
"../externals/sfntly/cpp/src/sfntly/tag.cc",
|
|
"../externals/sfntly/cpp/src/sfntly/tools/subsetter/glyph_table_subsetter.cc",
|
|
"../externals/sfntly/cpp/src/sfntly/tools/subsetter/subsetter.cc",
|
|
"../externals/sfntly/cpp/src/sfntly/tools/subsetter/table_subsetter_impl.cc",
|
|
]
|
|
}
|