blob: 2f2178f132961fb7613e04165f903e4c60cab45b [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 Nicholasc18bb512020-07-28 14:46:53 -040048 "$_src/sksl/SkSLDehydrator.cpp",
John Stiles49a547f2020-10-06 16:14:37 -040049 "$_src/sksl/SkSLDehydrator.h",
John Stilesf1058182020-06-02 12:29:20 -040050 "$_src/sksl/SkSLErrorReporter.h",
John Stilesf1058182020-06-02 12:29:20 -040051 "$_src/sksl/SkSLFileOutputStream.h",
Ethan Nicholas5b5f0962017-09-11 13:50:14 -070052 "$_src/sksl/SkSLIRGenerator.cpp",
John Stilesf1058182020-06-02 12:29:20 -040053 "$_src/sksl/SkSLIRGenerator.h",
John Stiles44e96be2020-08-31 13:16:04 -040054 "$_src/sksl/SkSLInliner.cpp",
55 "$_src/sksl/SkSLInliner.h",
John Stilesf96cb712021-05-05 22:17:04 -040056 "$_src/sksl/SkSLIntrinsicList.h",
Ethan Nicholas5b5f0962017-09-11 13:50:14 -070057 "$_src/sksl/SkSLLexer.cpp",
John Stilesf1058182020-06-02 12:29:20 -040058 "$_src/sksl/SkSLLexer.h",
Ethan Nicholas6f4eee22021-01-11 12:37:42 -050059 "$_src/sksl/SkSLMangler.cpp",
John Stilesf1058182020-06-02 12:29:20 -040060 "$_src/sksl/SkSLMemoryLayout.h",
John Stiles23e68662020-10-29 10:17:15 -040061 "$_src/sksl/SkSLMemoryPool.h",
Brian Osman00185012021-02-04 16:07:11 -050062 "$_src/sksl/SkSLOperators.cpp",
63 "$_src/sksl/SkSLOperators.h",
Brian Osman23f00d72020-12-02 09:27:10 -050064 "$_src/sksl/SkSLOutputStream.cpp",
65 "$_src/sksl/SkSLOutputStream.h",
Ethan Nicholas5b5f0962017-09-11 13:50:14 -070066 "$_src/sksl/SkSLParser.cpp",
John Stilesf1058182020-06-02 12:29:20 -040067 "$_src/sksl/SkSLParser.h",
John Stiles5c7bb322020-10-22 11:09:15 -040068 "$_src/sksl/SkSLPool.cpp",
69 "$_src/sksl/SkSLPool.h",
John Stilesf1058182020-06-02 12:29:20 -040070 "$_src/sksl/SkSLPosition.h",
Ethan Nicholasc18bb512020-07-28 14:46:53 -040071 "$_src/sksl/SkSLRehydrator.cpp",
John Stiles49a547f2020-10-06 16:14:37 -040072 "$_src/sksl/SkSLRehydrator.h",
Brian Osman1298bc42020-06-30 13:39:35 -040073 "$_src/sksl/SkSLSampleUsage.cpp",
Ethan Nicholasd4efe682019-08-29 16:10:13 -040074 "$_src/sksl/SkSLSectionAndParameterHelper.cpp",
John Stilesf1058182020-06-02 12:29:20 -040075 "$_src/sksl/SkSLSectionAndParameterHelper.h",
Ethan Nicholas0df1b042017-03-31 13:56:23 -040076 "$_src/sksl/SkSLString.cpp",
John Stilesf1058182020-06-02 12:29:20 -040077 "$_src/sksl/SkSLStringStream.h",
Mike Kleina5fb6152016-10-26 14:17:04 -040078 "$_src/sksl/SkSLUtil.cpp",
John Stilesf1058182020-06-02 12:29:20 -040079 "$_src/sksl/SkSLUtil.h",
John Stiles3738ef52021-04-13 10:41:57 -040080 "$_src/sksl/codegen/SkSLVMCodeGenerator.cpp",
81 "$_src/sksl/codegen/SkSLVMCodeGenerator.h",
Ethan Nicholasd6b6f3e2021-01-22 15:18:25 -050082 "$_src/sksl/dsl/DSLBlock.cpp",
Ethan Nicholasdaed2592021-03-04 14:30:25 -050083 "$_src/sksl/dsl/DSLCase.cpp",
Ethan Nicholas95046142021-01-07 10:57:27 -050084 "$_src/sksl/dsl/DSLCore.cpp",
85 "$_src/sksl/dsl/DSLExpression.cpp",
Ethan Nicholas1ff76092021-01-28 10:02:43 -050086 "$_src/sksl/dsl/DSLFunction.cpp",
Ethan Nicholasb22fcaf2021-05-10 16:17:22 -040087 "$_src/sksl/dsl/DSLLayout.cpp",
Ethan Nicholas624a5292021-04-16 14:54:43 -040088 "$_src/sksl/dsl/DSLRuntimeEffects.cpp",
Ethan Nicholasd6b6f3e2021-01-22 15:18:25 -050089 "$_src/sksl/dsl/DSLStatement.cpp",
Ethan Nicholas2919bbd2021-06-10 12:07:34 -040090 "$_src/sksl/dsl/DSLSymbols.cpp",
Ethan Nicholasb3d4e742021-01-08 11:42:25 -050091 "$_src/sksl/dsl/DSLType.cpp",
Ethan Nicholasbffe80a2021-01-11 15:42:44 -050092 "$_src/sksl/dsl/DSLVar.cpp",
Ethan Nicholasc3bb9e32021-02-02 11:51:03 -050093 "$_src/sksl/dsl/priv/DSLFPs.cpp",
Ethan Nicholas95046142021-01-07 10:57:27 -050094 "$_src/sksl/dsl/priv/DSLWriter.cpp",
John Stilesecdfc032021-02-01 10:18:20 -050095 "$_src/sksl/dsl/priv/DSLWriter.h",
John Stilese2aec432021-03-01 09:27:48 -050096 "$_src/sksl/ir/SkSLBinaryExpression.cpp",
John Stiles49a5a182020-08-13 12:04:15 -040097 "$_src/sksl/ir/SkSLBinaryExpression.h",
John Stilesbf16b6c2021-03-12 19:24:31 -050098 "$_src/sksl/ir/SkSLBlock.cpp",
John Stiles49a5a182020-08-13 12:04:15 -040099 "$_src/sksl/ir/SkSLBlock.h",
100 "$_src/sksl/ir/SkSLBoolLiteral.h",
101 "$_src/sksl/ir/SkSLBreakStatement.h",
Ethan Nicholasf70f0442020-09-29 12:41:35 -0400102 "$_src/sksl/ir/SkSLConstructor.cpp",
John Stiles49a5a182020-08-13 12:04:15 -0400103 "$_src/sksl/ir/SkSLConstructor.h",
John Stiles7384b372021-04-01 13:48:15 -0400104 "$_src/sksl/ir/SkSLConstructorArray.cpp",
105 "$_src/sksl/ir/SkSLConstructorArray.h",
John Stiles8cad6372021-04-07 12:31:13 -0400106 "$_src/sksl/ir/SkSLConstructorCompound.cpp",
107 "$_src/sksl/ir/SkSLConstructorCompound.h",
108 "$_src/sksl/ir/SkSLConstructorCompoundCast.cpp",
109 "$_src/sksl/ir/SkSLConstructorCompoundCast.h",
John Stilese1182782021-03-30 22:09:37 -0400110 "$_src/sksl/ir/SkSLConstructorDiagonalMatrix.cpp",
111 "$_src/sksl/ir/SkSLConstructorDiagonalMatrix.h",
John Stiles5abb9e12021-04-06 13:47:19 -0400112 "$_src/sksl/ir/SkSLConstructorMatrixResize.cpp",
113 "$_src/sksl/ir/SkSLConstructorMatrixResize.h",
John Stilesfd7252f2021-04-04 22:24:40 -0400114 "$_src/sksl/ir/SkSLConstructorScalarCast.cpp",
115 "$_src/sksl/ir/SkSLConstructorScalarCast.h",
John Stiles2938eea2021-04-01 18:58:25 -0400116 "$_src/sksl/ir/SkSLConstructorSplat.cpp",
117 "$_src/sksl/ir/SkSLConstructorSplat.h",
John Stilesd47330f2021-04-08 23:25:52 -0400118 "$_src/sksl/ir/SkSLConstructorStruct.cpp",
119 "$_src/sksl/ir/SkSLConstructorStruct.h",
John Stiles49a5a182020-08-13 12:04:15 -0400120 "$_src/sksl/ir/SkSLContinueStatement.h",
121 "$_src/sksl/ir/SkSLDiscardStatement.h",
John Stilesea5822e2021-02-26 11:18:20 -0500122 "$_src/sksl/ir/SkSLDoStatement.cpp",
John Stiles49a5a182020-08-13 12:04:15 -0400123 "$_src/sksl/ir/SkSLDoStatement.h",
124 "$_src/sksl/ir/SkSLEnum.h",
125 "$_src/sksl/ir/SkSLExpression.h",
John Stiles3e5871c2021-02-25 20:52:03 -0500126 "$_src/sksl/ir/SkSLExpressionStatement.cpp",
John Stiles49a5a182020-08-13 12:04:15 -0400127 "$_src/sksl/ir/SkSLExpressionStatement.h",
128 "$_src/sksl/ir/SkSLExtension.h",
John Stiles71346462021-04-13 09:42:05 -0400129 "$_src/sksl/ir/SkSLExternalFunction.h",
John Stiles49a5a182020-08-13 12:04:15 -0400130 "$_src/sksl/ir/SkSLExternalFunctionCall.h",
Brian Osmanbe0b3b72021-01-06 14:27:35 -0500131 "$_src/sksl/ir/SkSLExternalFunctionReference.h",
John Stiles49a5a182020-08-13 12:04:15 -0400132 "$_src/sksl/ir/SkSLField.h",
John Stiles06d600f2021-03-08 09:18:21 -0500133 "$_src/sksl/ir/SkSLFieldAccess.cpp",
John Stiles49a5a182020-08-13 12:04:15 -0400134 "$_src/sksl/ir/SkSLFieldAccess.h",
135 "$_src/sksl/ir/SkSLFloatLiteral.h",
John Stilesb321a072021-02-25 16:24:19 -0500136 "$_src/sksl/ir/SkSLForStatement.cpp",
John Stiles49a5a182020-08-13 12:04:15 -0400137 "$_src/sksl/ir/SkSLForStatement.h",
John Stilescd7ba502021-03-19 10:54:59 -0400138 "$_src/sksl/ir/SkSLFunctionCall.cpp",
John Stiles49a5a182020-08-13 12:04:15 -0400139 "$_src/sksl/ir/SkSLFunctionCall.h",
Ethan Nicholas371f6e12021-05-04 14:30:02 -0400140 "$_src/sksl/ir/SkSLFunctionDeclaration.cpp",
John Stiles8e3b6be2020-10-13 11:14:08 -0400141 "$_src/sksl/ir/SkSLFunctionDeclaration.h",
John Stiles49a5a182020-08-13 12:04:15 -0400142 "$_src/sksl/ir/SkSLFunctionDefinition.h",
John Stiles569249b2020-11-03 12:18:22 -0500143 "$_src/sksl/ir/SkSLFunctionPrototype.h",
John Stiles49a5a182020-08-13 12:04:15 -0400144 "$_src/sksl/ir/SkSLFunctionReference.h",
John Stilescf3059e2021-02-25 14:27:02 -0500145 "$_src/sksl/ir/SkSLIfStatement.cpp",
John Stiles49a5a182020-08-13 12:04:15 -0400146 "$_src/sksl/ir/SkSLIfStatement.h",
John Stiles51d33982021-03-08 09:18:07 -0500147 "$_src/sksl/ir/SkSLIndexExpression.cpp",
John Stiles49a5a182020-08-13 12:04:15 -0400148 "$_src/sksl/ir/SkSLIndexExpression.h",
John Stiles98c1f822020-09-09 14:18:53 -0400149 "$_src/sksl/ir/SkSLInlineMarker.h",
John Stiles49a5a182020-08-13 12:04:15 -0400150 "$_src/sksl/ir/SkSLIntLiteral.h",
151 "$_src/sksl/ir/SkSLInterfaceBlock.h",
John Stiles49a5a182020-08-13 12:04:15 -0400152 "$_src/sksl/ir/SkSLModifiersDeclaration.h",
153 "$_src/sksl/ir/SkSLNop.h",
Ethan Nicholas549c6b82021-06-25 12:31:44 -0400154 "$_src/sksl/ir/SkSLPoison.h",
John Stiles52d3b012021-02-26 15:56:48 -0500155 "$_src/sksl/ir/SkSLPostfixExpression.cpp",
John Stiles49a5a182020-08-13 12:04:15 -0400156 "$_src/sksl/ir/SkSLPostfixExpression.h",
John Stiles71624de2020-11-05 11:56:03 -0500157 "$_src/sksl/ir/SkSLPrefixExpression.cpp",
John Stiles49a5a182020-08-13 12:04:15 -0400158 "$_src/sksl/ir/SkSLPrefixExpression.h",
159 "$_src/sksl/ir/SkSLProgram.h",
John Stiles49a5a182020-08-13 12:04:15 -0400160 "$_src/sksl/ir/SkSLReturnStatement.h",
161 "$_src/sksl/ir/SkSLSection.h",
Ethan Nicholas762466e2017-06-29 10:03:38 -0400162 "$_src/sksl/ir/SkSLSetting.cpp",
John Stilesf1058182020-06-02 12:29:20 -0400163 "$_src/sksl/ir/SkSLSetting.h",
John Stilesdc75a972020-11-25 16:24:55 -0500164 "$_src/sksl/ir/SkSLStructDefinition.h",
John Stiles49a5a182020-08-13 12:04:15 -0400165 "$_src/sksl/ir/SkSLSwitchCase.h",
John Stilese1d1b082021-02-23 13:44:36 -0500166 "$_src/sksl/ir/SkSLSwitchStatement.cpp",
John Stiles49a5a182020-08-13 12:04:15 -0400167 "$_src/sksl/ir/SkSLSwitchStatement.h",
John Stiles6e88e042021-02-19 14:09:38 -0500168 "$_src/sksl/ir/SkSLSwizzle.cpp",
John Stiles49a5a182020-08-13 12:04:15 -0400169 "$_src/sksl/ir/SkSLSwizzle.h",
John Stiles49a547f2020-10-06 16:14:37 -0400170 "$_src/sksl/ir/SkSLSymbolAlias.h",
Ethan Nicholasd4efe682019-08-29 16:10:13 -0400171 "$_src/sksl/ir/SkSLSymbolTable.cpp",
John Stilesf1058182020-06-02 12:29:20 -0400172 "$_src/sksl/ir/SkSLSymbolTable.h",
John Stiles90518f72021-02-26 20:44:54 -0500173 "$_src/sksl/ir/SkSLTernaryExpression.cpp",
John Stiles49a5a182020-08-13 12:04:15 -0400174 "$_src/sksl/ir/SkSLTernaryExpression.h",
Mike Kleina5fb6152016-10-26 14:17:04 -0400175 "$_src/sksl/ir/SkSLType.cpp",
John Stilesf1058182020-06-02 12:29:20 -0400176 "$_src/sksl/ir/SkSLType.h",
John Stiles49a5a182020-08-13 12:04:15 -0400177 "$_src/sksl/ir/SkSLTypeReference.h",
178 "$_src/sksl/ir/SkSLUnresolvedFunction.h",
John Stilese67bd132021-03-19 18:39:25 -0400179 "$_src/sksl/ir/SkSLVarDeclarations.cpp",
John Stiles49a5a182020-08-13 12:04:15 -0400180 "$_src/sksl/ir/SkSLVarDeclarations.h",
Ethan Nicholas5b9b0db2021-01-21 13:12:01 -0500181 "$_src/sksl/ir/SkSLVariable.cpp",
John Stiles49a5a182020-08-13 12:04:15 -0400182 "$_src/sksl/ir/SkSLVariable.h",
Ethan Nicholas8f7e28f2018-03-26 14:24:27 -0400183 "$_src/sksl/ir/SkSLVariableReference.cpp",
John Stilesf1058182020-06-02 12:29:20 -0400184 "$_src/sksl/ir/SkSLVariableReference.h",
John Stiles3738ef52021-04-13 10:41:57 -0400185 "$_src/sksl/spirv.h",
Mike Kleina5fb6152016-10-26 14:17:04 -0400186]
Ethan Nicholas762466e2017-06-29 10:03:38 -0400187
Brian Osmanfb32ddf2019-06-18 10:14:20 -0400188skia_sksl_gpu_sources = [
Brian Osmanfb32ddf2019-06-18 10:14:20 -0400189 "$_src/sksl/SkSLCPPUniformCTypes.cpp",
John Stilesf1058182020-06-02 12:29:20 -0400190 "$_src/sksl/SkSLCPPUniformCTypes.h",
John Stiles3738ef52021-04-13 10:41:57 -0400191 "$_src/sksl/codegen/SkSLCPPCodeGenerator.cpp",
192 "$_src/sksl/codegen/SkSLCPPCodeGenerator.h",
193 "$_src/sksl/codegen/SkSLCodeGenerator.h",
John Stiles82ab3402021-04-13 17:13:03 -0400194 "$_src/sksl/codegen/SkSLDSLCPPCodeGenerator.cpp",
195 "$_src/sksl/codegen/SkSLDSLCPPCodeGenerator.h",
John Stiles3738ef52021-04-13 10:41:57 -0400196 "$_src/sksl/codegen/SkSLGLSLCodeGenerator.cpp",
197 "$_src/sksl/codegen/SkSLGLSLCodeGenerator.h",
198 "$_src/sksl/codegen/SkSLHCodeGenerator.cpp",
199 "$_src/sksl/codegen/SkSLHCodeGenerator.h",
200 "$_src/sksl/codegen/SkSLMetalCodeGenerator.cpp",
201 "$_src/sksl/codegen/SkSLMetalCodeGenerator.h",
202 "$_src/sksl/codegen/SkSLPipelineStageCodeGenerator.cpp",
203 "$_src/sksl/codegen/SkSLPipelineStageCodeGenerator.h",
204 "$_src/sksl/codegen/SkSLSPIRVCodeGenerator.cpp",
205 "$_src/sksl/codegen/SkSLSPIRVCodeGenerator.h",
206 "$_src/sksl/codegen/SkSLSPIRVtoHLSL.cpp",
207 "$_src/sksl/codegen/SkSLSPIRVtoHLSL.h",
Brian Osmanfb32ddf2019-06-18 10:14:20 -0400208]
Brian Osmane5c1f972019-06-17 10:27:55 -0400209
Ethan Nicholas9fb036f2017-07-05 16:19:09 -0400210skia_gpu_processor_sources = [
Mike Reed18e75562018-03-12 14:03:47 -0400211 "$_src/gpu/effects/GrCircleBlurFragmentProcessor.fp",
Ethan Nicholas839872c2017-10-05 12:36:59 -0400212 "$_src/gpu/effects/GrConfigConversionEffect.fp",
John Stiles53ee0fc2020-07-09 15:29:33 -0400213 "$_src/gpu/effects/GrDitherEffect.fp",
Ethan Nicholas297d6ef2017-12-20 12:00:11 -0500214 "$_src/gpu/effects/GrRRectBlurEffect.fp",
Mike Klein96f64012020-04-03 10:59:37 -0500215 "$_src/gpu/effects/GrRectBlurEffect.fp",
216 "$_src/gpu/gradients/GrClampedGradientEffect.fp",
Michael Ludwig4f94ef62018-09-12 15:22:16 -0400217 "$_src/gpu/gradients/GrTiledGradientEffect.fp",
Mike Klein96f64012020-04-03 10:59:37 -0500218 "$_src/gpu/gradients/GrUnrolledBinaryGradientColorizer.fp",
Ethan Nicholas9fb036f2017-07-05 16:19:09 -0400219]