comparison makefile.vc @ 1626:fdeeba6c6d09

Add support for mercurial revisions in addition to subversion on Windows.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Wed, 28 Mar 2012 02:28:55 +0000
parents 428148fd0976
children a02ce34692f0
comparison
equal deleted inserted replaced
1625:50856987e794 1626:fdeeba6c6d09
55 # Check the SVN revision number if possible 55 # Check the SVN revision number if possible
56 !if ![subwcrev . win\__SVN__.REV SVN.REV > NUL] 56 !if ![subwcrev . win\__SVN__.REV SVN.REV > NUL]
57 !include SVN.REV 57 !include SVN.REV
58 !message Revision is [$(VERREV)] 58 !message Revision is [$(VERREV)]
59 SVNVERSION=-DVER_REV=$(VERREV) 59 SVNVERSION=-DVER_REV=$(VERREV)
60 !else
61
62 # Check the Mercurial revision number if possible
63 !if ![hg log -r . --template="VER_REV={rev}" > HG.REV]
64 !include HG.REV
65 !message Revision is [$(VER_REV)]
66 SVNVERSION=-DVER_REV=$(VER_REV)
67 !endif
68
60 !endif 69 !endif
61 70
62 CC = cl 71 CC = cl
63 CFLAGS = -c $(PLATFORM_DEF) -D__WIN32__ -DMSVC -DGDIPLUS -DAEROGLASS -D_UNICODE -DUNICODE -DBUILD_DLL -DISOLATION_AWARE_ENABLED=1 -I$(SRCDIR)\platform -I$(SRCDIR) $(SVNVERSION) 72 CFLAGS = -c $(PLATFORM_DEF) -D__WIN32__ -DMSVC -DGDIPLUS -DAEROGLASS -D_UNICODE -DUNICODE -DBUILD_DLL -DISOLATION_AWARE_ENABLED=1 -I$(SRCDIR)\platform -I$(SRCDIR) $(SVNVERSION)
64 LIBS = wsock32.lib kernel32.lib user32.lib comctl32.lib gdi32.lib advapi32.lib shell32.lib comdlg32.lib ole32.lib oleaut32.lib userenv.lib msimg32.lib gdiplus.lib 73 LIBS = wsock32.lib kernel32.lib user32.lib comctl32.lib gdi32.lib advapi32.lib shell32.lib comdlg32.lib ole32.lib oleaut32.lib userenv.lib msimg32.lib gdiplus.lib