2013-03-28 08:18:29 +04:00
|
|
|
#
|
2024-01-14 12:56:36 +03:00
|
|
|
# Copyright 2011-2024 Branimir Karadzic. All rights reserved.
|
2022-01-15 22:59:06 +03:00
|
|
|
# License: https://github.com/bkaradzic/bgfx/blob/master/LICENSE
|
2013-03-28 08:18:29 +04:00
|
|
|
#
|
|
|
|
|
2014-03-03 09:27:22 +04:00
|
|
|
UNAME := $(shell uname)
|
2024-06-26 23:17:28 +03:00
|
|
|
ifeq ($(UNAME),$(filter $(UNAME),Linux Darwin))
|
2014-03-03 09:27:22 +04:00
|
|
|
ifeq ($(UNAME),$(filter $(UNAME),Darwin))
|
|
|
|
OS=darwin
|
|
|
|
else
|
|
|
|
OS=linux
|
|
|
|
endif
|
2021-05-01 03:46:34 +03:00
|
|
|
|
|
|
|
help:
|
|
|
|
@echo Available targets:
|
|
|
|
@grep -E "^[a-zA-Z0-9_-]+:.*?## .*$$" $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
|
|
|
|
|
2014-03-03 09:27:22 +04:00
|
|
|
else
|
|
|
|
OS=windows
|
2016-03-04 11:09:18 +03:00
|
|
|
|
|
|
|
help: projgen
|
|
|
|
|
2014-03-03 09:27:22 +04:00
|
|
|
endif
|
|
|
|
|
2015-04-11 00:40:47 +03:00
|
|
|
# $(info $(OS))
|
2015-04-10 17:46:49 +03:00
|
|
|
|
2016-01-20 07:00:21 +03:00
|
|
|
BX_DIR?=../bx
|
2020-05-11 03:22:54 +03:00
|
|
|
GENIE?=$(BX_DIR)/tools/bin/$(OS)/genie $(EXTRA_GENIE_ARGS)
|
2016-06-23 05:56:13 +03:00
|
|
|
NINJA?=$(BX_DIR)/tools/bin/$(OS)/ninja
|
2014-03-03 09:27:22 +04:00
|
|
|
|
2016-03-04 10:20:51 +03:00
|
|
|
.PHONY: help
|
|
|
|
|
|
|
|
clean: ## Clean all intermediate files.
|
|
|
|
@echo Cleaning...
|
|
|
|
-@rm -rf .build
|
|
|
|
@mkdir .build
|
|
|
|
|
|
|
|
projgen: ## Generate project files for all configurations.
|
2023-09-03 22:06:01 +03:00
|
|
|
$(GENIE) --with-tools --with-combined-examples --with-shared-lib vs2019
|
2017-12-17 20:41:08 +03:00
|
|
|
$(GENIE) --with-tools --with-combined-examples --with-shared-lib --gcc=mingw-gcc gmake
|
2024-10-26 22:02:05 +03:00
|
|
|
$(GENIE) --with-tools --with-combined-examples --with-shared-lib --gcc=mingw-clang gmake
|
2017-12-17 20:41:08 +03:00
|
|
|
$(GENIE) --with-tools --with-combined-examples --with-shared-lib --gcc=linux-gcc gmake
|
2024-10-26 22:02:05 +03:00
|
|
|
$(GENIE) --with-tools --with-combined-examples --with-shared-lib --gcc=linux-clang gmake
|
2021-01-01 05:17:39 +03:00
|
|
|
$(GENIE) --with-tools --with-combined-examples --with-shared-lib --gcc=osx-x64 gmake
|
|
|
|
$(GENIE) --with-tools --with-combined-examples --with-shared-lib --gcc=osx-arm64 gmake
|
2020-01-29 18:00:51 +03:00
|
|
|
$(GENIE) --with-tools --with-combined-examples --with-shared-lib --xcode=osx xcode9
|
|
|
|
$(GENIE) --with-tools --with-combined-examples --with-shared-lib --xcode=ios xcode9
|
2022-10-22 22:02:34 +03:00
|
|
|
$(GENIE) --with-combined-examples --with-shared-lib --gcc=android-arm gmake
|
|
|
|
$(GENIE) --with-combined-examples --with-shared-lib --gcc=android-arm64 gmake
|
|
|
|
$(GENIE) --with-combined-examples --with-shared-lib --gcc=android-x86 gmake
|
|
|
|
$(GENIE) --with-combined-examples --with-shared-lib --gcc=android-x86_64 gmake
|
2017-12-17 20:41:08 +03:00
|
|
|
$(GENIE) --with-combined-examples --gcc=ios-arm gmake
|
|
|
|
$(GENIE) --with-combined-examples --gcc=ios-arm64 gmake
|
|
|
|
$(GENIE) --with-combined-examples --gcc=rpi gmake
|
2013-03-28 08:18:29 +04:00
|
|
|
|
2019-02-28 06:55:55 +03:00
|
|
|
idl: ## Generate code from IDL.
|
|
|
|
@echo Generating code from IDL.
|
2020-09-01 18:36:52 +03:00
|
|
|
cd scripts && ../$(GENIE) idl
|
2019-02-28 06:55:55 +03:00
|
|
|
|
2013-11-23 07:14:50 +04:00
|
|
|
.build/projects/gmake-android-arm:
|
2022-10-22 22:02:34 +03:00
|
|
|
$(GENIE) --gcc=android-arm --with-combined-examples --with-shared-lib gmake
|
2016-03-04 10:20:51 +03:00
|
|
|
android-arm-debug: .build/projects/gmake-android-arm ## Build - Android ARM Debug
|
2015-04-10 17:46:49 +03:00
|
|
|
$(MAKE) -R -C .build/projects/gmake-android-arm config=debug
|
2016-03-04 10:20:51 +03:00
|
|
|
android-arm-release: .build/projects/gmake-android-arm ## Build - Android ARM Release
|
2015-04-10 17:46:49 +03:00
|
|
|
$(MAKE) -R -C .build/projects/gmake-android-arm config=release
|
2016-03-04 10:20:51 +03:00
|
|
|
android-arm: android-arm-debug android-arm-release ## Build - Android ARM Debug and Release
|
2013-04-16 10:10:32 +04:00
|
|
|
|
2019-06-27 01:29:55 +03:00
|
|
|
.build/projects/gmake-android-arm64:
|
2022-10-22 22:02:34 +03:00
|
|
|
$(GENIE) --gcc=android-arm64 --with-combined-examples --with-shared-lib gmake
|
2019-06-27 01:29:55 +03:00
|
|
|
android-arm64-debug: .build/projects/gmake-android-arm64 ## Build - Android ARM64 Debug
|
|
|
|
$(MAKE) -R -C .build/projects/gmake-android-arm64 config=debug
|
|
|
|
android-arm64-release: .build/projects/gmake-android-arm64 ## Build - Android ARM64 Release
|
|
|
|
$(MAKE) -R -C .build/projects/gmake-android-arm64 config=release
|
|
|
|
android-arm64: android-arm64-debug android-arm64-release ## Build - Android ARM64 Debug and Release
|
|
|
|
|
2013-11-23 07:14:50 +04:00
|
|
|
.build/projects/gmake-android-x86:
|
2022-10-22 22:02:34 +03:00
|
|
|
$(GENIE) --gcc=android-x86 --with-combined-examples --with-shared-lib gmake
|
2016-03-04 10:20:51 +03:00
|
|
|
android-x86-debug: .build/projects/gmake-android-x86 ## Build - Android x86 Debug and Release
|
2015-04-10 17:46:49 +03:00
|
|
|
$(MAKE) -R -C .build/projects/gmake-android-x86 config=debug
|
2016-03-04 10:20:51 +03:00
|
|
|
android-x86-release: .build/projects/gmake-android-x86 ## Build - Android x86 Debug and Release
|
2015-04-10 17:46:49 +03:00
|
|
|
$(MAKE) -R -C .build/projects/gmake-android-x86 config=release
|
2016-03-04 10:20:51 +03:00
|
|
|
android-x86: android-x86-debug android-x86-release ## Build - Android x86 Debug and Release
|
2013-11-09 22:52:19 +04:00
|
|
|
|
2022-10-22 22:02:34 +03:00
|
|
|
.build/projects/gmake-android-x86_64:
|
|
|
|
$(GENIE) --gcc=android-x86_64 --with-combined-examples --with-shared-lib gmake
|
|
|
|
android-x86_64-debug: .build/projects/gmake-android-x86_64 ## Build - Android x86_64 Debug and Release
|
|
|
|
$(MAKE) -R -C .build/projects/gmake-android-x86_64 config=debug
|
|
|
|
android-x86_64-release: .build/projects/gmake-android-x86_64 ## Build - Android x86_64 Debug and Release
|
|
|
|
$(MAKE) -R -C .build/projects/gmake-android-x86_64 config=release
|
|
|
|
android-x86_64: android-x86_64-debug android-x86_64-release ## Build - Android x86_64 Debug and Release
|
|
|
|
|
2020-05-17 05:45:55 +03:00
|
|
|
.build/projects/gmake-wasm:
|
|
|
|
$(GENIE) --gcc=wasm --with-combined-examples gmake
|
|
|
|
wasm-debug: .build/projects/gmake-wasm ## Build - Emscripten Debug
|
|
|
|
$(MAKE) -R -C .build/projects/gmake-wasm config=debug
|
|
|
|
wasm-release: .build/projects/gmake-wasm ## Build - Emscripten Release
|
|
|
|
$(MAKE) -R -C .build/projects/gmake-wasm config=release
|
|
|
|
wasm: wasm-debug wasm-release ## Build - Emscripten Debug and Release
|
2014-03-17 07:10:25 +04:00
|
|
|
|
2024-10-26 22:02:05 +03:00
|
|
|
.build/projects/gmake-linux-gcc:
|
2017-09-22 07:10:05 +03:00
|
|
|
$(GENIE) --with-tools --with-combined-examples --with-shared-lib --gcc=linux-gcc gmake
|
2024-10-26 22:02:05 +03:00
|
|
|
linux-gcc-debug64: .build/projects/gmake-linux-gcc ## Build - Linux GCC x64 Debug
|
|
|
|
$(MAKE) -R -C .build/projects/gmake-linux-gcc config=debug64
|
|
|
|
linux-gcc-release64: .build/projects/gmake-linux-gcc ## Build - Linux GCC x64 Release
|
|
|
|
$(MAKE) -R -C .build/projects/gmake-linux-gcc config=release64
|
|
|
|
linux-gcc: linux-gcc-debug64 linux-gcc-release64 ## Build - Linux GCC x86/x64 Debug and Release
|
|
|
|
|
|
|
|
.build/projects/gmake-linux-clang:
|
|
|
|
$(GENIE) --with-tools --with-combined-examples --with-shared-lib --gcc=linux-clang gmake
|
|
|
|
linux-clang-debug64: .build/projects/gmake-linux-clang ## Build - Linux Clang x64 Debug
|
2024-10-30 18:52:20 +03:00
|
|
|
$(MAKE) -R -C .build/projects/gmake-linux-clang config=debug64
|
2024-10-26 22:02:05 +03:00
|
|
|
linux-clang-release64: .build/projects/gmake-linux-clang ## Build - Linux Clang x64 Release
|
|
|
|
$(MAKE) -R -C .build/projects/gmake-linux-clang config=release64
|
|
|
|
linux-clang: linux-clang-debug64 linux-clang-release64 ## Build - Linux Clang x86/x64 Debug and Release
|
2013-03-28 08:18:29 +04:00
|
|
|
|
2014-10-19 02:44:45 +04:00
|
|
|
.build/projects/gmake-mingw-gcc:
|
2018-08-02 20:04:10 +03:00
|
|
|
$(GENIE) --with-tools --with-combined-examples --with-shared-lib --os=windows --gcc=mingw-gcc gmake
|
2016-03-04 10:20:51 +03:00
|
|
|
mingw-gcc-debug32: .build/projects/gmake-mingw-gcc ## Build - MinGW GCC x86 Debug
|
2015-04-10 17:46:49 +03:00
|
|
|
$(MAKE) -R -C .build/projects/gmake-mingw-gcc config=debug32
|
2016-03-04 10:20:51 +03:00
|
|
|
mingw-gcc-release32: .build/projects/gmake-mingw-gcc ## Build - MinGW GCC x86 Release
|
2015-04-10 17:46:49 +03:00
|
|
|
$(MAKE) -R -C .build/projects/gmake-mingw-gcc config=release32
|
2016-03-04 10:20:51 +03:00
|
|
|
mingw-gcc-debug64: .build/projects/gmake-mingw-gcc ## Build - MinGW GCC x64 Debug
|
2015-04-10 17:46:49 +03:00
|
|
|
$(MAKE) -R -C .build/projects/gmake-mingw-gcc config=debug64
|
2016-03-04 10:20:51 +03:00
|
|
|
mingw-gcc-release64: .build/projects/gmake-mingw-gcc ## Build - MinGW GCC x64 Release
|
2015-04-10 17:46:49 +03:00
|
|
|
$(MAKE) -R -C .build/projects/gmake-mingw-gcc config=release64
|
2016-03-04 10:20:51 +03:00
|
|
|
mingw-gcc: mingw-gcc-debug32 mingw-gcc-release32 mingw-gcc-debug64 mingw-gcc-release64 ## Build - MinGW GCC x86/x64 Debug and Release
|
2014-12-13 08:19:13 +03:00
|
|
|
|
|
|
|
.build/projects/gmake-mingw-clang:
|
2022-09-19 06:11:51 +03:00
|
|
|
$(GENIE) --with-tools --with-combined-examples --with-shared-lib --os=windows --gcc=mingw-clang gmake
|
2016-03-04 10:20:51 +03:00
|
|
|
mingw-clang-debug32: .build/projects/gmake-mingw-clang ## Build - MinGW Clang x86 Debug
|
2015-04-10 17:46:49 +03:00
|
|
|
$(MAKE) -R -C .build/projects/gmake-mingw-clang config=debug32
|
2016-03-04 10:20:51 +03:00
|
|
|
mingw-clang-release32: .build/projects/gmake-mingw-clang ## Build - MinGW Clang x86 Release
|
2015-04-10 17:46:49 +03:00
|
|
|
$(MAKE) -R -C .build/projects/gmake-mingw-clang config=release32
|
2016-03-04 10:20:51 +03:00
|
|
|
mingw-clang-debug64: .build/projects/gmake-mingw-clang ## Build - MinGW Clang x64 Debug
|
2015-04-10 17:46:49 +03:00
|
|
|
$(MAKE) -R -C .build/projects/gmake-mingw-clang config=debug64
|
2016-03-04 10:20:51 +03:00
|
|
|
mingw-clang-release64: .build/projects/gmake-mingw-clang ## Build - MinGW Clang x64 Release
|
2015-04-10 17:46:49 +03:00
|
|
|
$(MAKE) -R -C .build/projects/gmake-mingw-clang config=release64
|
2016-03-04 10:20:51 +03:00
|
|
|
mingw-clang: mingw-clang-debug32 mingw-clang-release32 mingw-clang-debug64 mingw-clang-release64 ## Build - MinGW Clang x86/x64 Debug and Release
|
2013-03-28 08:18:29 +04:00
|
|
|
|
2023-09-03 22:06:01 +03:00
|
|
|
.build/projects/vs2019:
|
|
|
|
$(GENIE) --with-tools --with-combined-examples --with-shared-lib vs2019
|
|
|
|
vs2019-debug32: .build/projects/vs2019 ## Build - vs2019 x86 Debug
|
|
|
|
devenv .build/projects/vs2019/bgfx.sln /Build "Debug|Win32"
|
|
|
|
vs2019-release32: .build/projects/vs2019 ## Build - vs2019 x86 Release
|
|
|
|
devenv .build/projects/vs2019/bgfx.sln /Build "Release|Win32"
|
|
|
|
vs2019-debug64: .build/projects/vs2019 ## Build - vs2019 x64 Debug
|
|
|
|
devenv .build/projects/vs2019/bgfx.sln /Build "Debug|x64"
|
|
|
|
vs2019-release64: .build/projects/vs2019 ## Build - vs2019 x64 Release
|
|
|
|
devenv .build/projects/vs2019/bgfx.sln /Build "Release|x64"
|
|
|
|
vs2019: vs2019-debug32 vs2019-release32 vs2019-debug64 vs2019-release64 ## Build - vs2019 x86/x64 Debug and Release
|
|
|
|
|
2021-01-01 05:17:39 +03:00
|
|
|
.build/projects/gmake-osx-x64:
|
|
|
|
$(GENIE) --with-tools --with-combined-examples --with-shared-lib --gcc=osx-x64 gmake
|
|
|
|
.build/projects/gmake-osx-arm64:
|
|
|
|
$(GENIE) --with-tools --with-combined-examples --with-shared-lib --gcc=osx-arm64 gmake
|
2020-11-16 23:02:29 +03:00
|
|
|
|
2021-01-01 05:17:39 +03:00
|
|
|
osx-debug: osx-x64-debug osx-arm64-debug ## Build - macOS Universal Debug
|
|
|
|
osx-release: osx-x64-release osx-arm64-release ## Build - macOS Universal Release
|
|
|
|
osx: osx-debug osx-release ## Build - macOS Universal Debug and Release
|
2020-11-16 23:02:29 +03:00
|
|
|
|
2021-01-01 05:17:39 +03:00
|
|
|
osx-x64-debug: .build/projects/gmake-osx-x64 ## Build - macOS x64 Debug
|
|
|
|
$(MAKE) -C .build/projects/gmake-osx-x64 config=debug
|
|
|
|
osx-x64-release: .build/projects/gmake-osx-x64 ## Build - macOS x64 Release
|
|
|
|
$(MAKE) -C .build/projects/gmake-osx-x64 config=release
|
|
|
|
osx-x64: osx-x64-debug osx-x64-release ## Build - macOS x64 Debug and Release
|
|
|
|
|
|
|
|
osx-arm64-debug: .build/projects/gmake-osx-arm64 ## Build - macOS ARM Debug
|
|
|
|
$(MAKE) -C .build/projects/gmake-osx-arm64 config=debug
|
|
|
|
osx-arm64-release: .build/projects/gmake-osx-arm64 ## Build - macOS ARM Release
|
|
|
|
$(MAKE) -C .build/projects/gmake-osx-arm64 config=release
|
2022-05-02 18:50:47 +03:00
|
|
|
osx-arm64: osx-arm64-debug osx-arm64-release ## Build - macOS ARM Debug and Release
|
2013-03-28 08:18:29 +04:00
|
|
|
|
2013-11-23 07:14:50 +04:00
|
|
|
.build/projects/gmake-ios-arm:
|
2014-09-11 08:40:40 +04:00
|
|
|
$(GENIE) --gcc=ios-arm gmake
|
2016-03-04 10:20:51 +03:00
|
|
|
ios-arm-debug: .build/projects/gmake-ios-arm ## Build - iOS ARM Debug
|
2015-04-10 17:46:49 +03:00
|
|
|
$(MAKE) -R -C .build/projects/gmake-ios-arm config=debug
|
2016-03-04 10:20:51 +03:00
|
|
|
ios-arm-release: .build/projects/gmake-ios-arm ## Build - iOS ARM Release
|
2015-04-10 17:46:49 +03:00
|
|
|
$(MAKE) -R -C .build/projects/gmake-ios-arm config=release
|
2016-03-04 10:20:51 +03:00
|
|
|
ios-arm: ios-arm-debug ios-arm-release ## Build - iOS ARM Debug and Release
|
2013-07-22 01:44:53 +04:00
|
|
|
|
2016-09-10 20:42:36 +03:00
|
|
|
.build/projects/gmake-ios-arm64:
|
|
|
|
$(GENIE) --gcc=ios-arm64 gmake
|
|
|
|
ios-arm64-debug: .build/projects/gmake-ios-arm64 ## Build - iOS ARM64 Debug
|
|
|
|
$(MAKE) -R -C .build/projects/gmake-ios-arm64 config=debug
|
|
|
|
ios-arm64-release: .build/projects/gmake-ios-arm64 ## Build - iOS ARM64 Release
|
|
|
|
$(MAKE) -R -C .build/projects/gmake-ios-arm64 config=release
|
|
|
|
ios-arm64: ios-arm64-debug ios-arm64-release ## Build - iOS ARM64 Debug and Release
|
|
|
|
|
2014-08-25 04:41:41 +04:00
|
|
|
.build/projects/gmake-rpi:
|
2014-09-11 08:40:40 +04:00
|
|
|
$(GENIE) --gcc=rpi gmake
|
2016-03-04 10:20:51 +03:00
|
|
|
rpi-debug: .build/projects/gmake-rpi ## Build - RasberryPi Debug
|
2015-04-10 17:46:49 +03:00
|
|
|
$(MAKE) -R -C .build/projects/gmake-rpi config=debug
|
2016-03-04 10:20:51 +03:00
|
|
|
rpi-release: .build/projects/gmake-rpi ## Build - RasberryPi Release
|
2015-04-10 17:46:49 +03:00
|
|
|
$(MAKE) -R -C .build/projects/gmake-rpi config=release
|
2016-03-04 10:20:51 +03:00
|
|
|
rpi: rpi-debug rpi-release ## Build - RasberryPi Debug and Release
|
2014-08-25 04:41:41 +04:00
|
|
|
|
2014-02-10 06:59:49 +04:00
|
|
|
###
|
|
|
|
|
|
|
|
SILENT ?= @
|
|
|
|
|
|
|
|
UNAME := $(shell uname)
|
2024-06-26 23:17:28 +03:00
|
|
|
ifeq ($(UNAME),$(filter $(UNAME),Linux Darwin))
|
2014-02-10 06:59:49 +04:00
|
|
|
ifeq ($(UNAME),$(filter $(UNAME),Darwin))
|
|
|
|
OS=darwin
|
2024-10-26 22:02:05 +03:00
|
|
|
BUILD_PROJECT_DIR=gmake-osx-arm64
|
|
|
|
BUILD_OUTPUT_DIR=osx-arm64
|
2021-01-01 05:17:39 +03:00
|
|
|
BUILD_TOOLS_CONFIG=release
|
2015-04-01 01:09:43 +03:00
|
|
|
BUILD_TOOLS_SUFFIX=Release
|
2014-02-10 06:59:49 +04:00
|
|
|
EXE=
|
|
|
|
else
|
|
|
|
OS=linux
|
|
|
|
BUILD_PROJECT_DIR=gmake-linux
|
2014-02-10 07:05:33 +04:00
|
|
|
BUILD_OUTPUT_DIR=linux64_gcc
|
|
|
|
BUILD_TOOLS_CONFIG=release64
|
2015-04-01 01:09:43 +03:00
|
|
|
BUILD_TOOLS_SUFFIX=Release
|
2014-02-10 06:59:49 +04:00
|
|
|
EXE=
|
|
|
|
endif
|
|
|
|
else
|
|
|
|
OS=windows
|
2014-10-19 02:44:45 +04:00
|
|
|
BUILD_PROJECT_DIR=gmake-mingw-gcc
|
2016-02-26 08:08:11 +03:00
|
|
|
BUILD_OUTPUT_DIR=win64_mingw-gcc
|
|
|
|
BUILD_TOOLS_CONFIG=release64
|
2015-04-01 01:09:43 +03:00
|
|
|
BUILD_TOOLS_SUFFIX=Release
|
2014-02-10 06:59:49 +04:00
|
|
|
EXE=.exe
|
|
|
|
endif
|
|
|
|
|
2016-03-04 10:20:51 +03:00
|
|
|
geometryc: .build/projects/$(BUILD_PROJECT_DIR) ## Build geometryc tool.
|
2016-04-22 17:25:55 +03:00
|
|
|
$(SILENT) $(MAKE) -C .build/projects/$(BUILD_PROJECT_DIR) geometryc config=$(BUILD_TOOLS_CONFIG)
|
2016-02-02 09:11:49 +03:00
|
|
|
$(SILENT) cp .build/$(BUILD_OUTPUT_DIR)/bin/geometryc$(BUILD_TOOLS_SUFFIX)$(EXE) tools/bin/$(OS)/geometryc$(EXE)
|
|
|
|
|
2019-06-21 00:33:07 +03:00
|
|
|
geometryv: .build/projects/$(BUILD_PROJECT_DIR) ## Build geometryv tool.
|
|
|
|
$(SILENT) $(MAKE) -C .build/projects/$(BUILD_PROJECT_DIR) geometryv config=$(BUILD_TOOLS_CONFIG)
|
|
|
|
$(SILENT) cp .build/$(BUILD_OUTPUT_DIR)/bin/geometryv$(BUILD_TOOLS_SUFFIX)$(EXE) tools/bin/$(OS)/geometryv$(EXE)
|
|
|
|
|
2016-03-04 10:20:51 +03:00
|
|
|
shaderc: .build/projects/$(BUILD_PROJECT_DIR) ## Build shaderc tool.
|
2016-04-22 17:25:55 +03:00
|
|
|
$(SILENT) $(MAKE) -C .build/projects/$(BUILD_PROJECT_DIR) shaderc config=$(BUILD_TOOLS_CONFIG)
|
2016-02-02 09:11:49 +03:00
|
|
|
$(SILENT) cp .build/$(BUILD_OUTPUT_DIR)/bin/shaderc$(BUILD_TOOLS_SUFFIX)$(EXE) tools/bin/$(OS)/shaderc$(EXE)
|
2014-02-10 06:59:49 +04:00
|
|
|
|
2016-03-04 10:20:51 +03:00
|
|
|
texturec: .build/projects/$(BUILD_PROJECT_DIR) ## Build texturec tool.
|
2016-04-22 17:25:55 +03:00
|
|
|
$(SILENT) $(MAKE) -C .build/projects/$(BUILD_PROJECT_DIR) texturec config=$(BUILD_TOOLS_CONFIG)
|
2016-02-02 09:11:49 +03:00
|
|
|
$(SILENT) cp .build/$(BUILD_OUTPUT_DIR)/bin/texturec$(BUILD_TOOLS_SUFFIX)$(EXE) tools/bin/$(OS)/texturec$(EXE)
|
2015-12-28 07:04:17 +03:00
|
|
|
|
2016-04-22 08:12:35 +03:00
|
|
|
texturev: .build/projects/$(BUILD_PROJECT_DIR) ## Build texturev tool.
|
|
|
|
$(SILENT) $(MAKE) -C .build/projects/$(BUILD_PROJECT_DIR) texturev config=$(BUILD_TOOLS_CONFIG)
|
|
|
|
$(SILENT) cp .build/$(BUILD_OUTPUT_DIR)/bin/texturev$(BUILD_TOOLS_SUFFIX)$(EXE) tools/bin/$(OS)/texturev$(EXE)
|
|
|
|
|
2019-06-21 00:33:07 +03:00
|
|
|
tools: geometryc geometryv shaderc texturec texturev ## Build tools.
|
2016-02-26 08:08:11 +03:00
|
|
|
|
2016-12-23 08:14:16 +03:00
|
|
|
clean-tools: ## Clean tools projects.
|
|
|
|
-$(SILENT) rm -r .build/projects/$(BUILD_PROJECT_DIR)
|