summaryrefslogtreecommitdiff
path: root/Jamroot.jam
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2023-04-14 18:03:34 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2023-04-14 18:03:34 +0100
commit5776a36b454fac04617313da011d7aa2b0e834d3 (patch)
tree1eb96d07e9a17a51e5763f397fc003f762cd2e75 /Jamroot.jam
parentMerge branch 'model-factory-textures' (diff)
parentAdd an asset template and use it to define all the foliage assets in the plan... (diff)
downloadilt-5776a36b454fac04617313da011d7aa2b0e834d3.tar.bz2
ilt-5776a36b454fac04617313da011d7aa2b0e834d3.tar.xz
ilt-5776a36b454fac04617313da011d7aa2b0e834d3.zip
Merge branch 'assimp'
Diffstat (limited to 'Jamroot.jam')
-rw-r--r--Jamroot.jam27
1 files changed, 3 insertions, 24 deletions
diff --git a/Jamroot.jam b/Jamroot.jam
index e2075cf..35b48ea 100644
--- a/Jamroot.jam
+++ b/Jamroot.jam
@@ -1,18 +1,17 @@
using gcc ;
using pkg-config ;
import pkg-config ;
-import type : register ;
-import type : type ;
-import generators : register-standard ;
import testing ;
import lex ;
import sequence ;
+import glsl ;
pkg-config.import sdl2 ;
pkg-config.import glew ;
pkg-config.import freetype2 ;
pkg-config.import glib-2.0 ;
pkg-config.import mxml ;
+pkg-config.import assimp ;
lib pthread ;
lib OpenMeshCore ;
@@ -23,7 +22,6 @@ project : requirements
<variant>profile:<lto>on
<variant>coverage:<coverage>on
<toolset>tidy:<enable>all
- <toolset>tidy:<exclude>bin/link-static/gfx/models/obj.cpp
<toolset>tidy:<exclude>bin/link-static/lib/jsonParse.cpp
<toolset>tidy:<checkxx>boost-*
<toolset>tidy:<checkxx>bugprone-*
@@ -49,26 +47,6 @@ project : requirements
<toolset>tidy:<define>TIDY
;
-type.register GL_VERTEX_SHADER : vs ;
-type.register GL_GEOMETRY_SHADER : gs ;
-type.register GL_FRAGMENT_SHADER : fs ;
-
-generators.register-standard embed.glsl : GL_VERTEX_SHADER : CPP(vs-%) H(vs-%) ;
-generators.register-standard embed.glsl : GL_GEOMETRY_SHADER : CPP(gs-%) H(gs-%) ;
-generators.register-standard embed.glsl : GL_FRAGMENT_SHADER : CPP(fs-%) H(fs-%) ;
-
-actions embed.glsl
-{
- m4 -DNAME=$(2:B) -DTYPE=$(2:S) > $(1[2]) lib/embed-glsl.h.m4
- m4 -DSOURCE=$(2) -DNAME=$(2:B) -DTYPE=$(2:S) -DGLTYPE=$(OPTIONS) > $(1[1]) lib/embed-glsl.cpp.m4
-}
-rule embed.glsl ( targets * : sources * : properties * )
-{
- DEPENDS $(targets) : lib/embed-glsl.h.m4 lib/embed-glsl.cpp.m4 ;
- OPTIONS on $(targets) = [ type.type $(sources) ] ;
-}
-IMPORT $(__name__) : embed.glsl : : embed.glsl ;
-
exe iliketrains :
application/main.cpp
:
@@ -115,6 +93,7 @@ lib ilt :
<library>freetype2
<library>glib-2.0
<library>mxml
+ <library>assimp
<library>pthread
<library>OpenMeshCore
: :