summaryrefslogtreecommitdiffstats
path: root/win/rules.vc
diff options
context:
space:
mode:
authormistachkin <mistachkin@noemail.net>2016-09-19 18:52:19 (GMT)
committermistachkin <mistachkin@noemail.net>2016-09-19 18:52:19 (GMT)
commit5a36bf3be224e85b4a151c895cf6522de8a0cb17 (patch)
tree880b849915c653719640afc6f67da40a683738e2 /win/rules.vc
parent580a1394c0fa9bda104f2226cf9fa2e1ef017b7c (diff)
downloadtk-5a36bf3be224e85b4a151c895cf6522de8a0cb17.zip
tk-5a36bf3be224e85b4a151c895cf6522de8a0cb17.tar.gz
tk-5a36bf3be224e85b4a151c895cf6522de8a0cb17.tar.bz2
Permit static linking to the MSVCRT as a stand-alone option. Enable WinXP SDK compatibility.
FossilOrigin-Name: ab1f0965f1b9ddb339d27718b8c7c1774b7722e4
Diffstat (limited to 'win/rules.vc')
-rw-r--r--win/rules.vc7
1 files changed, 6 insertions, 1 deletions
diff --git a/win/rules.vc b/win/rules.vc
index 0d8cd6b..503df50 100644
--- a/win/rules.vc
+++ b/win/rules.vc
@@ -159,7 +159,7 @@ DEBUGFLAGS = $(DEBUGFLAGS) -RTC1
DEBUGFLAGS = $(DEBUGFLAGS) -GZ
!endif
-COMPILERFLAGS =-W3 -DUNICODE -D_UNICODE
+COMPILERFLAGS =-W3 -DUNICODE -D_UNICODE -D_USING_V110_SDK71_=1
# In v13 -GL and -YX are incompatible.
!if [nmakehlp -c -YX]
@@ -230,6 +230,10 @@ STATIC_BUILD = 1
!else
STATIC_BUILD = 0
!endif
+!if [nmakehlp -f $(OPTS) "nomsvcrt"]
+!message *** Doing nomsvcrt
+MSVCRT = 0
+!else
!if [nmakehlp -f $(OPTS) "msvcrt"]
!message *** Doing msvcrt
MSVCRT = 1
@@ -240,6 +244,7 @@ MSVCRT = 1
MSVCRT = 0
!endif
!endif
+!endif
!if [nmakehlp -f $(OPTS) "staticpkg"] && $(STATIC_BUILD)
!message *** Doing staticpkg
TCL_USE_STATIC_PACKAGES = 1