[graphite] Split gpu_shared into its own gn target.
This makes sure we only compile the shared objs once when we have two targets (gpu and graphite) that use them. Bug: skia:12466 Change-Id: Ife0b6ae35c797a6a9ee8311d1b6088dca2a978d2 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/467520 Reviewed-by: Ben Wagner <bungeman@google.com> Commit-Queue: Greg Daniel <egdaniel@google.com>
This commit is contained in:
parent
37459e71a5
commit
292bbb13d8
10
BUILD.gn
10
BUILD.gn
@ -825,6 +825,12 @@ if (skia_compile_sksl_tests) {
|
||||
}
|
||||
}
|
||||
|
||||
optional("gpu_shared") {
|
||||
enabled = skia_enable_gpu || skia_enable_graphite
|
||||
|
||||
sources = skia_shared_gpu_sources
|
||||
}
|
||||
|
||||
optional("gpu") {
|
||||
enabled = skia_enable_gpu
|
||||
deps = [
|
||||
@ -834,6 +840,7 @@ optional("gpu") {
|
||||
":compile_sksl_skvm_tests",
|
||||
":compile_sksl_spirv_tests",
|
||||
":dehydrate_sksl",
|
||||
":gpu_shared",
|
||||
":run_sksllex",
|
||||
]
|
||||
if (skia_generate_workarounds) {
|
||||
@ -843,7 +850,7 @@ optional("gpu") {
|
||||
public_configs = []
|
||||
public_deps = []
|
||||
|
||||
sources = skia_gpu_sources + skia_shared_gpu_sources + skia_sksl_gpu_sources
|
||||
sources = skia_gpu_sources + skia_sksl_gpu_sources
|
||||
if (skia_enable_skgpu_v2) {
|
||||
sources += skia_skgpu_v2_sources
|
||||
}
|
||||
@ -1043,6 +1050,7 @@ optional("graphite") {
|
||||
frameworks = []
|
||||
|
||||
enabled = skia_enable_graphite
|
||||
deps = [ ":gpu_shared" ]
|
||||
public_defines = [ "SK_GRAPHITE_ENABLED" ]
|
||||
public = skia_graphite_public
|
||||
sources = skia_graphite_sources + skia_shared_gpu_sources
|
||||
|
Loading…
Reference in New Issue
Block a user