diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-09-30 07:42:12 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-09-30 07:42:12 (GMT) |
commit | 66cbfad914f8808001cd64f40d4a6199897c5ab9 (patch) | |
tree | 5df3aba931ae6cb2e053a8b04a36e37a3ef1a52a /win/makefile.vc | |
parent | 6e86646cae3278a4956edc97a9cc11020979deac (diff) | |
parent | 29b13551eedd3ef419e3decc1d3bff21e188be7d (diff) | |
download | tk-66cbfad914f8808001cd64f40d4a6199897c5ab9.zip tk-66cbfad914f8808001cd64f40d4a6199897c5ab9.tar.gz tk-66cbfad914f8808001cd64f40d4a6199897c5ab9.tar.bz2 |
Merge 8.6. Format tkCanvPoly.c a little (put the handling of "-line" in two lines, like the other options)
Diffstat (limited to 'win/makefile.vc')
-rw-r--r-- | win/makefile.vc | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/win/makefile.vc b/win/makefile.vc index a72e960..bcc58b9 100644 --- a/win/makefile.vc +++ b/win/makefile.vc @@ -84,6 +84,8 @@ DEFAULT_BUILD_TARGET = release # We have a custom resource file
RCFILE = tk.rc
+USE_WIDECHAR_API = 0
+
# The rules.vc file does much of the hard work in terms of defining
# the build configuration, macros, output directories etc.
!include "rules-ext.vc"
@@ -312,21 +314,21 @@ BITMAPDIR = $(ROOT)\bitmaps # defined in rules.vc
PRJ_INCLUDES = -I"$(BITMAPDIR)" -I"$(XLIBDIR)"
-CONFIG_DEFS =-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 \
- -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 \
- -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 \
- -DSUPPORT_CONFIG_EMBEDDED \
+CONFIG_DEFS =/DSTDC_HEADERS=1 /DHAVE_SYS_TYPES_H=1 /DHAVE_SYS_STAT_H=1 \
+ /DHAVE_STRING_H=1 /DHAVE_MEMORY_H=1 \
+ /DHAVE_STRINGS_H=1 /DHAVE_INTTYPES_H=1 /DHAVE_STDINT_H=1 \
+ /DSUPPORT_CONFIG_EMBEDDED /DUNICODE /D_UNICODE \
!if $(HAVE_UXTHEME_H)
- -DHAVE_UXTHEME_H=1 \
+ /DHAVE_UXTHEME_H=1 \
!endif
!if $(TTK_SQUARE_WIDGET)
- -DTTK_SQUARE_WIDGET=1 \
+ /DTTK_SQUARE_WIDGET=1 \
!endif
!if $(TK_NO_DEPRECATED)
- -DTK_NO_DEPRECATED=1
+ /DTK_NO_DEPRECATED=1
!endif
-PRJ_DEFINES = -DBUILD_ttk $(CONFIG_DEFS) -Dinline=__inline -D _CRT_SECURE_NO_DEPRECATE -D _CRT_NONSTDC_NO_DEPRECATE
+PRJ_DEFINES = /DBUILD_ttk $(CONFIG_DEFS) /Dinline=__inline /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE
# Additional Link libraries needed beyond those in rules.vc
PRJ_LIBS = netapi32.lib gdi32.lib user32.lib userenv.lib
@@ -466,8 +468,8 @@ $(TKTEST): $(TKTESTOBJS) $(TKSTUBLIB) $(TKIMPLIB) $(CAT32): $(_TCLDIR)\win\cat.c
- $(cc32) $(cflags) $(crt) -D_CRT_NONSTDC_NO_DEPRECATE -DCONSOLE -Fo$(TMP_DIR)\ $?
- $(CONEXECMD) -DCONSOLE -stack:16384 $(TMP_DIR)\cat.obj
+ $(cc32) $(cflags) $(crt) /D_CRT_NONSTDC_NO_DEPRECATE /DCONSOLE -Fo$(TMP_DIR)\ $?
+ $(CONEXECMD) /DCONSOLE -stack:16384 $(TMP_DIR)\cat.obj
$(_VC_MANIFEST_EMBED_EXE)
#---------------------------------------------------------------------
@@ -542,8 +544,8 @@ install-pdbs: #---------------------------------------------------------------------
$(TMP_DIR)\testMain.obj: $(WIN_DIR)\winMain.c
- $(cc32) $(appcflags_nostubs) -DTK_TEST \
- -DTCL_USE_STATIC_PACKAGES=$(TCL_USE_STATIC_PACKAGES) \
+ $(cc32) $(appcflags_nostubs) /DTK_TEST \
+ /DTCL_USE_STATIC_PACKAGES=$(TCL_USE_STATIC_PACKAGES) \
-Fo$@ $?
$(TMP_DIR)\tkTest.obj: $(GENERICDIR)\tkTest.c
@@ -560,11 +562,11 @@ $(TMP_DIR)\tkSquare.obj: $(GENERICDIR)\tkSquare.c $(TMP_DIR)\winMain.obj: $(WIN_DIR)\winMain.c
$(cc32) $(appcflags_nostubs) \
- -DTCL_USE_STATIC_PACKAGES=$(TCL_USE_STATIC_PACKAGES) \
+ /DTCL_USE_STATIC_PACKAGES=$(TCL_USE_STATIC_PACKAGES) \
-Fo$@ $?
$(TMP_DIR)\tkMain2.obj: $(GENERICDIR)\tkMain.c
- $(cc32) $(pkgcflags) -DTK_ASCII_MAIN -Fo$@ $?
+ $(cc32) $(pkgcflags) /DTK_ASCII_MAIN -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
@@ -596,7 +598,7 @@ depend: !else
set TCL_LIBRARY=$(TCL_LIBRARY)
$(TCLSH) $(TCLTOOLSDIR:\=/)/mkdepend.tcl -vc32 -out:"$(OUT_DIR)\depend.mk" \
- -passthru:"-DBUILD_tk $(TK_INCLUDES)" $(GENERICDIR),$$(GENERICDIR) \
+ -passthru:"/DBUILD_tk $(TK_INCLUDES)" $(GENERICDIR),$$(GENERICDIR) \
$(WIN_DIR),$$(WIN_DIR) $(TTKDIR),$$(TTKDIR) $(XLIBDIR),$$(XLIBDIR) \
$(BITMAPDIR),$$(BITMAPDIR) @<<
$(TKOBJS)
|