summaryrefslogtreecommitdiffstats
path: root/win/makefile.vc
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2021-11-29 14:38:35 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2021-11-29 14:38:35 (GMT)
commitfc592a5531622654821ba2649b1fe00408b8872a (patch)
treea20760e777942386f14d6e2ef1b07c6bfdd54ea1 /win/makefile.vc
parentc04db20a6c5e5e59bce1d8ab9ee618b64d798037 (diff)
downloadtk-fc592a5531622654821ba2649b1fe00408b8872a.zip
tk-fc592a5531622654821ba2649b1fe00408b8872a.tar.gz
tk-fc592a5531622654821ba2649b1fe00408b8872a.tar.bz2
Implement TIP #599 for Tk 8.6 (only effective when loaded into Tcl 8.7+): Extended build information
Diffstat (limited to 'win/makefile.vc')
-rw-r--r--win/makefile.vc10
1 files changed, 10 insertions, 0 deletions
diff --git a/win/makefile.vc b/win/makefile.vc
index ee14935..250303e 100644
--- a/win/makefile.vc
+++ b/win/makefile.vc
@@ -535,6 +535,13 @@ $(TMP_DIR)\testMain.obj: $(WIN_DIR)\winMain.c
/DTCL_USE_STATIC_PACKAGES=$(TCL_USE_STATIC_PACKAGES) \
-Fo$@ $?
+$(ROOT)\manifest.uuid:
+ copy $(WIN_DIR)\gitmanifest.in $(ROOT)\manifest.uuid
+ git rev-parse HEAD >>$(ROOT)\manifest.uuid
+
+$(TMP_DIR)\tkUuid.h: $(ROOT)\manifest.uuid
+ copy $(WIN_DIR)\tkUuid.h.in+$(ROOT)\manifest.uuid $(TMP_DIR)\tkUuid.h
+
$(TMP_DIR)\tkTest.obj: $(GENERICDIR)\tkTest.c
$(cc32) $(appcflags_nostubs) -Fo$@ $?
@@ -555,6 +562,9 @@ $(TMP_DIR)\winMain.obj: $(WIN_DIR)\winMain.c
$(TMP_DIR)\tkMain2.obj: $(GENERICDIR)\tkMain.c
$(cc32) $(pkgcflags) /DUNICODE /D_UNICODE -Fo$@ $?
+$(TMP_DIR)\tkWindow.obj: $(GENERICDIR)\tkWindow.c $(TMP_DIR)\tkUuid.h
+ $(cc32) $(pkgcflags) -I$(TMP_DIR) -Fo$@ $?
+
# The following objects are part of the stub library and should not
# be built as DLL objects but none of the symbols should be exported
# and no reference made to a C runtime.