"src/pdf",
"src/ports",
"src/sfnt",
+ "src/sksl",
"src/utils",
"src/utils/win",
"third_party/etc1",
"scope",
[ "gyp/pdf.gypi" ])
+sksl_gypi = exec_script("gn/gypi_to_gn.py",
+ [
+ rebase_path("gyp/sksl.gypi"),
+ "--replace=<(skia_include_path)=include",
+ "--replace=<(skia_src_path)=src",
+ ],
+ "scope",
+ [ "gyp/sksl.gypi" ])
+
utils_gypi = exec_script("gn/gypi_to_gn.py",
[
rebase_path("gyp/utils.gypi"),
sources += core_gypi.sources
sources += effects_gypi.sources
sources += gpu_gypi.skgpu_sources
+ sources += sksl_gypi.sources
sources += utils_gypi.sources
sources += [
"src/android/SkBitmapRegionCodec.cpp",
public_include_dirs = [ "tests" ]
sources = tests_sources - [
rebase_path("tests/PathOpsSkpClipTest.cpp"), # alternate main
- rebase_path("tests/SkSLErrorTest.cpp"), # TODO: make work
- rebase_path("tests/SkSLGLSLTest.cpp"), # TODO: make work
rebase_path("tests/SkpSkGrTest.cpp"), # doesn't compile
rebase_path("tests/skia_test.cpp"), # alternate main
]
# found in the LICENSE file.
{
'include_dirs': [
- '../include',
- '../include/config',
- '../include/core',
- '../include/private',
- '../src/sksl',
+ '<(skia_include_path)/config',
+ '<(skia_include_path)/core',
+ '<(skia_include_path)/private',
+ '<(skia_src_path)/sksl',
],
'sources': [
- '../src/sksl/SkSLCompiler.cpp',
- '../src/sksl/SkSLIRGenerator.cpp',
- '../src/sksl/SkSLParser.cpp',
- '../src/sksl/SkSLGLSLCodeGenerator.cpp',
- '../src/sksl/SkSLSPIRVCodeGenerator.cpp',
- '../src/sksl/SkSLUtil.cpp',
- '../src/sksl/ir/SkSLSymbolTable.cpp',
- '../src/sksl/ir/SkSLType.cpp',
+ '<(skia_src_path)/sksl/SkSLCompiler.cpp',
+ '<(skia_src_path)/sksl/SkSLIRGenerator.cpp',
+ '<(skia_src_path)/sksl/SkSLParser.cpp',
+ '<(skia_src_path)/sksl/SkSLGLSLCodeGenerator.cpp',
+ '<(skia_src_path)/sksl/SkSLSPIRVCodeGenerator.cpp',
+ '<(skia_src_path)/sksl/SkSLUtil.cpp',
+ '<(skia_src_path)/sksl/ir/SkSLSymbolTable.cpp',
+ '<(skia_src_path)/sksl/ir/SkSLType.cpp',
],
}