• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1load("//bazel:skia_rules.bzl", "exports_files_legacy", "skia_filegroup", "split_srcs_and_hdrs")
2
3package(
4    default_applicable_licenses = ["//:license"],
5)
6
7licenses(["notice"])
8
9exports_files_legacy()
10
11IR_FILES = [
12    "SkSLBinaryExpression.cpp",
13    "SkSLBinaryExpression.h",
14    "SkSLBlock.cpp",
15    "SkSLBlock.h",
16    "SkSLBreakStatement.h",
17    "SkSLChildCall.cpp",
18    "SkSLChildCall.h",
19    "SkSLConstructor.cpp",
20    "SkSLConstructor.h",
21    "SkSLConstructorArray.cpp",
22    "SkSLConstructorArray.h",
23    "SkSLConstructorArrayCast.cpp",
24    "SkSLConstructorArrayCast.h",
25    "SkSLConstructorCompound.cpp",
26    "SkSLConstructorCompound.h",
27    "SkSLConstructorCompoundCast.cpp",
28    "SkSLConstructorCompoundCast.h",
29    "SkSLConstructorDiagonalMatrix.cpp",
30    "SkSLConstructorDiagonalMatrix.h",
31    "SkSLConstructorMatrixResize.cpp",
32    "SkSLConstructorMatrixResize.h",
33    "SkSLConstructorScalarCast.cpp",
34    "SkSLConstructorScalarCast.h",
35    "SkSLConstructorSplat.cpp",
36    "SkSLConstructorSplat.h",
37    "SkSLConstructorStruct.cpp",
38    "SkSLConstructorStruct.h",
39    "SkSLContinueStatement.h",
40    "SkSLDiscardStatement.cpp",
41    "SkSLDiscardStatement.h",
42    "SkSLDoStatement.cpp",
43    "SkSLDoStatement.h",
44    "SkSLEmptyExpression.h",
45    "SkSLExpression.cpp",
46    "SkSLExpression.h",
47    "SkSLExpressionStatement.cpp",
48    "SkSLExpressionStatement.h",
49    "SkSLExtension.cpp",
50    "SkSLExtension.h",
51    "SkSLFieldAccess.cpp",
52    "SkSLFieldAccess.h",
53    "SkSLFieldSymbol.h",
54    "SkSLForStatement.cpp",
55    "SkSLForStatement.h",
56    "SkSLFunctionCall.cpp",
57    "SkSLFunctionCall.h",
58    "SkSLFunctionDeclaration.cpp",
59    "SkSLFunctionDeclaration.h",
60    "SkSLFunctionDefinition.cpp",
61    "SkSLFunctionDefinition.h",
62    "SkSLFunctionPrototype.h",
63    "SkSLFunctionReference.h",
64    "SkSLIfStatement.cpp",
65    "SkSLIfStatement.h",
66    "SkSLIndexExpression.cpp",
67    "SkSLIndexExpression.h",
68    "SkSLInterfaceBlock.cpp",
69    "SkSLInterfaceBlock.h",
70    "SkSLIRHelpers.h",
71    "SkSLIRNode.h",
72    "SkSLLayout.cpp",
73    "SkSLLayout.h",
74    "SkSLLiteral.cpp",
75    "SkSLLiteral.h",
76    "SkSLMethodReference.h",
77    "SkSLModifierFlags.cpp",
78    "SkSLModifierFlags.h",
79    "SkSLModifiers.h",
80    "SkSLModifiersDeclaration.cpp",
81    "SkSLModifiersDeclaration.h",
82    "SkSLNop.h",
83    "SkSLPoison.h",
84    "SkSLPostfixExpression.cpp",
85    "SkSLPostfixExpression.h",
86    "SkSLPrefixExpression.cpp",
87    "SkSLPrefixExpression.h",
88    "SkSLProgram.cpp",
89    "SkSLProgram.h",
90    "SkSLProgramElement.h",
91    "SkSLReturnStatement.h",
92    "SkSLSetting.cpp",
93    "SkSLSetting.h",
94    "SkSLStatement.h",
95    "SkSLStructDefinition.cpp",
96    "SkSLStructDefinition.h",
97    "SkSLSwitchCase.cpp",
98    "SkSLSwitchCase.h",
99    "SkSLSwitchStatement.cpp",
100    "SkSLSwitchStatement.h",
101    "SkSLSwizzle.cpp",
102    "SkSLSwizzle.h",
103    "SkSLSymbol.cpp",
104    "SkSLSymbol.h",
105    "SkSLSymbolTable.cpp",
106    "SkSLSymbolTable.h",
107    "SkSLTernaryExpression.cpp",
108    "SkSLTernaryExpression.h",
109    "SkSLType.cpp",
110    "SkSLType.h",
111    "SkSLTypeReference.cpp",
112    "SkSLTypeReference.h",
113    "SkSLVarDeclarations.cpp",
114    "SkSLVarDeclarations.h",
115    "SkSLVariable.cpp",
116    "SkSLVariable.h",
117    "SkSLVariableReference.cpp",
118    "SkSLVariableReference.h",
119]
120
121split_srcs_and_hdrs(
122    name = "ir",
123    files = IR_FILES,
124)
125
126skia_filegroup(
127    name = "srcs",
128    srcs = [":ir_srcs"],
129    visibility = ["//src/sksl:__pkg__"],
130)
131
132skia_filegroup(
133    name = "private_hdrs",
134    srcs = [":ir_hdrs"],
135    visibility = ["//src/sksl:__pkg__"],
136)
137