40f3db41af
This is a reland of f4aab0584d
Original change's description:
> Experimental ICU runtime linking
>
> Introduce a build config option where ICU symbols are resolved at
> runtime, against existing system libs.
>
> Change-Id: I2325537438de0063fcc4a7c0f8411764cf550f09
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/431037
> Commit-Queue: Florin Malita <fmalita@chromium.org>
> Commit-Queue: Florin Malita <fmalita@google.com>
> Reviewed-by: Ben Wagner <bungeman@google.com>
Change-Id: I6f67a5eb842743d2486ccc4519e2d8cb9fac3458
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/433277
Reviewed-by: Ben Wagner <bungeman@google.com>
Commit-Queue: Florin Malita <fmalita@google.com>
47 lines
1.1 KiB
Plaintext
47 lines
1.1 KiB
Plaintext
# Copyright 2021 Google Inc.
|
|
#
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
import("../../gn/skia.gni")
|
|
import("skunicode.gni")
|
|
|
|
declare_args() {
|
|
skia_use_runtime_icu = false
|
|
}
|
|
|
|
if (skia_use_icu) {
|
|
config("public_config") {
|
|
include_dirs = [ "include" ]
|
|
defines = [ "SK_UNICODE_AVAILABLE" ]
|
|
if (is_component_build) {
|
|
defines += [ "SKUNICODE_DLL" ]
|
|
}
|
|
}
|
|
|
|
component("skunicode") {
|
|
check_includes = false
|
|
public_configs = [ ":public_config" ]
|
|
public = skia_unicode_public
|
|
deps = [ "../..:skia" ]
|
|
defines = [ "SKUNICODE_IMPLEMENTATION=1" ]
|
|
sources = skia_unicode_sources
|
|
|
|
# only available for Android at the moment
|
|
if (skia_use_runtime_icu && (is_android || is_linux)) {
|
|
sources += skia_unicode_runtime_icu_sources
|
|
deps += [ "//third_party/icu:headers" ]
|
|
} else {
|
|
sources += skia_unicode_builtin_icu_sources
|
|
deps += [ "//third_party/icu" ]
|
|
}
|
|
configs += [
|
|
"../../:skia_private",
|
|
"../../third_party/icu/config:no_cxx",
|
|
]
|
|
}
|
|
} else {
|
|
group("skunicode") {
|
|
}
|
|
}
|