From 43a87590f45aa6e55724d30d0c2d0d34b407a57e Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 17 Jan 2021 18:54:26 +0000 Subject: First cut modernizing and sanitizing --- Jamroot.jam | 38 +++++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) (limited to 'Jamroot.jam') diff --git a/Jamroot.jam b/Jamroot.jam index 33c67c4..5058f6a 100644 --- a/Jamroot.jam +++ b/Jamroot.jam @@ -1,13 +1,49 @@ using gcc ; using pkg-config ; import pkg-config ; +import type : register ; +import generators : register-standard ; pkg-config.import sdl2 ; pkg-config.import glew ; lib stb : : : : /usr/include/stb ; +project : requirements + 20 + debug:extra + debug:on + release:on + tidy:bin/res/fs-basicShader.h + tidy:bin/res/vs-basicShader.h + tidy:boost-* + tidy:bugprone-* + tidy:clang-* + tidy:misc-* + tidy:modernize-* + tidy:modernize-use-trailing-return-type + tidy:hicpp-* + tidy:hicpp-signed-bitwise + tidy:hicpp-named-parameter + tidy:performance-* + tidy:no + tidy:iwyu.json + tidy:TIDY + ; + +type.register VERTEXSHADER : vs ; +type.register FRAGMENTSHADER : fs ; + +generators.register-standard xxd.i : VERTEXSHADER : C(vs-%) H(vs-%) ; +generators.register-standard xxd.i : FRAGMENTSHADER : C(fs-%) H(fs-%) ; + +actions xxd.i +{ + ( cd $(2:D) ; xxd -i $(2:B)$(2:S) ) | tee $(1[1]) | cproto -veo $(1[2]) +} +IMPORT $(__name__) : xxd.i : : xxd.i ; + exe test : - [ glob *.cpp *.c ] + [ glob-tree *.cpp *.c *.vs *.fs : bin ] : sdl2 glew -- cgit v1.2.3