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:
John Stiles 2022-03-30 14:20:13 -04:00 committed by SkCQ
parent 674eb326f4
commit 121d4a2e4b
2 changed files with 29 additions and 27 deletions

View File

@ -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" ]

View File

@ -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",
]