Move skslc dependencies into a dedicated list.
I'm considering migrating SkSL precompilation/dehydration into a separate binary from skslc. It would need the exact same set of Skia dependencies. So let's factor them out. Change-Id: I9b000ef058f7253e142cf5a8a603e468beb4d6f6 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/526020 Commit-Queue: John Stiles <johnstiles@google.com> Auto-Submit: John Stiles <johnstiles@google.com> Reviewed-by: Brian Osman <brianosman@google.com> Commit-Queue: Brian Osman <brianosman@google.com>
This commit is contained in:
parent
674eb326f4
commit
121d4a2e4b
29
BUILD.gn
29
BUILD.gn
@ -637,33 +637,8 @@ if (skia_compile_sksl_tests) {
|
||||
"SK_ENABLE_SPIRV_CROSS",
|
||||
"SK_ENABLE_SPIRV_VALIDATION",
|
||||
]
|
||||
sources = [
|
||||
"src/core/SkArenaAlloc.cpp",
|
||||
"src/core/SkBlockAllocator.cpp",
|
||||
"src/core/SkCpu.cpp",
|
||||
"src/core/SkData.cpp",
|
||||
"src/core/SkHalf.cpp",
|
||||
"src/core/SkMalloc.cpp",
|
||||
"src/core/SkMath.cpp",
|
||||
"src/core/SkMatrixInvert.cpp",
|
||||
"src/core/SkSemaphore.cpp",
|
||||
"src/core/SkStream.cpp",
|
||||
"src/core/SkString.cpp",
|
||||
"src/core/SkStringUtils.cpp",
|
||||
"src/core/SkThreadID.cpp",
|
||||
"src/core/SkUtils.cpp",
|
||||
"src/core/SkVM.cpp",
|
||||
"src/gpu/GrMemoryPool.cpp",
|
||||
"src/ports/SkMemory_malloc.cpp",
|
||||
"src/ports/SkOSFile_stdio.cpp",
|
||||
"src/sksl/SkSLMain.cpp",
|
||||
"src/utils/SkJSON.cpp",
|
||||
"src/utils/SkJSONWriter.cpp",
|
||||
"src/utils/SkParse.cpp",
|
||||
"src/utils/SkShaderUtils.cpp",
|
||||
"src/utils/SkUTF.cpp",
|
||||
"src/utils/SkVMVisualizer.cpp",
|
||||
]
|
||||
sources = skslc_deps
|
||||
sources += [ "src/sksl/SkSLMain.cpp" ]
|
||||
libs = []
|
||||
if (is_win) {
|
||||
sources += [ "src/ports/SkOSFile_win.cpp" ]
|
||||
|
27
gn/sksl.gni
27
gn/sksl.gni
@ -226,3 +226,30 @@ skia_sksl_gpu_sources = [
|
||||
"$_src/sksl/codegen/SkSLSPIRVtoHLSL.cpp",
|
||||
"$_src/sksl/codegen/SkSLSPIRVtoHLSL.h",
|
||||
]
|
||||
|
||||
skslc_deps = [
|
||||
"$_src/core/SkArenaAlloc.cpp",
|
||||
"$_src/core/SkBlockAllocator.cpp",
|
||||
"$_src/core/SkCpu.cpp",
|
||||
"$_src/core/SkData.cpp",
|
||||
"$_src/core/SkHalf.cpp",
|
||||
"$_src/core/SkMalloc.cpp",
|
||||
"$_src/core/SkMath.cpp",
|
||||
"$_src/core/SkMatrixInvert.cpp",
|
||||
"$_src/core/SkSemaphore.cpp",
|
||||
"$_src/core/SkStream.cpp",
|
||||
"$_src/core/SkString.cpp",
|
||||
"$_src/core/SkStringUtils.cpp",
|
||||
"$_src/core/SkThreadID.cpp",
|
||||
"$_src/core/SkUtils.cpp",
|
||||
"$_src/core/SkVM.cpp",
|
||||
"$_src/gpu/GrMemoryPool.cpp",
|
||||
"$_src/ports/SkMemory_malloc.cpp",
|
||||
"$_src/ports/SkOSFile_stdio.cpp",
|
||||
"$_src/utils/SkJSON.cpp",
|
||||
"$_src/utils/SkJSONWriter.cpp",
|
||||
"$_src/utils/SkParse.cpp",
|
||||
"$_src/utils/SkShaderUtils.cpp",
|
||||
"$_src/utils/SkUTF.cpp",
|
||||
"$_src/utils/SkVMVisualizer.cpp",
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user