mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2024-11-25 15:15:40 +00:00
Introducing a special release build target with SVN version stamping.
This commit is contained in:
parent
1f50519905
commit
53185c3eff
|
@ -106,6 +106,8 @@ PLATFORM_SRC_FILES = \
|
||||||
Src/OSD/Windows/DirectInputSystem.cpp \
|
Src/OSD/Windows/DirectInputSystem.cpp \
|
||||||
Src/OSD/Windows/WinOutputs.cpp
|
Src/OSD/Windows/WinOutputs.cpp
|
||||||
|
|
||||||
|
.PHONY: clean
|
||||||
|
|
||||||
include Makefiles/Rules.inc
|
include Makefiles/Rules.inc
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
|
|
@ -212,6 +212,17 @@ INCLUDE_DIRS = $(sort $(foreach file,$(SRC_FILES),$(dir $(file))))
|
||||||
#
|
#
|
||||||
all: $(BIN_DIR)/$(OUTFILE)
|
all: $(BIN_DIR)/$(OUTFILE)
|
||||||
|
|
||||||
|
#
|
||||||
|
# Release target: used only to create official builds stamped with the SVN
|
||||||
|
# version number.
|
||||||
|
#
|
||||||
|
release: set_version clean all
|
||||||
|
set_version:
|
||||||
|
$(eval VERSION = 0.3a-svn-$(shell svnversion --no-newline))
|
||||||
|
$(eval SUPERMODEL_BUILD_FLAGS += -DSUPERMODEL_VERSION=\"$(VERSION)\")
|
||||||
|
$(info Building Supermodel Version $(VERSION))
|
||||||
|
|
||||||
|
|
||||||
$(BIN_DIR)/$(OUTFILE): $(BIN_DIR) $(OBJ_DIR) $(OBJ_FILES)
|
$(BIN_DIR)/$(OUTFILE): $(BIN_DIR) $(OBJ_DIR) $(OBJ_FILES)
|
||||||
$(info --------------------------------------------------------------------------------)
|
$(info --------------------------------------------------------------------------------)
|
||||||
$(info Linking Supermodel : $(BIN_DIR)/$(OUTFILE))
|
$(info Linking Supermodel : $(BIN_DIR)/$(OUTFILE))
|
||||||
|
|
|
@ -28,6 +28,8 @@
|
||||||
#ifndef INCLUDED_VERSION_H
|
#ifndef INCLUDED_VERSION_H
|
||||||
#define INCLUDED_VERSION_H
|
#define INCLUDED_VERSION_H
|
||||||
|
|
||||||
|
#ifndef SUPERMODEL_VERSION
|
||||||
#define SUPERMODEL_VERSION "0.3a-WIP"
|
#define SUPERMODEL_VERSION "0.3a-WIP"
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif // INCLUDED_VERSION_H
|
#endif // INCLUDED_VERSION_H
|
||||||
|
|
Loading…
Reference in a new issue