blob: 9c3a15b3cc476b20ca038822e1341460b3d6506f [file] [log] [blame]
Mike Kleina5fb6152016-10-26 14:17:04 -04001# Copyright 2016 Google Inc.
2#
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
5
6# Things are easiest for everyone if these source paths are absolute.
7_src = get_path_info("../src", "abspath")
Brian Osman061a5cf2020-06-24 14:50:25 -04008_include = get_path_info("../include", "abspath")
Mike Kleina5fb6152016-10-26 14:17:04 -04009
10skia_sksl_sources = [
Ethan Nicholasdaed2592021-03-04 14:30:25 -050011 "$_include/private/SkSLDefines.h",
Ethan Nicholas24c17722021-03-09 13:10:59 -050012 "$_include/private/SkSLIRNode.h",
Ethan Nicholasdaed2592021-03-04 14:30:25 -050013 "$_include/private/SkSLLayout.h",
14 "$_include/private/SkSLModifiers.h",
Ethan Nicholas24c17722021-03-09 13:10:59 -050015 "$_include/private/SkSLProgramElement.h",
Ethan Nicholasee49efc2021-04-09 15:33:53 -040016 "$_include/private/SkSLProgramKind.h",
Brian Osman1298bc42020-06-30 13:39:35 -040017 "$_include/private/SkSLSampleUsage.h",
Ethan Nicholas24c17722021-03-09 13:10:59 -050018 "$_include/private/SkSLStatement.h",
Ethan Nicholasdaed2592021-03-04 14:30:25 -050019 "$_include/private/SkSLString.h",
Ethan Nicholas24c17722021-03-09 13:10:59 -050020 "$_include/private/SkSLSymbol.h",
Ethan Nicholasdaed2592021-03-04 14:30:25 -050021 "$_include/sksl/DSL.h",
22 "$_include/sksl/DSLBlock.h",
23 "$_include/sksl/DSLCase.h",
24 "$_include/sksl/DSLCore.h",
25 "$_include/sksl/DSLErrorHandling.h",
26 "$_include/sksl/DSLExpression.h",
27 "$_include/sksl/DSLFunction.h",
Ethan Nicholasb22fcaf2021-05-10 16:17:22 -040028 "$_include/sksl/DSLLayout.h",
Ethan Nicholasdaed2592021-03-04 14:30:25 -050029 "$_include/sksl/DSLModifiers.h",
Ethan Nicholas624a5292021-04-16 14:54:43 -040030 "$_include/sksl/DSLRuntimeEffects.h",
Ethan Nicholasdaed2592021-03-04 14:30:25 -050031 "$_include/sksl/DSLStatement.h",
Ethan Nicholas2919bbd2021-06-10 12:07:34 -040032 "$_include/sksl/DSLSymbols.h",
Ethan Nicholasdaed2592021-03-04 14:30:25 -050033 "$_include/sksl/DSLType.h",
34 "$_include/sksl/DSLVar.h",
John Stilesf1058182020-06-02 12:29:20 -040035 "$_src/sksl/SkSLASTFile.h",
Ethan Nicholasfc994162019-06-06 10:04:27 -040036 "$_src/sksl/SkSLASTNode.cpp",
John Stilesf1058182020-06-02 12:29:20 -040037 "$_src/sksl/SkSLASTNode.h",
Michael Ludwig8f3a8362020-06-29 17:27:00 -040038 "$_src/sksl/SkSLAnalysis.cpp",
39 "$_src/sksl/SkSLAnalysis.h",
John Stilesac01aca2021-01-15 11:12:46 -050040 "$_src/sksl/SkSLBuiltinTypes.cpp",
41 "$_src/sksl/SkSLBuiltinTypes.h",
Mike Kleina5fb6152016-10-26 14:17:04 -040042 "$_src/sksl/SkSLCompiler.cpp",
John Stilesf1058182020-06-02 12:29:20 -040043 "$_src/sksl/SkSLCompiler.h",
John Stilesdc8ec312021-01-11 11:05:21 -050044 "$_src/sksl/SkSLConstantFolder.cpp",
45 "$_src/sksl/SkSLConstantFolder.h",
John Stiles54e7c052021-01-11 14:22:36 -050046 "$_src/sksl/SkSLContext.cpp",
John Stilesf1058182020-06-02 12:29:20 -040047 "$_src/sksl/SkSLContext.h",
Ethan Nicholasdd2fdea2021-07-20 15:23:04 -040048 "$_src/sksl/SkSLDSLParser.cpp",
49 "$_src/sksl/SkSLDSLParser.h",
Ethan Nicholasc18bb512020-07-28 14:46:53 -040050 "$_src/sksl/SkSLDehydrator.cpp",
John Stiles49a547f2020-10-06 16:14:37 -040051 "$_src/sksl/SkSLDehydrator.h",
John Stilesf1058182020-06-02 12:29:20 -040052 "$_src/sksl/SkSLErrorReporter.h",
John Stilesf1058182020-06-02 12:29:20 -040053 "$_src/sksl/SkSLFileOutputStream.h",
Ethan Nicholas5b5f0962017-09-11 13:50:14 -070054 "$_src/sksl/SkSLIRGenerator.cpp",
John Stilesf1058182020-06-02 12:29:20 -040055 "$_src/sksl/SkSLIRGenerator.h",
John Stiles44e96be2020-08-31 13:16:04 -040056 "$_src/sksl/SkSLInliner.cpp",
57 "$_src/sksl/SkSLInliner.h",
John Stilesf96cb712021-05-05 22:17:04 -040058 "$_src/sksl/SkSLIntrinsicList.h",
Ethan Nicholas5b5f0962017-09-11 13:50:14 -070059 "$_src/sksl/SkSLLexer.cpp",
John Stilesf1058182020-06-02 12:29:20 -040060 "$_src/sksl/SkSLLexer.h",
Ethan Nicholas6f4eee22021-01-11 12:37:42 -050061 "$_src/sksl/SkSLMangler.cpp",
John Stilesbb2ef922021-07-26 08:32:07 -040062 "$_src/sksl/SkSLMangler.h",
John Stilesf1058182020-06-02 12:29:20 -040063 "$_src/sksl/SkSLMemoryLayout.h",
John Stiles23e68662020-10-29 10:17:15 -040064 "$_src/sksl/SkSLMemoryPool.h",
John Stilesbb2ef922021-07-26 08:32:07 -040065 "$_src/sksl/SkSLModifiersPool.h",
Brian Osman00185012021-02-04 16:07:11 -050066 "$_src/sksl/SkSLOperators.cpp",
67 "$_src/sksl/SkSLOperators.h",
Brian Osman23f00d72020-12-02 09:27:10 -050068 "$_src/sksl/SkSLOutputStream.cpp",
69 "$_src/sksl/SkSLOutputStream.h",
John Stilesbb2ef922021-07-26 08:32:07 -040070 "$_src/sksl/SkSLParsedModule.h",
Ethan Nicholas5b5f0962017-09-11 13:50:14 -070071 "$_src/sksl/SkSLParser.cpp",
John Stilesf1058182020-06-02 12:29:20 -040072 "$_src/sksl/SkSLParser.h",
John Stiles5c7bb322020-10-22 11:09:15 -040073 "$_src/sksl/SkSLPool.cpp",
74 "$_src/sksl/SkSLPool.h",
John Stilesf1058182020-06-02 12:29:20 -040075 "$_src/sksl/SkSLPosition.h",
John Stilesbb2ef922021-07-26 08:32:07 -040076 "$_src/sksl/SkSLProgramSettings.h",
Ethan Nicholasc18bb512020-07-28 14:46:53 -040077 "$_src/sksl/SkSLRehydrator.cpp",
John Stiles49a547f2020-10-06 16:14:37 -040078 "$_src/sksl/SkSLRehydrator.h",
Brian Osman1298bc42020-06-30 13:39:35 -040079 "$_src/sksl/SkSLSampleUsage.cpp",
Ethan Nicholas0df1b042017-03-31 13:56:23 -040080 "$_src/sksl/SkSLString.cpp",
John Stilesf1058182020-06-02 12:29:20 -040081 "$_src/sksl/SkSLStringStream.h",
Mike Kleina5fb6152016-10-26 14:17:04 -040082 "$_src/sksl/SkSLUtil.cpp",
John Stilesf1058182020-06-02 12:29:20 -040083 "$_src/sksl/SkSLUtil.h",
John Stiles3738ef52021-04-13 10:41:57 -040084 "$_src/sksl/codegen/SkSLVMCodeGenerator.cpp",
85 "$_src/sksl/codegen/SkSLVMCodeGenerator.h",
Ethan Nicholasd6b6f3e2021-01-22 15:18:25 -050086 "$_src/sksl/dsl/DSLBlock.cpp",
Ethan Nicholasdaed2592021-03-04 14:30:25 -050087 "$_src/sksl/dsl/DSLCase.cpp",
Ethan Nicholas95046142021-01-07 10:57:27 -050088 "$_src/sksl/dsl/DSLCore.cpp",
89 "$_src/sksl/dsl/DSLExpression.cpp",
Ethan Nicholas1ff76092021-01-28 10:02:43 -050090 "$_src/sksl/dsl/DSLFunction.cpp",
Ethan Nicholasb22fcaf2021-05-10 16:17:22 -040091 "$_src/sksl/dsl/DSLLayout.cpp",
Ethan Nicholas624a5292021-04-16 14:54:43 -040092 "$_src/sksl/dsl/DSLRuntimeEffects.cpp",
Ethan Nicholasd6b6f3e2021-01-22 15:18:25 -050093 "$_src/sksl/dsl/DSLStatement.cpp",
Ethan Nicholas2919bbd2021-06-10 12:07:34 -040094 "$_src/sksl/dsl/DSLSymbols.cpp",
Ethan Nicholasb3d4e742021-01-08 11:42:25 -050095 "$_src/sksl/dsl/DSLType.cpp",
Ethan Nicholasbffe80a2021-01-11 15:42:44 -050096 "$_src/sksl/dsl/DSLVar.cpp",
Ethan Nicholasc3bb9e32021-02-02 11:51:03 -050097 "$_src/sksl/dsl/priv/DSLFPs.cpp",
Ethan Nicholas95046142021-01-07 10:57:27 -050098 "$_src/sksl/dsl/priv/DSLWriter.cpp",
John Stilesecdfc032021-02-01 10:18:20 -050099 "$_src/sksl/dsl/priv/DSLWriter.h",
John Stilese2aec432021-03-01 09:27:48 -0500100 "$_src/sksl/ir/SkSLBinaryExpression.cpp",
John Stiles49a5a182020-08-13 12:04:15 -0400101 "$_src/sksl/ir/SkSLBinaryExpression.h",
John Stilesbf16b6c2021-03-12 19:24:31 -0500102 "$_src/sksl/ir/SkSLBlock.cpp",
John Stiles49a5a182020-08-13 12:04:15 -0400103 "$_src/sksl/ir/SkSLBlock.h",
104 "$_src/sksl/ir/SkSLBoolLiteral.h",
105 "$_src/sksl/ir/SkSLBreakStatement.h",
Ethan Nicholasf70f0442020-09-29 12:41:35 -0400106 "$_src/sksl/ir/SkSLConstructor.cpp",
John Stiles49a5a182020-08-13 12:04:15 -0400107 "$_src/sksl/ir/SkSLConstructor.h",
John Stiles7384b372021-04-01 13:48:15 -0400108 "$_src/sksl/ir/SkSLConstructorArray.cpp",
109 "$_src/sksl/ir/SkSLConstructorArray.h",
John Stilese3ae9682021-08-05 10:35:01 -0400110 "$_src/sksl/ir/SkSLConstructorArrayCast.cpp",
111 "$_src/sksl/ir/SkSLConstructorArrayCast.h",
John Stiles8cad6372021-04-07 12:31:13 -0400112 "$_src/sksl/ir/SkSLConstructorCompound.cpp",
113 "$_src/sksl/ir/SkSLConstructorCompound.h",
114 "$_src/sksl/ir/SkSLConstructorCompoundCast.cpp",
115 "$_src/sksl/ir/SkSLConstructorCompoundCast.h",
John Stilese1182782021-03-30 22:09:37 -0400116 "$_src/sksl/ir/SkSLConstructorDiagonalMatrix.cpp",
117 "$_src/sksl/ir/SkSLConstructorDiagonalMatrix.h",
John Stiles5abb9e12021-04-06 13:47:19 -0400118 "$_src/sksl/ir/SkSLConstructorMatrixResize.cpp",
119 "$_src/sksl/ir/SkSLConstructorMatrixResize.h",
John Stilesfd7252f2021-04-04 22:24:40 -0400120 "$_src/sksl/ir/SkSLConstructorScalarCast.cpp",
121 "$_src/sksl/ir/SkSLConstructorScalarCast.h",
John Stiles2938eea2021-04-01 18:58:25 -0400122 "$_src/sksl/ir/SkSLConstructorSplat.cpp",
123 "$_src/sksl/ir/SkSLConstructorSplat.h",
John Stilesd47330f2021-04-08 23:25:52 -0400124 "$_src/sksl/ir/SkSLConstructorStruct.cpp",
125 "$_src/sksl/ir/SkSLConstructorStruct.h",
John Stiles49a5a182020-08-13 12:04:15 -0400126 "$_src/sksl/ir/SkSLContinueStatement.h",
127 "$_src/sksl/ir/SkSLDiscardStatement.h",
John Stilesea5822e2021-02-26 11:18:20 -0500128 "$_src/sksl/ir/SkSLDoStatement.cpp",
John Stiles49a5a182020-08-13 12:04:15 -0400129 "$_src/sksl/ir/SkSLDoStatement.h",
John Stiles49a5a182020-08-13 12:04:15 -0400130 "$_src/sksl/ir/SkSLExpression.h",
John Stiles3e5871c2021-02-25 20:52:03 -0500131 "$_src/sksl/ir/SkSLExpressionStatement.cpp",
John Stiles49a5a182020-08-13 12:04:15 -0400132 "$_src/sksl/ir/SkSLExpressionStatement.h",
133 "$_src/sksl/ir/SkSLExtension.h",
John Stiles71346462021-04-13 09:42:05 -0400134 "$_src/sksl/ir/SkSLExternalFunction.h",
John Stiles49a5a182020-08-13 12:04:15 -0400135 "$_src/sksl/ir/SkSLExternalFunctionCall.h",
Brian Osmanbe0b3b72021-01-06 14:27:35 -0500136 "$_src/sksl/ir/SkSLExternalFunctionReference.h",
John Stiles49a5a182020-08-13 12:04:15 -0400137 "$_src/sksl/ir/SkSLField.h",
John Stiles06d600f2021-03-08 09:18:21 -0500138 "$_src/sksl/ir/SkSLFieldAccess.cpp",
John Stiles49a5a182020-08-13 12:04:15 -0400139 "$_src/sksl/ir/SkSLFieldAccess.h",
140 "$_src/sksl/ir/SkSLFloatLiteral.h",
John Stilesb321a072021-02-25 16:24:19 -0500141 "$_src/sksl/ir/SkSLForStatement.cpp",
John Stiles49a5a182020-08-13 12:04:15 -0400142 "$_src/sksl/ir/SkSLForStatement.h",
John Stilescd7ba502021-03-19 10:54:59 -0400143 "$_src/sksl/ir/SkSLFunctionCall.cpp",
John Stiles49a5a182020-08-13 12:04:15 -0400144 "$_src/sksl/ir/SkSLFunctionCall.h",
Ethan Nicholas371f6e12021-05-04 14:30:02 -0400145 "$_src/sksl/ir/SkSLFunctionDeclaration.cpp",
John Stiles8e3b6be2020-10-13 11:14:08 -0400146 "$_src/sksl/ir/SkSLFunctionDeclaration.h",
John Stiles49a5a182020-08-13 12:04:15 -0400147 "$_src/sksl/ir/SkSLFunctionDefinition.h",
John Stiles569249b2020-11-03 12:18:22 -0500148 "$_src/sksl/ir/SkSLFunctionPrototype.h",
John Stiles49a5a182020-08-13 12:04:15 -0400149 "$_src/sksl/ir/SkSLFunctionReference.h",
John Stilescf3059e2021-02-25 14:27:02 -0500150 "$_src/sksl/ir/SkSLIfStatement.cpp",
John Stiles49a5a182020-08-13 12:04:15 -0400151 "$_src/sksl/ir/SkSLIfStatement.h",
John Stiles51d33982021-03-08 09:18:07 -0500152 "$_src/sksl/ir/SkSLIndexExpression.cpp",
John Stiles49a5a182020-08-13 12:04:15 -0400153 "$_src/sksl/ir/SkSLIndexExpression.h",
John Stiles98c1f822020-09-09 14:18:53 -0400154 "$_src/sksl/ir/SkSLInlineMarker.h",
John Stiles49a5a182020-08-13 12:04:15 -0400155 "$_src/sksl/ir/SkSLIntLiteral.h",
156 "$_src/sksl/ir/SkSLInterfaceBlock.h",
John Stiles49a5a182020-08-13 12:04:15 -0400157 "$_src/sksl/ir/SkSLModifiersDeclaration.h",
158 "$_src/sksl/ir/SkSLNop.h",
Ethan Nicholas549c6b82021-06-25 12:31:44 -0400159 "$_src/sksl/ir/SkSLPoison.h",
John Stiles52d3b012021-02-26 15:56:48 -0500160 "$_src/sksl/ir/SkSLPostfixExpression.cpp",
John Stiles49a5a182020-08-13 12:04:15 -0400161 "$_src/sksl/ir/SkSLPostfixExpression.h",
John Stiles71624de2020-11-05 11:56:03 -0500162 "$_src/sksl/ir/SkSLPrefixExpression.cpp",
John Stiles49a5a182020-08-13 12:04:15 -0400163 "$_src/sksl/ir/SkSLPrefixExpression.h",
164 "$_src/sksl/ir/SkSLProgram.h",
John Stiles49a5a182020-08-13 12:04:15 -0400165 "$_src/sksl/ir/SkSLReturnStatement.h",
Ethan Nicholas762466e2017-06-29 10:03:38 -0400166 "$_src/sksl/ir/SkSLSetting.cpp",
John Stilesf1058182020-06-02 12:29:20 -0400167 "$_src/sksl/ir/SkSLSetting.h",
John Stilesdc75a972020-11-25 16:24:55 -0500168 "$_src/sksl/ir/SkSLStructDefinition.h",
John Stiles49a5a182020-08-13 12:04:15 -0400169 "$_src/sksl/ir/SkSLSwitchCase.h",
John Stilese1d1b082021-02-23 13:44:36 -0500170 "$_src/sksl/ir/SkSLSwitchStatement.cpp",
John Stiles49a5a182020-08-13 12:04:15 -0400171 "$_src/sksl/ir/SkSLSwitchStatement.h",
John Stiles6e88e042021-02-19 14:09:38 -0500172 "$_src/sksl/ir/SkSLSwizzle.cpp",
John Stiles49a5a182020-08-13 12:04:15 -0400173 "$_src/sksl/ir/SkSLSwizzle.h",
John Stiles49a547f2020-10-06 16:14:37 -0400174 "$_src/sksl/ir/SkSLSymbolAlias.h",
Ethan Nicholasd4efe682019-08-29 16:10:13 -0400175 "$_src/sksl/ir/SkSLSymbolTable.cpp",
John Stilesf1058182020-06-02 12:29:20 -0400176 "$_src/sksl/ir/SkSLSymbolTable.h",
John Stiles90518f72021-02-26 20:44:54 -0500177 "$_src/sksl/ir/SkSLTernaryExpression.cpp",
John Stiles49a5a182020-08-13 12:04:15 -0400178 "$_src/sksl/ir/SkSLTernaryExpression.h",
Mike Kleina5fb6152016-10-26 14:17:04 -0400179 "$_src/sksl/ir/SkSLType.cpp",
John Stilesf1058182020-06-02 12:29:20 -0400180 "$_src/sksl/ir/SkSLType.h",
John Stiles49a5a182020-08-13 12:04:15 -0400181 "$_src/sksl/ir/SkSLTypeReference.h",
182 "$_src/sksl/ir/SkSLUnresolvedFunction.h",
John Stilese67bd132021-03-19 18:39:25 -0400183 "$_src/sksl/ir/SkSLVarDeclarations.cpp",
John Stiles49a5a182020-08-13 12:04:15 -0400184 "$_src/sksl/ir/SkSLVarDeclarations.h",
Ethan Nicholas5b9b0db2021-01-21 13:12:01 -0500185 "$_src/sksl/ir/SkSLVariable.cpp",
John Stiles49a5a182020-08-13 12:04:15 -0400186 "$_src/sksl/ir/SkSLVariable.h",
Ethan Nicholas8f7e28f2018-03-26 14:24:27 -0400187 "$_src/sksl/ir/SkSLVariableReference.cpp",
John Stilesf1058182020-06-02 12:29:20 -0400188 "$_src/sksl/ir/SkSLVariableReference.h",
John Stiles3738ef52021-04-13 10:41:57 -0400189 "$_src/sksl/spirv.h",
Mike Kleina5fb6152016-10-26 14:17:04 -0400190]
Ethan Nicholas762466e2017-06-29 10:03:38 -0400191
Brian Osmanfb32ddf2019-06-18 10:14:20 -0400192skia_sksl_gpu_sources = [
John Stiles3738ef52021-04-13 10:41:57 -0400193 "$_src/sksl/codegen/SkSLCodeGenerator.h",
194 "$_src/sksl/codegen/SkSLGLSLCodeGenerator.cpp",
195 "$_src/sksl/codegen/SkSLGLSLCodeGenerator.h",
John Stiles3738ef52021-04-13 10:41:57 -0400196 "$_src/sksl/codegen/SkSLMetalCodeGenerator.cpp",
197 "$_src/sksl/codegen/SkSLMetalCodeGenerator.h",
198 "$_src/sksl/codegen/SkSLPipelineStageCodeGenerator.cpp",
199 "$_src/sksl/codegen/SkSLPipelineStageCodeGenerator.h",
200 "$_src/sksl/codegen/SkSLSPIRVCodeGenerator.cpp",
201 "$_src/sksl/codegen/SkSLSPIRVCodeGenerator.h",
202 "$_src/sksl/codegen/SkSLSPIRVtoHLSL.cpp",
203 "$_src/sksl/codegen/SkSLSPIRVtoHLSL.h",
Brian Osmanfb32ddf2019-06-18 10:14:20 -0400204]