diff options
Diffstat (limited to 'win')
-rw-r--r-- | win/Makefile.in | 10 | ||||
-rwxr-xr-x | win/gitmanifest.in | 1 | ||||
-rw-r--r-- | win/makefile.vc | 15 | ||||
-rw-r--r-- | win/rules.vc | 2 | ||||
-rwxr-xr-x | win/tclUuid.h.in | 1 | ||||
-rw-r--r-- | win/tclWinInit.c | 3 |
6 files changed, 28 insertions, 4 deletions
diff --git a/win/Makefile.in b/win/Makefile.in index 3a8e0a9..d3d049b 100644 --- a/win/Makefile.in +++ b/win/Makefile.in @@ -673,6 +673,16 @@ tclPkgConfig.${OBJEXT}: tclPkgConfig.c -DBUILD_tcl \ @DEPARG@ $(CC_OBJNAME) +tclBasic.${OBJEXT}: tclBasic.c tclUuid.h + +$(TOP_DIR)/manifest.uuid: + printf "git-" >$(TOP_DIR)/manifest.uuid + git rev-parse HEAD >>$(TOP_DIR)/manifest.uuid + +tclUuid.h: $(TOP_DIR)/manifest.uuid + echo "#define TCL_VERSION_UUID \\" >$@ + cat $(TOP_DIR)/manifest.uuid >>$@ + # 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 diff --git a/win/gitmanifest.in b/win/gitmanifest.in new file mode 100755 index 0000000..3e7de84 --- /dev/null +++ b/win/gitmanifest.in @@ -0,0 +1 @@ +git-
\ No newline at end of file diff --git a/win/makefile.vc b/win/makefile.vc index 49a82d2..0914654 100644 --- a/win/makefile.vc +++ b/win/makefile.vc @@ -798,8 +798,19 @@ $(TMP_DIR)\tclMainW.obj: $(GENERICDIR)\tclMain.c $(cc32) $(pkgcflags) /DUNICODE /D_UNICODE \
-Fo$@ $?
-$(TMP_DIR)\tclTest.obj: $(GENERICDIR)\tclTest.c
- $(cc32) $(appcflags) -Fo$@ $?
+$(ROOT)\manifest.uuid:
+ copy $(WIN_DIR)\gitmanifest.in $(ROOT)\manifest.uuid
+ git rev-parse HEAD >>$(ROOT)\manifest.uuid
+
+$(TMP_DIR)\tclUuid.h: $(ROOT)\manifest.uuid
+ copy $(WIN_DIR)\tclUuid.h.in+$(ROOT)\manifest.uuid $(TMP_DIR)\tclUuid.h
+
+$(TMP_DIR)\tclBasic.obj: $(GENERICDIR)\tclBasic.c $(TMP_DIR)\tclUuid.h
+ $(cc32) $(pkgcflags) -I$(TMP_DIR) \
+ -Fo$@ $(GENERICDIR)\tclBasic.c
+
+$(TMP_DIR)\tclTest.obj: $(GENERICDIR)\tclTest.c $(TMP_DIR)\tclUuid.h
+ $(cc32) $(appcflags) -I$(TMP_DIR) -Fo$@ $?
$(TMP_DIR)\tclTestObj.obj: $(GENERICDIR)\tclTestObj.c
$(cc32) $(appcflags) -Fo$@ $?
diff --git a/win/rules.vc b/win/rules.vc index 2ec5292..0e99225 100644 --- a/win/rules.vc +++ b/win/rules.vc @@ -1331,7 +1331,7 @@ INCLUDE_INSTALL_DIR = $(_INSTALLDIR)\..\include # baselibs - minimum Windows libraries required. Parent makefile can
# define PRJ_LIBS before including rules.rc if additional libs are needed
-OPTDEFINES = /DSTDC_HEADERS
+OPTDEFINES = /DSTDC_HEADERS /DUSE_NMAKE=1
!if $(VCVERSION) > 1600
OPTDEFINES = $(OPTDEFINES) /DHAVE_STDINT_H=1
!else
diff --git a/win/tclUuid.h.in b/win/tclUuid.h.in new file mode 100755 index 0000000..cbb83e4 --- /dev/null +++ b/win/tclUuid.h.in @@ -0,0 +1 @@ +#define TCL_VERSION_UUID \ diff --git a/win/tclWinInit.c b/win/tclWinInit.c index 2830a85..e51b909 100644 --- a/win/tclWinInit.c +++ b/win/tclWinInit.c @@ -535,7 +535,8 @@ TclpSetVariables( TCL_GLOBAL_ONLY); } -#ifndef NDEBUG +#if !defined(NDEBUG) && !defined(TCL_NO_DEPRECATED) && TCL_MAJOR_VERSION < 9 + /* * The existence of the "debug" element of the tcl_platform array * indicates that this particular Tcl shell has been compiled with debug |