skia2/modules/skshaper/BUILD.gn

55 lines
1.3 KiB
Plaintext
Raw Normal View History

# Copyright 2018 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("skshaper.gni")
if (skia_enable_skshaper) {
config("public_config") {
include_dirs = [ "include" ]
defines = []
if (is_component_build) {
defines += [ "SKSHAPER_DLL" ]
}
if (skia_use_fonthost_mac) {
defines += [ "SK_SHAPER_CORETEXT_AVAILABLE" ]
}
if (skia_use_icu && skia_use_harfbuzz) {
defines += [ "SK_SHAPER_HARFBUZZ_AVAILABLE" ]
Reland #3 "ICU API: only in SkParagraph, simplified." This is the fix for google3 failure. This reverts commit e36a4667237dd4672f68cd4cb411d41881cd4be2. Reason for revert: Trying to fix google3 build brake Original change's description: > Revert "Reland "ICU API: only in SkParagraph, simplified (relanding reverted)."" > > This reverts commit 16fbc2477205aa06efb03e9bdaa0e4a5e94ee865. > > Reason for revert: Checking to see if this is blocking the G3 roll > > Original change's description: > > Reland "ICU API: only in SkParagraph, simplified (relanding reverted)." > > > > This reverts commit a30095d17c879f0af0bfa799b25c97bcacd0b4fc. > > > > Reason for revert: Fixing the build > > > > Original change's description: > > > Revert "ICU API: only in SkParagraph, simplified (relanding reverted)." > > > > > > This reverts commit 7479eda3b6d2884c089b62d9fc489574716ab3b7. > > > > > > Reason for revert: Breaking build > > > > > > Original change's description: > > > > ICU API: only in SkParagraph, simplified (relanding reverted). > > > > > > > > Reverted commit: https://skia-review.googlesource.com/c/skia/+/296128/ > > > > > > > > Change-Id: Iaf793bff94a6060579c7d6176d477e598c047be6 > > > > Reviewed-on: https://skia-review.googlesource.com/c/skia/+/303261 > > > > Reviewed-by: Mike Reed <reed@google.com> > > > > Commit-Queue: Julia Lavrova <jlavrova@google.com> > > > > > > TBR=reed@google.com,jlavrova@google.com > > > > > > Change-Id: Idd4c41e22aa59e24bdbd07f2fa5e9258c1bbb7a7 > > > No-Presubmit: true > > > No-Tree-Checks: true > > > No-Try: true > > > Reviewed-on: https://skia-review.googlesource.com/c/skia/+/303358 > > > Reviewed-by: Julia Lavrova <jlavrova@google.com> > > > Commit-Queue: Julia Lavrova <jlavrova@google.com> > > > > TBR=reed@google.com,jlavrova@google.com > > > > Change-Id: Iea5da4535ea2e388e8e632e6c556b66c8781631a > > Reviewed-on: https://skia-review.googlesource.com/c/skia/+/303377 > > Reviewed-by: Ben Wagner <bungeman@google.com> > > Reviewed-by: Julia Lavrova <jlavrova@google.com> > > Commit-Queue: Julia Lavrova <jlavrova@google.com> > > TBR=bungeman@google.com,reed@google.com,jlavrova@google.com > > Change-Id: I1edfecc56add670b251adf44892265088fd32c42 > No-Presubmit: true > No-Tree-Checks: true > No-Try: true > Reviewed-on: https://skia-review.googlesource.com/c/skia/+/304058 > Reviewed-by: Robert Phillips <robertphillips@google.com> > Commit-Queue: Robert Phillips <robertphillips@google.com> TBR=bungeman@google.com,robertphillips@google.com,reed@google.com,jlavrova@google.com Change-Id: Ife73aa21539e870d69bda6b5892979646732d778 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/304060 Commit-Queue: Julia Lavrova <jlavrova@google.com> Reviewed-by: Robert Phillips <robertphillips@google.com>
2020-07-20 17:32:03 +00:00
defines += [ "SK_UNICODE_AVAILABLE" ]
}
}
component("skshaper") {
check_includes = false
public_configs = [ ":public_config" ]
public = skia_shaper_public
deps = [ "../..:skia" ]
Reland #3 "ICU API: only in SkParagraph, simplified." This is the fix for google3 failure. This reverts commit e36a4667237dd4672f68cd4cb411d41881cd4be2. Reason for revert: Trying to fix google3 build brake Original change's description: > Revert "Reland "ICU API: only in SkParagraph, simplified (relanding reverted)."" > > This reverts commit 16fbc2477205aa06efb03e9bdaa0e4a5e94ee865. > > Reason for revert: Checking to see if this is blocking the G3 roll > > Original change's description: > > Reland "ICU API: only in SkParagraph, simplified (relanding reverted)." > > > > This reverts commit a30095d17c879f0af0bfa799b25c97bcacd0b4fc. > > > > Reason for revert: Fixing the build > > > > Original change's description: > > > Revert "ICU API: only in SkParagraph, simplified (relanding reverted)." > > > > > > This reverts commit 7479eda3b6d2884c089b62d9fc489574716ab3b7. > > > > > > Reason for revert: Breaking build > > > > > > Original change's description: > > > > ICU API: only in SkParagraph, simplified (relanding reverted). > > > > > > > > Reverted commit: https://skia-review.googlesource.com/c/skia/+/296128/ > > > > > > > > Change-Id: Iaf793bff94a6060579c7d6176d477e598c047be6 > > > > Reviewed-on: https://skia-review.googlesource.com/c/skia/+/303261 > > > > Reviewed-by: Mike Reed <reed@google.com> > > > > Commit-Queue: Julia Lavrova <jlavrova@google.com> > > > > > > TBR=reed@google.com,jlavrova@google.com > > > > > > Change-Id: Idd4c41e22aa59e24bdbd07f2fa5e9258c1bbb7a7 > > > No-Presubmit: true > > > No-Tree-Checks: true > > > No-Try: true > > > Reviewed-on: https://skia-review.googlesource.com/c/skia/+/303358 > > > Reviewed-by: Julia Lavrova <jlavrova@google.com> > > > Commit-Queue: Julia Lavrova <jlavrova@google.com> > > > > TBR=reed@google.com,jlavrova@google.com > > > > Change-Id: Iea5da4535ea2e388e8e632e6c556b66c8781631a > > Reviewed-on: https://skia-review.googlesource.com/c/skia/+/303377 > > Reviewed-by: Ben Wagner <bungeman@google.com> > > Reviewed-by: Julia Lavrova <jlavrova@google.com> > > Commit-Queue: Julia Lavrova <jlavrova@google.com> > > TBR=bungeman@google.com,reed@google.com,jlavrova@google.com > > Change-Id: I1edfecc56add670b251adf44892265088fd32c42 > No-Presubmit: true > No-Tree-Checks: true > No-Try: true > Reviewed-on: https://skia-review.googlesource.com/c/skia/+/304058 > Reviewed-by: Robert Phillips <robertphillips@google.com> > Commit-Queue: Robert Phillips <robertphillips@google.com> TBR=bungeman@google.com,robertphillips@google.com,reed@google.com,jlavrova@google.com Change-Id: Ife73aa21539e870d69bda6b5892979646732d778 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/304060 Commit-Queue: Julia Lavrova <jlavrova@google.com> Reviewed-by: Robert Phillips <robertphillips@google.com>
2020-07-20 17:32:03 +00:00
defines = [
"SKSHAPER_IMPLEMENTATION=1",
"SKUNICODE_IMPLEMENTATION=1",
]
sources = skia_shaper_primitive_sources
if (skia_use_fonthost_mac) {
sources += skia_shaper_coretext_sources
}
if (skia_use_icu && skia_use_harfbuzz) {
Reland #3 "ICU API: only in SkParagraph, simplified." This is the fix for google3 failure. This reverts commit e36a4667237dd4672f68cd4cb411d41881cd4be2. Reason for revert: Trying to fix google3 build brake Original change's description: > Revert "Reland "ICU API: only in SkParagraph, simplified (relanding reverted)."" > > This reverts commit 16fbc2477205aa06efb03e9bdaa0e4a5e94ee865. > > Reason for revert: Checking to see if this is blocking the G3 roll > > Original change's description: > > Reland "ICU API: only in SkParagraph, simplified (relanding reverted)." > > > > This reverts commit a30095d17c879f0af0bfa799b25c97bcacd0b4fc. > > > > Reason for revert: Fixing the build > > > > Original change's description: > > > Revert "ICU API: only in SkParagraph, simplified (relanding reverted)." > > > > > > This reverts commit 7479eda3b6d2884c089b62d9fc489574716ab3b7. > > > > > > Reason for revert: Breaking build > > > > > > Original change's description: > > > > ICU API: only in SkParagraph, simplified (relanding reverted). > > > > > > > > Reverted commit: https://skia-review.googlesource.com/c/skia/+/296128/ > > > > > > > > Change-Id: Iaf793bff94a6060579c7d6176d477e598c047be6 > > > > Reviewed-on: https://skia-review.googlesource.com/c/skia/+/303261 > > > > Reviewed-by: Mike Reed <reed@google.com> > > > > Commit-Queue: Julia Lavrova <jlavrova@google.com> > > > > > > TBR=reed@google.com,jlavrova@google.com > > > > > > Change-Id: Idd4c41e22aa59e24bdbd07f2fa5e9258c1bbb7a7 > > > No-Presubmit: true > > > No-Tree-Checks: true > > > No-Try: true > > > Reviewed-on: https://skia-review.googlesource.com/c/skia/+/303358 > > > Reviewed-by: Julia Lavrova <jlavrova@google.com> > > > Commit-Queue: Julia Lavrova <jlavrova@google.com> > > > > TBR=reed@google.com,jlavrova@google.com > > > > Change-Id: Iea5da4535ea2e388e8e632e6c556b66c8781631a > > Reviewed-on: https://skia-review.googlesource.com/c/skia/+/303377 > > Reviewed-by: Ben Wagner <bungeman@google.com> > > Reviewed-by: Julia Lavrova <jlavrova@google.com> > > Commit-Queue: Julia Lavrova <jlavrova@google.com> > > TBR=bungeman@google.com,reed@google.com,jlavrova@google.com > > Change-Id: I1edfecc56add670b251adf44892265088fd32c42 > No-Presubmit: true > No-Tree-Checks: true > No-Try: true > Reviewed-on: https://skia-review.googlesource.com/c/skia/+/304058 > Reviewed-by: Robert Phillips <robertphillips@google.com> > Commit-Queue: Robert Phillips <robertphillips@google.com> TBR=bungeman@google.com,robertphillips@google.com,reed@google.com,jlavrova@google.com Change-Id: Ife73aa21539e870d69bda6b5892979646732d778 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/304060 Commit-Queue: Julia Lavrova <jlavrova@google.com> Reviewed-by: Robert Phillips <robertphillips@google.com>
2020-07-20 17:32:03 +00:00
sources += skia_shaper_icu_sources
sources += skia_shaper_harfbuzz_sources
deps += [
"//third_party/harfbuzz",
"//third_party/icu",
]
}
configs += [
"../../:skia_private",
"../../third_party/icu/config:no_cxx",
]
}
} else {
group("skshaper") {
}
}