mirror of https://github.com/bkaradzic/bgfx
Removed tools executables to avoid repo bloat, and stale executables. Added makefile rule to build tools.
This commit is contained in:
parent
0719e748d7
commit
caed3f9102
39
makefile
39
makefile
|
@ -156,3 +156,42 @@ docs:
|
|||
clean:
|
||||
@echo Cleaning...
|
||||
-@rm -rf .build
|
||||
|
||||
###
|
||||
|
||||
SILENT ?= @
|
||||
|
||||
UNAME := $(shell uname)
|
||||
ifeq ($(UNAME),$(filter $(UNAME),Linux Darwin))
|
||||
ifeq ($(UNAME),$(filter $(UNAME),Darwin))
|
||||
OS=darwin
|
||||
BUILD_PROJECT_DIR=gmake-osx
|
||||
BUILD_OUTPUT_DIR=linux64_gcc
|
||||
EXE=
|
||||
else
|
||||
OS=linux
|
||||
BUILD_PROJECT_DIR=gmake-linux
|
||||
BUILD_OUTPUT_DIR=osx64_gcc
|
||||
EXE=
|
||||
endif
|
||||
else
|
||||
OS=windows
|
||||
BUILD_PROJECT_DIR=gmake-mingw
|
||||
BUILD_OUTPUT_DIR=win32_mingw
|
||||
BUILD_TOOLS_CONFIG=release32
|
||||
EXE=.exe
|
||||
endif
|
||||
|
||||
.build/$(BUILD_OUTPUT_DIR)/bin/shadercRelease$(EXE): .build/projects/$(BUILD_PROJECT_DIR)
|
||||
$(SILENT) make -C .build/projects/$(BUILD_PROJECT_DIR) -f shaderc.make config=$(BUILD_TOOLS_CONFIG)
|
||||
|
||||
tools/bin/$(OS)/shaderc$(EXE): .build/$(BUILD_OUTPUT_DIR)/bin/shadercRelease$(EXE)
|
||||
$(SILENT) cp $(<) $(@)
|
||||
|
||||
.build/$(BUILD_OUTPUT_DIR)/bin/geometrycRelease$(EXE): .build/projects/$(BUILD_PROJECT_DIR)
|
||||
$(SILENT) make -C .build/projects/$(BUILD_PROJECT_DIR) -f geometryc.make config=$(BUILD_TOOLS_CONFIG)
|
||||
|
||||
tools/bin/$(OS)/geometryc$(EXE): .build/$(BUILD_OUTPUT_DIR)/bin/geometrycRelease$(EXE)
|
||||
$(SILENT) cp $(<) $(@)
|
||||
|
||||
tools: tools/bin/$(OS)/shaderc$(EXE) tools/bin/$(OS)/geometryc$(EXE)
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
*
|
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1 @@
|
|||
*
|
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1 @@
|
|||
*
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue