Skip to content

Commit

Permalink
Build system improvements.
Browse files Browse the repository at this point in the history
Add clean and rebuild targets to the installer project, use these from
the Makefile, and switch to VS2013 by default in the Makefile.
  • Loading branch information
samhocevar committed Nov 9, 2015
1 parent f0c51ba commit 1c0c85e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
13 changes: 4 additions & 9 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,27 +18,22 @@ TXT = rules/Xorg.txt \
EXE = bin/$(CONFIG)/WinCompose.exe
LANG = $(sort $(subst ., , $(suffix $(basename $(wildcard i18n/*.*.resx unicode/*.*.resx)))))

INSTALLER = WinCompose-Setup-$(VERSION).exe
PORTABLE = WinCompose-NoInstall-$(VERSION).zip

DEVENVDIR = "$(VS110COMNTOOLS)\\..\\..\\Common7\\IDE"
ISCCDIR = c:\\Program Files (x86)\\Inno Setup 5

ISCC = $(ISCCDIR)\\ISCC.exe
DEVENV = $(DEVENVDIR)\\devenv.com
DEVENV = "$(VS120COMNTOOLS)\\..\\..\\Common7\\IDE\\devenv.com"
MSGMERGE = msgmerge

all: clean installer portable

clean:
$(DEVENV) wincompose.sln //clean $(CONFIG) //project wincompose.csproj
rm -f $(INSTALLER) $(PORTABLE)
$(DEVENV) wincompose.sln //clean $(CONFIG) //project installer.vcxproj
rm -f $(PORTABLE)
rm -rf obj wincompose/obj wincompose.gui/obj || true
rm -rf bin wincompose/bin wincompose.gui/bin || true

installer: $(EXE) $(ISS)
rm -f $(INSTALLER)
CONFIG=$(CONFIG) VERSION=$(VERSION) "$(ISCC)" $(ISS)
$(DEVENV) wincompose.sln //rebuild $(CONFIG) //project installer.vcxproj

portable: $(EXE)
rm -f $(PORTABLE)
Expand Down
2 changes: 2 additions & 0 deletions src/installer.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@
set VERSION=$(ApplicationVersion)
set PATH=%PATH%;%ProgramFiles(x86)%\Inno Setup 5
iscc $(SolutionDir)\installer.iss</NMakeBuildCommandLine>
<NMakeRebuildCommandLine>$(NMakeBuildCommandLine)</NMakeRebuildCommandLine>
<NMakeCleanCommandLine>del WinCompose-Setup-$(ApplicationVersion).exe</NMakeCleanCommandLine>
</PropertyGroup>
<ItemDefinitionGroup>
</ItemDefinitionGroup>
Expand Down

0 comments on commit 1c0c85e

Please sign in to comment.