Skip to content

Commit 4bd2e65

Browse files
committed
Use git describe for the bossa version
1 parent 1ecb5eb commit 4bd2e65

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Version
55
#
6-
VERSION=1.9
6+
VERSION=$(shell git describe --tags --dirty)
77
WXVERSION=3.0
88

99
#
@@ -41,15 +41,16 @@ COMMON_SRCS+=WinSerialPort.cpp WinPortFactory.cpp
4141
COMMON_LDFLAGS=-Wl,--enable-auto-import -static -static-libstdc++ -static-libgcc
4242
COMMON_LIBS=-ltermcap -Wl,--as-needed -lsetupapi
4343
BOSSA_RC=BossaRes.rc
44-
WIXDIR="C:\Program Files (x86)\WiX Toolset v3.10\bin"
44+
WIXDIR="C:\Program Files (x86)\WiX Toolset v3.11\bin"
4545
CODE_SIGN=$(INSTALLDIR)\\code_sign.p12
4646
TIMESTAMP=http://timestamp.comodoca.com/authenticode
4747
SIGNTOOL="C:\Program Files (x86)\Windows Kits\10\bin\x64\signtool.exe"
4848
INF2CAT="C:\Program Files (x86)\Windows Kits\10\bin\x86\Inf2Cat.exe"
49+
WINVER=$(shell echo $(VERSION) | cut -d - -f 1)
4950

5051
define bossa_msi
5152
$(OBJDIR)\\bossa-$(1)-$(VERSION).wixobj: $(INSTALLDIR)\\bossa.wxs
52-
$(WIXDIR)\\candle.exe -dVersion=$(VERSION) -arch $(1) -out $$@ -ext $(WIXDIR)\\WixUIExtension.dll -ext $(WIXDIR)\\WixDifxAppExtension.dll $$<
53+
$(WIXDIR)\\candle.exe -dVersion=$(WINVER) -arch $(1) -out $$@ -ext $(WIXDIR)\\WixUIExtension.dll -ext $(WIXDIR)\\WixDifxAppExtension.dll $$<
5354

5455
$(BINDIR)\\bossa-$(1)-$(VERSION).msi: $(OBJDIR)\\bossa-$(1)-$(VERSION).wixobj
5556
$(WIXDIR)\\light.exe -cultures:null -out $$@ -pdbout $(OBJDIR)\\bossa.wixpdb -sice:ICE57 -ext $(WIXDIR)\\WixUIExtension.dll -ext $(WIXDIR)\\WixDifxAppExtension.dll $(WIXDIR)\\difxapp_$(1).wixlib $$<
@@ -193,8 +194,7 @@ ARMOBJCOPY=$(ARM)objcopy
193194
#
194195
# CXX Flags
195196
#
196-
# COMMON_CXXFLAGS+=-Wall -Werror -MT $@ -MD -MP -MF $(@:%.o=%.d) -DVERSION=\"$(VERSION)\" -g -O2
197-
COMMON_CXXFLAGS+=-Wall -MT $@ -MD -MP -MF $(@:%.o=%.d) -DVERSION=\"$(VERSION)\" -g -O2 $(CXXFLAGS)
197+
COMMON_CXXFLAGS+=-Wall -Werror -MT $@ -MD -MP -MF $(@:%.o=%.d) -DVERSION=\"$(VERSION)\" -g -O2 $(CXXFLAGS)
198198
WX_CXXFLAGS:=$(shell wx-config --cxxflags --version=$(WXVERSION)) -DWX_PRECOMP -Wno-ctor-dtor-privacy -O2 -fno-strict-aliasing
199199
BOSSA_CXXFLAGS=$(COMMON_CXXFLAGS) $(WX_CXXFLAGS)
200200
BOSSAC_CXXFLAGS=$(COMMON_CXXFLAGS)

0 commit comments

Comments
 (0)