Skip to content

Commit caed3f9

Browse files
committed
Removed tools executables to avoid repo bloat, and stale executables. Added makefile rule to build tools.
1 parent 0719e74 commit caed3f9

File tree

10 files changed

+42
-0
lines changed

10 files changed

+42
-0
lines changed

makefile

+39
Original file line numberDiff line numberDiff line change
@@ -156,3 +156,42 @@ docs:
156156
clean:
157157
@echo Cleaning...
158158
-@rm -rf .build
159+
160+
###
161+
162+
SILENT ?= @
163+
164+
UNAME := $(shell uname)
165+
ifeq ($(UNAME),$(filter $(UNAME),Linux Darwin))
166+
ifeq ($(UNAME),$(filter $(UNAME),Darwin))
167+
OS=darwin
168+
BUILD_PROJECT_DIR=gmake-osx
169+
BUILD_OUTPUT_DIR=linux64_gcc
170+
EXE=
171+
else
172+
OS=linux
173+
BUILD_PROJECT_DIR=gmake-linux
174+
BUILD_OUTPUT_DIR=osx64_gcc
175+
EXE=
176+
endif
177+
else
178+
OS=windows
179+
BUILD_PROJECT_DIR=gmake-mingw
180+
BUILD_OUTPUT_DIR=win32_mingw
181+
BUILD_TOOLS_CONFIG=release32
182+
EXE=.exe
183+
endif
184+
185+
.build/$(BUILD_OUTPUT_DIR)/bin/shadercRelease$(EXE): .build/projects/$(BUILD_PROJECT_DIR)
186+
$(SILENT) make -C .build/projects/$(BUILD_PROJECT_DIR) -f shaderc.make config=$(BUILD_TOOLS_CONFIG)
187+
188+
tools/bin/$(OS)/shaderc$(EXE): .build/$(BUILD_OUTPUT_DIR)/bin/shadercRelease$(EXE)
189+
$(SILENT) cp $(<) $(@)
190+
191+
.build/$(BUILD_OUTPUT_DIR)/bin/geometrycRelease$(EXE): .build/projects/$(BUILD_PROJECT_DIR)
192+
$(SILENT) make -C .build/projects/$(BUILD_PROJECT_DIR) -f geometryc.make config=$(BUILD_TOOLS_CONFIG)
193+
194+
tools/bin/$(OS)/geometryc$(EXE): .build/$(BUILD_OUTPUT_DIR)/bin/geometrycRelease$(EXE)
195+
$(SILENT) cp $(<) $(@)
196+
197+
tools: tools/bin/$(OS)/shaderc$(EXE) tools/bin/$(OS)/geometryc$(EXE)

tools/bin/darwin/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*

tools/bin/darwin/geometryc

-72.9 KB
Binary file not shown.

tools/bin/darwin/shaderc

-1.37 MB
Binary file not shown.

tools/bin/linux/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*

tools/bin/linux/geometryc

-54.5 KB
Binary file not shown.

tools/bin/linux/shaderc

-1.11 MB
Binary file not shown.

tools/bin/windows/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*

tools/bin/windows/geometryc.exe

-166 KB
Binary file not shown.

tools/bin/windows/shaderc.exe

-1.26 MB
Binary file not shown.

0 commit comments

Comments
 (0)