Switched mesh assets build to ninja.
This commit is contained in:
parent
220cabeae5
commit
537c70965d
18
examples/assets/meshes/build.ninja
Normal file
18
examples/assets/meshes/build.ninja
Normal file
@ -0,0 +1,18 @@
|
||||
include ../../../scripts/common.ninja
|
||||
meshes = ../../runtime/meshes
|
||||
|
||||
build $meshes/bunny.bin: geometryc_pack_normal bunny.obj
|
||||
build $meshes/bunny_decimated.bin: geometryc_pack_normal bunny_decimated.obj
|
||||
build $meshes/bunny_patched.bin: geometryc_pack_normal bunny_patched.obj
|
||||
build $meshes/column.bin: geometryc_pack_normal column.obj
|
||||
build $meshes/cube.bin: geometryc_pack_normal cube.obj
|
||||
build $meshes/hollowcube.bin: geometryc_pack_normal hollowcube.obj
|
||||
build $meshes/orb.bin: geometryc_pack_normal orb.obj
|
||||
build $meshes/platform.bin: geometryc_pack_normal platform.obj
|
||||
build $meshes/tree.bin: geometryc_pack_normal tree.obj
|
||||
build $meshes/tree1b_lod0_1.bin: geometryc_pack_normal tree1b_lod0_1.obj
|
||||
build $meshes/tree1b_lod0_2.bin: geometryc_pack_normal tree1b_lod0_2.obj
|
||||
build $meshes/tree1b_lod1_1.bin: geometryc_pack_normal tree1b_lod1_1.obj
|
||||
build $meshes/tree1b_lod1_2.bin: geometryc_pack_normal tree1b_lod1_2.obj
|
||||
build $meshes/tree1b_lod2_1.bin: geometryc_pack_normal tree1b_lod2_1.obj
|
||||
build $meshes/tree1b_lod2_2.bin: geometryc_pack_normal tree1b_lod2_2.obj
|
@ -1,40 +0,0 @@
|
||||
#
|
||||
# Copyright 2011-2016 Branimir Karadzic. All rights reserved.
|
||||
# License: http://www.opensource.org/licenses/BSD-2-Clause
|
||||
#
|
||||
|
||||
BGFX_DIR=../../..
|
||||
RUNTIME_DIR=$(BGFX_DIR)/examples/runtime
|
||||
BUILD_DIR=../../.build
|
||||
|
||||
include $(BGFX_DIR)/scripts/tools.mk
|
||||
|
||||
GEOMETRY_SRC= \
|
||||
bunny \
|
||||
bunny_decimated \
|
||||
bunny_patched \
|
||||
column \
|
||||
cube \
|
||||
hollowcube \
|
||||
orb \
|
||||
platform \
|
||||
tree \
|
||||
tree1b_lod0_1 \
|
||||
tree1b_lod0_2 \
|
||||
tree1b_lod1_1 \
|
||||
tree1b_lod1_2 \
|
||||
tree1b_lod2_1 \
|
||||
tree1b_lod2_2
|
||||
|
||||
GEOMETRY_BIN=$(addprefix $(RUNTIME_DIR)/meshes/, $(addsuffix .bin, $(basename $(GEOMETRY_SRC))))
|
||||
|
||||
all: $(GEOMETRY_BIN)
|
||||
|
||||
clean:
|
||||
@echo Cleaning...
|
||||
@-rm -vf $(GEOMETRY_BIN)
|
||||
|
||||
rebuild: clean all
|
||||
|
||||
$(RUNTIME_DIR)/meshes/%.bin : %.obj
|
||||
$(SILENT) $(GEOMETRYC) -f $(<) -o $(@) --packnormal 1
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
5
scripts/common.ninja
Normal file
5
scripts/common.ninja
Normal file
@ -0,0 +1,5 @@
|
||||
builddir = ../.build
|
||||
|
||||
rule geometryc_pack_normal
|
||||
command = geometryc -f $in -o $out --packnormal 1
|
||||
description = Converting geometry $in...
|
Loading…
Reference in New Issue
Block a user