Browse Source

Don't define VERSION in dev builds

tags/v0.5.0
Andrew Belt 7 years ago
parent
commit
e26235e565
3 changed files with 11 additions and 2 deletions
  1. +3
    -0
      Makefile
  2. +2
    -1
      compile.mk
  3. +6
    -1
      src/app.cpp

+ 3
- 0
Makefile View File

@@ -74,6 +74,9 @@ include compile.mk


dist: all
ifndef VERSION
$(error VERSION must be defined when calling make)
endif
rm -rf dist
$(MAKE) -C plugins/Fundamental dist



+ 2
- 1
compile.mk View File

@@ -1,5 +1,6 @@
VERSION ?= dev
ifdef VERSION
FLAGS += -DVERSION=$(VERSION)
endif

# Generate dependency files alongside the object files
FLAGS += -MMD


+ 6
- 1
src/app.cpp View File

@@ -4,7 +4,12 @@
namespace rack {

std::string gApplicationName = "VCV Rack";
std::string gApplicationVersion = TOSTRING(VERSION);
std::string gApplicationVersion =
#ifdef VERSION
TOSTRING(VERSION);
#else
"dev";
#endif
std::string gApiHost = "http://api.vcvrack.com";

RackWidget *gRackWidget = NULL;


Loading…
Cancel
Save