root/trunk/jamlibrary/meshcompile.jam

Revision 21 (checked in by kai, 2 years ago)

Initial commit of ShortHike sources and assets.

Line 
1 # --------------------------------------------------------------------------------
2 # Mesh compilation directives
3
4 #----------
5 # Compiling meshes
6
7
8 rule MeshCompile
9 {
10         local BINARY_MESH = $(1) ;
11         local XML_MESH = $(2) ;
12         Depends assets : $(BINARY_MESH) ;
13         Depends publish : $(BINARY_MESH) ;
14         Depends all : $(BINARY_MESH) ;
15         Depends debug : assets ;
16         Depends release : assets ;
17         Depends $(BINARY_MESH) : $(XML_MESH) ;
18 }
19
20 actions MeshCompile
21 {
22         $(OGRE_XML_CONVERTER) $(2) $(1)
23 }
24
25
26 rule MeshGroup
27 {
28         local XML_MESH_FILES = $(1) ;
29         for XML_MESH in $(XML_MESH_FILES) {
30                 local BINARY_MESH = $(XML_MESH:S=.mesh} ;
31                 MeshCompile $(BINARY_MESH) : $(XML_MESH) ;
32         }
33 }
34
35
Note: See TracBrowser for help on using the browser.