summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordavygrvy <davygrvy@noemail.net>2004-01-13 02:01:38 (GMT)
committerdavygrvy <davygrvy@noemail.net>2004-01-13 02:01:38 (GMT)
commitde20313c1023aa75656bbd4fe8a0f722ea17c231 (patch)
treec768098950270689b01851184681d62cfa742b00
parent3abb28a5e54a9354bb9890a3b4eb4b9b3a2e3484 (diff)
downloadtk-de20313c1023aa75656bbd4fe8a0f722ea17c231.zip
tk-de20313c1023aa75656bbd4fe8a0f722ea17c231.tar.gz
tk-de20313c1023aa75656bbd4fe8a0f722ea17c231.tar.bz2
* win/rc/tk.rc:
* win/rc/tk_base.rc: * win/rc/wish.rc: * win/makefile.vc: Refreshed how the resource files are built. Should be a bit easier for people linking with a static Tk library. FossilOrigin-Name: c6f4259e52de6fea22f973c0f298e6b82ff66243
-rw-r--r--win/makefile.vc19
-rw-r--r--win/rc/tk.rc8
-rw-r--r--win/rc/tk_base.rc4
-rw-r--r--win/rc/wish.rc12
4 files changed, 19 insertions, 24 deletions
diff --git a/win/makefile.vc b/win/makefile.vc
index 23252ad..8f5b502 100644
--- a/win/makefile.vc
+++ b/win/makefile.vc
@@ -12,7 +12,7 @@
# Copyright (c) 2001-2003 David Gravereaux.
#
#------------------------------------------------------------------------------
-# RCS: @(#) $Id: makefile.vc,v 1.77 2003/12/23 02:59:12 davygrvy Exp $
+# RCS: @(#) $Id: makefile.vc,v 1.78 2004/01/13 02:01:39 davygrvy Exp $
#------------------------------------------------------------------------------
!if "$(MSVCDIR)" == ""
@@ -433,8 +433,8 @@ dlllflags = $(lflags) -dll
conlflags = $(lflags) -subsystem:console
guilflags = $(lflags) -subsystem:windows
-baselibs = kernel32.lib advapi32.lib user32.lib ole32.lib oleaut32.lib uuid.lib
-guilibs = $(baselibs) shell32.lib gdi32.lib comdlg32.lib winspool.lib imm32.lib comctl32.lib
+baselibs = kernel32.lib user32.lib ole32.lib oleaut32.lib
+guilibs = $(baselibs) gdi32.lib
#---------------------------------------------------------------------
@@ -612,7 +612,7 @@ $(MAN2HELP) $(MAN2HELP2) $(INDEX): $(TCLTOOLSDIR)\$$(@F)
$(CPY) $(TCLTOOLSDIR)\$(@F) $(@D)
$(BMP):
- $(CPY) $(WINDIR)\$(@F) $(@D)
+ $(CPY) $(WINDIR)\rc\$(@F) $(@D)
$(HELPFILE): $(HELPRTF) $(BMP)
cd $(DOCTMP_DIR)
@@ -790,15 +790,8 @@ $<
{$(RCDIR)}.rc{$(TMP_DIR)}.res:
$(rc32) -fo $@ -r -i "$(GENERICDIR)" $(TCL_INCLUDES) \
-!if $(DEBUG)
- -d DEBUG \
-!endif
-!if $(TCL_THREADS)
- -d TCL_THREADS \
-!endif
-!if $(STATIC_BUILD)
- -d STATIC_BUILD \
-!endif
+ -d DEBUG=$(DEBUG) -d TCL_THREADS=$(TCL_THREADS) \
+ -d STATIC_BUILD=$(STATIC_BUILD) \
$<
#---------------------------------------------------------------------
diff --git a/win/rc/tk.rc b/win/rc/tk.rc
index ff234be..c0cbfe0 100644
--- a/win/rc/tk.rc
+++ b/win/rc/tk.rc
@@ -1,4 +1,4 @@
-// RCS: @(#) $Id: tk.rc,v 1.9 2002/06/18 00:34:45 davygrvy Exp $
+// RCS: @(#) $Id: tk.rc,v 1.10 2004/01/13 02:01:55 davygrvy Exp $
//
// Version Resource Script
//
@@ -9,13 +9,13 @@
//
// build-up the name suffix that defines the type of build this is.
//
-#ifdef TCL_THREADS
+#if TCL_THREADS
#define SUFFIX_THREADS "t"
#else
#define SUFFIX_THREADS ""
#endif
-#ifdef DEBUG
+#if DEBUG
#define SUFFIX_DEBUG "d"
#else
#define SUFFIX_DEBUG ""
@@ -42,7 +42,7 @@ BEGIN
BLOCK "040904b0"
BEGIN
VALUE "FileDescription", "Tk DLL\0"
- VALUE "OriginalFilename", "tk" STRINGIFY(JOIN(TK_MAJOR_VERSION,TK_MINOR_VERSION)) SUFFIX ".dll\0"
+ VALUE "OriginalFilename", "tk" STRINGIFY(TK_MAJOR_VERSION) STRINGIFY(TK_MINOR_VERSION) SUFFIX ".dll\0"
VALUE "CompanyName", "ActiveState Corporation\0"
VALUE "FileVersion", TK_PATCH_LEVEL
VALUE "LegalCopyright", "Copyright \251 2001 by ActiveState Corporation, et al\0"
diff --git a/win/rc/tk_base.rc b/win/rc/tk_base.rc
index 7a8a2eb..fa7dc9a 100644
--- a/win/rc/tk_base.rc
+++ b/win/rc/tk_base.rc
@@ -1,8 +1,10 @@
-// RCS: @(#) $Id: tk_base.rc,v 1.2 2000/10/31 01:28:27 davidg Exp $
+// RCS: @(#) $Id: tk_base.rc,v 1.3 2004/01/13 02:01:55 davygrvy Exp $
//
// Base resources needed by Tk whether it's a DLL or a static library.
//
+#include <windows.h>
+
//
// Tk Icon
//
diff --git a/win/rc/wish.rc b/win/rc/wish.rc
index 4a1eb99..a4d45a0 100644
--- a/win/rc/wish.rc
+++ b/win/rc/wish.rc
@@ -1,4 +1,4 @@
-// RCS: @(#) $Id: wish.rc,v 1.8 2002/06/18 00:34:45 davygrvy Exp $
+// RCS: @(#) $Id: wish.rc,v 1.9 2004/01/13 02:01:55 davygrvy Exp $
//
// Version Resource Script
//
@@ -9,19 +9,19 @@
//
// build-up the name suffix that defines the type of build this is.
//
-#ifdef TCL_THREADS
+#if TCL_THREADS
#define SUFFIX_THREADS "t"
#else
#define SUFFIX_THREADS ""
#endif
-#ifdef STATIC_BUILD
+#if STATIC_BUILD
#define SUFFIX_STATIC "s"
#else
#define SUFFIX_STATIC ""
#endif
-#ifdef DEBUG
+#if DEBUG
#define SUFFIX_DEBUG "d"
#else
#define SUFFIX_DEBUG ""
@@ -48,7 +48,7 @@ BEGIN
BLOCK "040904b0"
BEGIN
VALUE "FileDescription", "Wish Application\0"
- VALUE "OriginalFilename", "wish" STRINGIFY(JOIN(TK_MAJOR_VERSION,TK_MINOR_VERSION)) SUFFIX ".exe\0"
+ VALUE "OriginalFilename", "wish" STRINGIFY(TK_MAJOR_VERSION) STRINGIFY(TK_MINOR_VERSION) SUFFIX ".exe\0"
VALUE "CompanyName", "ActiveState Corporation\0"
VALUE "FileVersion", TK_PATCH_LEVEL
VALUE "LegalCopyright", "Copyright \251 2000 by ActiveState Corporation, et al\0"
@@ -71,7 +71,7 @@ END
app ICON DISCARDABLE "wish.ico"
-#ifdef STATIC_BUILD
+#if STATIC_BUILD
#include "tk_base.rc"
#endif