blob: 303adf2b1a8a86a13423762cf11b77f94aecb366 [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",
Ethan Nicholasdaed2592021-03-04 14:30:25 -050025 "$_include/sksl/DSLExpression.h",
26 "$_include/sksl/DSLFunction.h",
Ethan Nicholasb22fcaf2021-05-10 16:17:22 -040027 "$_include/sksl/DSLLayout.h",
Ethan Nicholasdaed2592021-03-04 14:30:25 -050028 "$_include/sksl/DSLModifiers.h",
Ethan Nicholas624a5292021-04-16 14:54:43 -040029 "$_include/sksl/DSLRuntimeEffects.h",
Ethan Nicholasdaed2592021-03-04 14:30:25 -050030 "$_include/sksl/DSLStatement.h",
Ethan Nicholas2919bbd2021-06-10 12:07:34 -040031 "$_include/sksl/DSLSymbols.h",
Ethan Nicholasdaed2592021-03-04 14:30:25 -050032 "$_include/sksl/DSLType.h",
33 "$_include/sksl/DSLVar.h",
Ethan Nicholas4a5e22a2021-08-13 17:29:51 -040034 "$_include/sksl/SkSLErrorReporter.h",
John Stilesf1058182020-06-02 12:29:20 -040035 "$_src/sksl/SkSLASTFile.h",
John Stilesf1058182020-06-02 12:29:20 -040036 "$_src/sksl/SkSLASTNode.h",
Michael Ludwig8f3a8362020-06-29 17:27:00 -040037 "$_src/sksl/SkSLAnalysis.cpp",
38 "$_src/sksl/SkSLAnalysis.h",
John Stilesac01aca2021-01-15 11:12:46 -050039 "$_src/sksl/SkSLBuiltinTypes.cpp",
40 "$_src/sksl/SkSLBuiltinTypes.h",
Mike Kleina5fb6152016-10-26 14:17:04 -040041 "$_src/sksl/SkSLCompiler.cpp",
John Stilesf1058182020-06-02 12:29:20 -040042 "$_src/sksl/SkSLCompiler.h",
John Stilesdc8ec312021-01-11 11:05:21 -050043 "$_src/sksl/SkSLConstantFolder.cpp",
44 "$_src/sksl/SkSLConstantFolder.h",
John Stiles54e7c052021-01-11 14:22:36 -050045 "$_src/sksl/SkSLContext.cpp",
John Stilesf1058182020-06-02 12:29:20 -040046 "$_src/sksl/SkSLContext.h",
Ethan Nicholasdd2fdea2021-07-20 15:23:04 -040047 "$_src/sksl/SkSLDSLParser.cpp",
48 "$_src/sksl/SkSLDSLParser.h",
Ethan Nicholasc18bb512020-07-28 14:46:53 -040049 "$_src/sksl/SkSLDehydrator.cpp",
John Stiles49a547f2020-10-06 16:14:37 -040050 "$_src/sksl/SkSLDehydrator.h",
Ethan Nicholas4a5e22a2021-08-13 17:29:51 -040051 "$_src/sksl/SkSLErrorReporter.cpp",
John Stilesf1058182020-06-02 12:29:20 -040052 "$_src/sksl/SkSLFileOutputStream.h",
Ethan Nicholas5b5f0962017-09-11 13:50:14 -070053 "$_src/sksl/SkSLIRGenerator.cpp",
John Stilesf1058182020-06-02 12:29:20 -040054 "$_src/sksl/SkSLIRGenerator.h",
John Stiles44e96be2020-08-31 13:16:04 -040055 "$_src/sksl/SkSLInliner.cpp",
56 "$_src/sksl/SkSLInliner.h",
John Stilesf96cb712021-05-05 22:17:04 -040057 "$_src/sksl/SkSLIntrinsicList.h",
Ethan Nicholas5b5f0962017-09-11 13:50:14 -070058 "$_src/sksl/SkSLLexer.cpp",
John Stilesf1058182020-06-02 12:29:20 -040059 "$_src/sksl/SkSLLexer.h",
Ethan Nicholas6f4eee22021-01-11 12:37:42 -050060 "$_src/sksl/SkSLMangler.cpp",
John Stilesbb2ef922021-07-26 08:32:07 -040061 "$_src/sksl/SkSLMangler.h",
John Stilesf1058182020-06-02 12:29:20 -040062 "$_src/sksl/SkSLMemoryLayout.h",
John Stiles23e68662020-10-29 10:17:15 -040063 "$_src/sksl/SkSLMemoryPool.h",
John Stilesbb2ef922021-07-26 08:32:07 -040064 "$_src/sksl/SkSLModifiersPool.h",
Brian Osman00185012021-02-04 16:07:11 -050065 "$_src/sksl/SkSLOperators.cpp",
66 "$_src/sksl/SkSLOperators.h",
Brian Osman23f00d72020-12-02 09:27:10 -050067 "$_src/sksl/SkSLOutputStream.cpp",
68 "$_src/sksl/SkSLOutputStream.h",
John Stilesbb2ef922021-07-26 08:32:07 -040069 "$_src/sksl/SkSLParsedModule.h",
Ethan Nicholas5b5f0962017-09-11 13:50:14 -070070 "$_src/sksl/SkSLParser.cpp",
John Stilesf1058182020-06-02 12:29:20 -040071 "$_src/sksl/SkSLParser.h",
John Stiles5c7bb322020-10-22 11:09:15 -040072 "$_src/sksl/SkSLPool.cpp",
73 "$_src/sksl/SkSLPool.h",
John Stilesf1058182020-06-02 12:29:20 -040074 "$_src/sksl/SkSLPosition.h",
John Stilesbb2ef922021-07-26 08:32:07 -040075 "$_src/sksl/SkSLProgramSettings.h",
Ethan Nicholasc18bb512020-07-28 14:46:53 -040076 "$_src/sksl/SkSLRehydrator.cpp",
John Stiles49a547f2020-10-06 16:14:37 -040077 "$_src/sksl/SkSLRehydrator.h",
Brian Osman1298bc42020-06-30 13:39:35 -040078 "$_src/sksl/SkSLSampleUsage.cpp",
Ethan Nicholas0df1b042017-03-31 13:56:23 -040079 "$_src/sksl/SkSLString.cpp",
John Stilesf1058182020-06-02 12:29:20 -040080 "$_src/sksl/SkSLStringStream.h",
Mike Kleina5fb6152016-10-26 14:17:04 -040081 "$_src/sksl/SkSLUtil.cpp",
John Stilesf1058182020-06-02 12:29:20 -040082 "$_src/sksl/SkSLUtil.h",
John Stiles3738ef52021-04-13 10:41:57 -040083 "$_src/sksl/codegen/SkSLVMCodeGenerator.cpp",
84 "$_src/sksl/codegen/SkSLVMCodeGenerator.h",
Ethan Nicholasd6b6f3e2021-01-22 15:18:25 -050085 "$_src/sksl/dsl/DSLBlock.cpp",
Ethan Nicholasdaed2592021-03-04 14:30:25 -050086 "$_src/sksl/dsl/DSLCase.cpp",
Ethan Nicholas95046142021-01-07 10:57:27 -050087 "$_src/sksl/dsl/DSLCore.cpp",
88 "$_src/sksl/dsl/DSLExpression.cpp",
Ethan Nicholas1ff76092021-01-28 10:02:43 -050089 "$_src/sksl/dsl/DSLFunction.cpp",
Ethan Nicholasb22fcaf2021-05-10 16:17:22 -040090 "$_src/sksl/dsl/DSLLayout.cpp",
Ethan Nicholas624a5292021-04-16 14:54:43 -040091 "$_src/sksl/dsl/DSLRuntimeEffects.cpp",
Ethan Nicholasd6b6f3e2021-01-22 15:18:25 -050092 "$_src/sksl/dsl/DSLStatement.cpp",
Ethan Nicholas2919bbd2021-06-10 12:07:34 -040093 "$_src/sksl/dsl/DSLSymbols.cpp",
Ethan Nicholasb3d4e742021-01-08 11:42:25 -050094 "$_src/sksl/dsl/DSLType.cpp",
Ethan Nicholasbffe80a2021-01-11 15:42:44 -050095 "$_src/sksl/dsl/DSLVar.cpp",
Ethan Nicholasc3bb9e32021-02-02 11:51:03 -050096 "$_src/sksl/dsl/priv/DSLFPs.cpp",
Ethan Nicholas95046142021-01-07 10:57:27 -050097 "$_src/sksl/dsl/priv/DSLWriter.cpp",
John Stilesecdfc032021-02-01 10:18:20 -050098 "$_src/sksl/dsl/priv/DSLWriter.h",
John Stilese2aec432021-03-01 09:27:48 -050099 "$_src/sksl/ir/SkSLBinaryExpression.cpp",
John Stiles49a5a182020-08-13 12:04:15 -0400100 "$_src/sksl/ir/SkSLBinaryExpression.h",
John Stilesbf16b6c2021-03-12 19:24:31 -0500101 "$_src/sksl/ir/SkSLBlock.cpp",
John Stiles49a5a182020-08-13 12:04:15 -0400102 "$_src/sksl/ir/SkSLBlock.h",
103 "$_src/sksl/ir/SkSLBoolLiteral.h",
104 "$_src/sksl/ir/SkSLBreakStatement.h",
Brian Osmaneb0f29d2021-08-04 11:34:16 -0400105 "$_src/sksl/ir/SkSLChildCall.cpp",
106 "$_src/sksl/ir/SkSLChildCall.h",
Ethan Nicholasf70f0442020-09-29 12:41:35 -0400107 "$_src/sksl/ir/SkSLConstructor.cpp",
John Stiles49a5a182020-08-13 12:04:15 -0400108 "$_src/sksl/ir/SkSLConstructor.h",
John Stiles7384b372021-04-01 13:48:15 -0400109 "$_src/sksl/ir/SkSLConstructorArray.cpp",
110 "$_src/sksl/ir/SkSLConstructorArray.h",
John Stilese3ae9682021-08-05 10:35:01 -0400111 "$_src/sksl/ir/SkSLConstructorArrayCast.cpp",
112 "$_src/sksl/ir/SkSLConstructorArrayCast.h",
John Stiles8cad6372021-04-07 12:31:13 -0400113 "$_src/sksl/ir/SkSLConstructorCompound.cpp",
114 "$_src/sksl/ir/SkSLConstructorCompound.h",
115 "$_src/sksl/ir/SkSLConstructorCompoundCast.cpp",
116 "$_src/sksl/ir/SkSLConstructorCompoundCast.h",
John Stilese1182782021-03-30 22:09:37 -0400117 "$_src/sksl/ir/SkSLConstructorDiagonalMatrix.cpp",
118 "$_src/sksl/ir/SkSLConstructorDiagonalMatrix.h",
John Stiles5abb9e12021-04-06 13:47:19 -0400119 "$_src/sksl/ir/SkSLConstructorMatrixResize.cpp",
120 "$_src/sksl/ir/SkSLConstructorMatrixResize.h",
John Stilesfd7252f2021-04-04 22:24:40 -0400121 "$_src/sksl/ir/SkSLConstructorScalarCast.cpp",
122 "$_src/sksl/ir/SkSLConstructorScalarCast.h",
John Stiles2938eea2021-04-01 18:58:25 -0400123 "$_src/sksl/ir/SkSLConstructorSplat.cpp",
124 "$_src/sksl/ir/SkSLConstructorSplat.h",
John Stilesd47330f2021-04-08 23:25:52 -0400125 "$_src/sksl/ir/SkSLConstructorStruct.cpp",
126 "$_src/sksl/ir/SkSLConstructorStruct.h",
John Stiles49a5a182020-08-13 12:04:15 -0400127 "$_src/sksl/ir/SkSLContinueStatement.h",
128 "$_src/sksl/ir/SkSLDiscardStatement.h",
John Stilesea5822e2021-02-26 11:18:20 -0500129 "$_src/sksl/ir/SkSLDoStatement.cpp",
John Stiles49a5a182020-08-13 12:04:15 -0400130 "$_src/sksl/ir/SkSLDoStatement.h",
John Stiles49a5a182020-08-13 12:04:15 -0400131 "$_src/sksl/ir/SkSLExpression.h",
John Stiles3e5871c2021-02-25 20:52:03 -0500132 "$_src/sksl/ir/SkSLExpressionStatement.cpp",
John Stiles49a5a182020-08-13 12:04:15 -0400133 "$_src/sksl/ir/SkSLExpressionStatement.h",
134 "$_src/sksl/ir/SkSLExtension.h",
John Stiles71346462021-04-13 09:42:05 -0400135 "$_src/sksl/ir/SkSLExternalFunction.h",
John Stiles49a5a182020-08-13 12:04:15 -0400136 "$_src/sksl/ir/SkSLExternalFunctionCall.h",
Brian Osmanbe0b3b72021-01-06 14:27:35 -0500137 "$_src/sksl/ir/SkSLExternalFunctionReference.h",
John Stiles49a5a182020-08-13 12:04:15 -0400138 "$_src/sksl/ir/SkSLField.h",
John Stiles06d600f2021-03-08 09:18:21 -0500139 "$_src/sksl/ir/SkSLFieldAccess.cpp",
John Stiles49a5a182020-08-13 12:04:15 -0400140 "$_src/sksl/ir/SkSLFieldAccess.h",
141 "$_src/sksl/ir/SkSLFloatLiteral.h",
John Stilesb321a072021-02-25 16:24:19 -0500142 "$_src/sksl/ir/SkSLForStatement.cpp",
John Stiles49a5a182020-08-13 12:04:15 -0400143 "$_src/sksl/ir/SkSLForStatement.h",
John Stilescd7ba502021-03-19 10:54:59 -0400144 "$_src/sksl/ir/SkSLFunctionCall.cpp",
John Stiles49a5a182020-08-13 12:04:15 -0400145 "$_src/sksl/ir/SkSLFunctionCall.h",
Ethan Nicholas371f6e12021-05-04 14:30:02 -0400146 "$_src/sksl/ir/SkSLFunctionDeclaration.cpp",
John Stiles8e3b6be2020-10-13 11:14:08 -0400147 "$_src/sksl/ir/SkSLFunctionDeclaration.h",
John Stiles8d130842021-08-27 12:42:45 -0400148 "$_src/sksl/ir/SkSLFunctionDefinition.cpp",
John Stiles49a5a182020-08-13 12:04:15 -0400149 "$_src/sksl/ir/SkSLFunctionDefinition.h",
John Stiles569249b2020-11-03 12:18:22 -0500150 "$_src/sksl/ir/SkSLFunctionPrototype.h",
John Stiles49a5a182020-08-13 12:04:15 -0400151 "$_src/sksl/ir/SkSLFunctionReference.h",
John Stilescf3059e2021-02-25 14:27:02 -0500152 "$_src/sksl/ir/SkSLIfStatement.cpp",
John Stiles49a5a182020-08-13 12:04:15 -0400153 "$_src/sksl/ir/SkSLIfStatement.h",
John Stiles51d33982021-03-08 09:18:07 -0500154 "$_src/sksl/ir/SkSLIndexExpression.cpp",
John Stiles49a5a182020-08-13 12:04:15 -0400155 "$_src/sksl/ir/SkSLIndexExpression.h",
John Stiles98c1f822020-09-09 14:18:53 -0400156 "$_src/sksl/ir/SkSLInlineMarker.h",
John Stiles49a5a182020-08-13 12:04:15 -0400157 "$_src/sksl/ir/SkSLIntLiteral.h",
158 "$_src/sksl/ir/SkSLInterfaceBlock.h",
Brian Osman3099f792021-09-01 13:12:16 -0400159 "$_src/sksl/ir/SkSLMethodReference.h",
John Stiles49a5a182020-08-13 12:04:15 -0400160 "$_src/sksl/ir/SkSLModifiersDeclaration.h",
161 "$_src/sksl/ir/SkSLNop.h",
Ethan Nicholas549c6b82021-06-25 12:31:44 -0400162 "$_src/sksl/ir/SkSLPoison.h",
John Stiles52d3b012021-02-26 15:56:48 -0500163 "$_src/sksl/ir/SkSLPostfixExpression.cpp",
John Stiles49a5a182020-08-13 12:04:15 -0400164 "$_src/sksl/ir/SkSLPostfixExpression.h",
John Stiles71624de2020-11-05 11:56:03 -0500165 "$_src/sksl/ir/SkSLPrefixExpression.cpp",
John Stiles49a5a182020-08-13 12:04:15 -0400166 "$_src/sksl/ir/SkSLPrefixExpression.h",
167 "$_src/sksl/ir/SkSLProgram.h",
John Stiles49a5a182020-08-13 12:04:15 -0400168 "$_src/sksl/ir/SkSLReturnStatement.h",
Ethan Nicholas762466e2017-06-29 10:03:38 -0400169 "$_src/sksl/ir/SkSLSetting.cpp",
John Stilesf1058182020-06-02 12:29:20 -0400170 "$_src/sksl/ir/SkSLSetting.h",
John Stilesdc75a972020-11-25 16:24:55 -0500171 "$_src/sksl/ir/SkSLStructDefinition.h",
John Stiles49a5a182020-08-13 12:04:15 -0400172 "$_src/sksl/ir/SkSLSwitchCase.h",
John Stilese1d1b082021-02-23 13:44:36 -0500173 "$_src/sksl/ir/SkSLSwitchStatement.cpp",
John Stiles49a5a182020-08-13 12:04:15 -0400174 "$_src/sksl/ir/SkSLSwitchStatement.h",
John Stiles6e88e042021-02-19 14:09:38 -0500175 "$_src/sksl/ir/SkSLSwizzle.cpp",
John Stiles49a5a182020-08-13 12:04:15 -0400176 "$_src/sksl/ir/SkSLSwizzle.h",
John Stiles49a547f2020-10-06 16:14:37 -0400177 "$_src/sksl/ir/SkSLSymbolAlias.h",
Ethan Nicholasd4efe682019-08-29 16:10:13 -0400178 "$_src/sksl/ir/SkSLSymbolTable.cpp",
John Stilesf1058182020-06-02 12:29:20 -0400179 "$_src/sksl/ir/SkSLSymbolTable.h",
John Stiles90518f72021-02-26 20:44:54 -0500180 "$_src/sksl/ir/SkSLTernaryExpression.cpp",
John Stiles49a5a182020-08-13 12:04:15 -0400181 "$_src/sksl/ir/SkSLTernaryExpression.h",
Mike Kleina5fb6152016-10-26 14:17:04 -0400182 "$_src/sksl/ir/SkSLType.cpp",
John Stilesf1058182020-06-02 12:29:20 -0400183 "$_src/sksl/ir/SkSLType.h",
John Stiles49a5a182020-08-13 12:04:15 -0400184 "$_src/sksl/ir/SkSLTypeReference.h",
185 "$_src/sksl/ir/SkSLUnresolvedFunction.h",
John Stilese67bd132021-03-19 18:39:25 -0400186 "$_src/sksl/ir/SkSLVarDeclarations.cpp",
John Stiles49a5a182020-08-13 12:04:15 -0400187 "$_src/sksl/ir/SkSLVarDeclarations.h",
Ethan Nicholas5b9b0db2021-01-21 13:12:01 -0500188 "$_src/sksl/ir/SkSLVariable.cpp",
John Stiles49a5a182020-08-13 12:04:15 -0400189 "$_src/sksl/ir/SkSLVariable.h",
Ethan Nicholas8f7e28f2018-03-26 14:24:27 -0400190 "$_src/sksl/ir/SkSLVariableReference.cpp",
John Stilesf1058182020-06-02 12:29:20 -0400191 "$_src/sksl/ir/SkSLVariableReference.h",
John Stiles3738ef52021-04-13 10:41:57 -0400192 "$_src/sksl/spirv.h",
Mike Kleina5fb6152016-10-26 14:17:04 -0400193]
Ethan Nicholas762466e2017-06-29 10:03:38 -0400194
Brian Osmanfb32ddf2019-06-18 10:14:20 -0400195skia_sksl_gpu_sources = [
John Stiles3738ef52021-04-13 10:41:57 -0400196 "$_src/sksl/codegen/SkSLCodeGenerator.h",
197 "$_src/sksl/codegen/SkSLGLSLCodeGenerator.cpp",
198 "$_src/sksl/codegen/SkSLGLSLCodeGenerator.h",
John Stiles3738ef52021-04-13 10:41:57 -0400199 "$_src/sksl/codegen/SkSLMetalCodeGenerator.cpp",
200 "$_src/sksl/codegen/SkSLMetalCodeGenerator.h",
201 "$_src/sksl/codegen/SkSLPipelineStageCodeGenerator.cpp",
202 "$_src/sksl/codegen/SkSLPipelineStageCodeGenerator.h",
203 "$_src/sksl/codegen/SkSLSPIRVCodeGenerator.cpp",
204 "$_src/sksl/codegen/SkSLSPIRVCodeGenerator.h",
205 "$_src/sksl/codegen/SkSLSPIRVtoHLSL.cpp",
206 "$_src/sksl/codegen/SkSLSPIRVtoHLSL.h",
Brian Osmanfb32ddf2019-06-18 10:14:20 -0400207]