Mercurial > dwindows
annotate makefile.vc @ 2991:81f9399b11c8
Mac/iOS: Fix exported API function definitions reported by Xcode.
Added missing APIs on functions, not necessary on Mac and iOS technically
but for consistence they should be there and for future use.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Tue, 04 Apr 2023 12:05:14 +0000 |
parents | 531d36ebf37a |
children |
rev | line source |
---|---|
3 | 1 # |
750
e6a9f1c7b0d7
Changes to be smarter about source and destination directories with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
647
diff
changeset
|
2 # Visual C Makefile for Dynamic Windows |
381
0df4ad2ac083
Enable dwindows to be built from a directory other than where the
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
286
diff
changeset
|
3 # |
2881
ac404083dc6b
Rename the Version file Version.mk since it is included by the Makefiles.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2872
diff
changeset
|
4 !include Version.mk |
1350
4333b58d879d
Upped the version number to 2.2. Added a Version file to reduce the number of places
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1251
diff
changeset
|
5 VER = $(DW_MAJOR_VERSION)$(DW_MINOR_VERSION) |
4333b58d879d
Upped the version number to 2.2. Added a Version file to reduce the number of places
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1251
diff
changeset
|
6 VERDOT = $(DW_MAJOR_VERSION).$(DW_MINOR_VERSION) |
1163
2991afb3bf71
Added support for including the svn revision number as the sub version with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1113
diff
changeset
|
7 VERREV = 0 |
640
cd1f9f0bd7e1
Support for building zip file on Win32
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
634
diff
changeset
|
8 |
2167
da33732f182d
Win: Add support for building with Clang/LLVM on Windows. SET CLANG=Y
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2088
diff
changeset
|
9 # Configure alternate compiler based on Clang/LLVM |
da33732f182d
Win: Add support for building with Clang/LLVM on Windows. SET CLANG=Y
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2088
diff
changeset
|
10 !if "$(CLANG)" == "Y" |
2168
b08df531fd71
Win: Rename LIB to WLIB to prevent clobbering the library path.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2167
diff
changeset
|
11 WLIB=llvm-lib.exe |
2167
da33732f182d
Win: Add support for building with Clang/LLVM on Windows. SET CLANG=Y
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2088
diff
changeset
|
12 CC=clang-cl.exe |
da33732f182d
Win: Add support for building with Clang/LLVM on Windows. SET CLANG=Y
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2088
diff
changeset
|
13 LINK=lld-link.exe |
da33732f182d
Win: Add support for building with Clang/LLVM on Windows. SET CLANG=Y
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2088
diff
changeset
|
14 !else |
2168
b08df531fd71
Win: Rename LIB to WLIB to prevent clobbering the library path.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2167
diff
changeset
|
15 WLIB=lib.exe |
2167
da33732f182d
Win: Add support for building with Clang/LLVM on Windows. SET CLANG=Y
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2088
diff
changeset
|
16 CC=cl.exe |
da33732f182d
Win: Add support for building with Clang/LLVM on Windows. SET CLANG=Y
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2088
diff
changeset
|
17 LINK=link.exe |
da33732f182d
Win: Add support for building with Clang/LLVM on Windows. SET CLANG=Y
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2088
diff
changeset
|
18 !endif |
da33732f182d
Win: Add support for building with Clang/LLVM on Windows. SET CLANG=Y
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2088
diff
changeset
|
19 |
750
e6a9f1c7b0d7
Changes to be smarter about source and destination directories with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
647
diff
changeset
|
20 # |
e6a9f1c7b0d7
Changes to be smarter about source and destination directories with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
647
diff
changeset
|
21 # Configure settings for the target platform |
e6a9f1c7b0d7
Changes to be smarter about source and destination directories with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
647
diff
changeset
|
22 # Default to x86 if not specified |
e6a9f1c7b0d7
Changes to be smarter about source and destination directories with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
647
diff
changeset
|
23 # |
e6a9f1c7b0d7
Changes to be smarter about source and destination directories with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
647
diff
changeset
|
24 !if "$(TARGET_CPU)" == "" |
1928
e07a1e176995
Try to get the target CPU from the Visual Studio environment, so you don't need to set TARGET_CPU.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1726
diff
changeset
|
25 !if "$(VSCMD_ARG_TGT_ARCH)" == "" |
2080
8f08d4c9d3fc
Win: Visual Studio 2015 sets PLATFORM=x64 in 64bit intel mode so
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2079
diff
changeset
|
26 !if "$(PLATFORM)" == "" |
750
e6a9f1c7b0d7
Changes to be smarter about source and destination directories with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
647
diff
changeset
|
27 TARGET_CPU=x86 |
1928
e07a1e176995
Try to get the target CPU from the Visual Studio environment, so you don't need to set TARGET_CPU.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1726
diff
changeset
|
28 !else |
2080
8f08d4c9d3fc
Win: Visual Studio 2015 sets PLATFORM=x64 in 64bit intel mode so
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2079
diff
changeset
|
29 TARGET_CPU=$(PLATFORM) |
8f08d4c9d3fc
Win: Visual Studio 2015 sets PLATFORM=x64 in 64bit intel mode so
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2079
diff
changeset
|
30 !endif |
8f08d4c9d3fc
Win: Visual Studio 2015 sets PLATFORM=x64 in 64bit intel mode so
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2079
diff
changeset
|
31 !else |
1928
e07a1e176995
Try to get the target CPU from the Visual Studio environment, so you don't need to set TARGET_CPU.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1726
diff
changeset
|
32 TARGET_CPU=$(VSCMD_ARG_TGT_ARCH) |
e07a1e176995
Try to get the target CPU from the Visual Studio environment, so you don't need to set TARGET_CPU.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1726
diff
changeset
|
33 !endif |
750
e6a9f1c7b0d7
Changes to be smarter about source and destination directories with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
647
diff
changeset
|
34 !endif |
e6a9f1c7b0d7
Changes to be smarter about source and destination directories with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
647
diff
changeset
|
35 |
2778
1660b4ecb92f
Win/OS2: Remove the lib and dll folders and their placeholders.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2398
diff
changeset
|
36 # |
1660b4ecb92f
Win/OS2: Remove the lib and dll folders and their placeholders.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2398
diff
changeset
|
37 # Setup the source and destination directories |
1660b4ecb92f
Win/OS2: Remove the lib and dll folders and their placeholders.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2398
diff
changeset
|
38 # |
1660b4ecb92f
Win/OS2: Remove the lib and dll folders and their placeholders.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2398
diff
changeset
|
39 !if "$(DWINDOWS_SRCDIR)" == "" |
1660b4ecb92f
Win/OS2: Remove the lib and dll folders and their placeholders.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2398
diff
changeset
|
40 SRCDIR=. |
1660b4ecb92f
Win/OS2: Remove the lib and dll folders and their placeholders.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2398
diff
changeset
|
41 !else |
1660b4ecb92f
Win/OS2: Remove the lib and dll folders and their placeholders.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2398
diff
changeset
|
42 SRCDIR=$(DWINDOWS_SRCDIR) |
1660b4ecb92f
Win/OS2: Remove the lib and dll folders and their placeholders.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2398
diff
changeset
|
43 !endif |
1660b4ecb92f
Win/OS2: Remove the lib and dll folders and their placeholders.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2398
diff
changeset
|
44 |
1660b4ecb92f
Win/OS2: Remove the lib and dll folders and their placeholders.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2398
diff
changeset
|
45 !if "$(DWLIBDIR)" == "" |
1660b4ecb92f
Win/OS2: Remove the lib and dll folders and their placeholders.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2398
diff
changeset
|
46 DWLIBDIR=$(SRCDIR) |
1660b4ecb92f
Win/OS2: Remove the lib and dll folders and their placeholders.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2398
diff
changeset
|
47 !endif |
1660b4ecb92f
Win/OS2: Remove the lib and dll folders and their placeholders.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2398
diff
changeset
|
48 |
750
e6a9f1c7b0d7
Changes to be smarter about source and destination directories with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
647
diff
changeset
|
49 !if "$(TARGET_CPU)" == "x86" |
e6a9f1c7b0d7
Changes to be smarter about source and destination directories with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
647
diff
changeset
|
50 PLATFORM_DEF = -DWIN32 |
1113
a049f447999c
Updated makefiles to 2.1 on Windows and OS/2 for packaging.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1030
diff
changeset
|
51 PLATFORM_NAME = win32 |
750
e6a9f1c7b0d7
Changes to be smarter about source and destination directories with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
647
diff
changeset
|
52 !else |
e6a9f1c7b0d7
Changes to be smarter about source and destination directories with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
647
diff
changeset
|
53 PLATFORM_DEF = -DWIN64 |
1113
a049f447999c
Updated makefiles to 2.1 on Windows and OS/2 for packaging.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1030
diff
changeset
|
54 PLATFORM_NAME = win64 |
750
e6a9f1c7b0d7
Changes to be smarter about source and destination directories with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
647
diff
changeset
|
55 !endif |
e6a9f1c7b0d7
Changes to be smarter about source and destination directories with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
647
diff
changeset
|
56 |
e6a9f1c7b0d7
Changes to be smarter about source and destination directories with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
647
diff
changeset
|
57 # |
e6a9f1c7b0d7
Changes to be smarter about source and destination directories with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
647
diff
changeset
|
58 # Settings for either debug or release |
e6a9f1c7b0d7
Changes to be smarter about source and destination directories with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
647
diff
changeset
|
59 # |
634
c6a216c8174f
Support for setting transparent colour for bitmaps
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
631
diff
changeset
|
60 !if "$(DEBUG)" == "Y" |
2167
da33732f182d
Win: Add support for building with Clang/LLVM on Windows. SET CLANG=Y
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2088
diff
changeset
|
61 CFLAGS_DEBUG = -DDEBUG -Z7 -W3 -Od -MTd # was -Zi |
647
f09977bc9b5c
Fixed building with Visual Studio 2008.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
643
diff
changeset
|
62 LINK_DEBUG = -debug |
634
c6a216c8174f
Support for setting transparent colour for bitmaps
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
631
diff
changeset
|
63 !else |
772
b28ec71cfc88
Add -MT or -MTd switch to DEBUG switches
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
758
diff
changeset
|
64 CFLAGS_DEBUG = -Ox -MT |
634
c6a216c8174f
Support for setting transparent colour for bitmaps
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
631
diff
changeset
|
65 LINK_DEBUG = -release |
c6a216c8174f
Support for setting transparent colour for bitmaps
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
631
diff
changeset
|
66 !endif |
c6a216c8174f
Support for setting transparent colour for bitmaps
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
631
diff
changeset
|
67 |
1163
2991afb3bf71
Added support for including the svn revision number as the sub version with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1113
diff
changeset
|
68 # Check the SVN revision number if possible |
2991afb3bf71
Added support for including the svn revision number as the sub version with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1113
diff
changeset
|
69 !if ![subwcrev . win\__SVN__.REV SVN.REV > NUL] |
2991afb3bf71
Added support for including the svn revision number as the sub version with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1113
diff
changeset
|
70 !include SVN.REV |
2991afb3bf71
Added support for including the svn revision number as the sub version with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1113
diff
changeset
|
71 !message Revision is [$(VERREV)] |
2991afb3bf71
Added support for including the svn revision number as the sub version with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1113
diff
changeset
|
72 SVNVERSION=-DVER_REV=$(VERREV) |
1626
fdeeba6c6d09
Add support for mercurial revisions in addition to subversion on Windows.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1618
diff
changeset
|
73 !else |
fdeeba6c6d09
Add support for mercurial revisions in addition to subversion on Windows.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1618
diff
changeset
|
74 # Check the Mercurial revision number if possible |
fdeeba6c6d09
Add support for mercurial revisions in addition to subversion on Windows.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1618
diff
changeset
|
75 !if ![hg log -r . --template="VER_REV={rev}" > HG.REV] |
fdeeba6c6d09
Add support for mercurial revisions in addition to subversion on Windows.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1618
diff
changeset
|
76 !include HG.REV |
fdeeba6c6d09
Add support for mercurial revisions in addition to subversion on Windows.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1618
diff
changeset
|
77 !message Revision is [$(VER_REV)] |
fdeeba6c6d09
Add support for mercurial revisions in addition to subversion on Windows.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1618
diff
changeset
|
78 SVNVERSION=-DVER_REV=$(VER_REV) |
fdeeba6c6d09
Add support for mercurial revisions in addition to subversion on Windows.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1618
diff
changeset
|
79 !endif |
1163
2991afb3bf71
Added support for including the svn revision number as the sub version with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1113
diff
changeset
|
80 !endif |
2991afb3bf71
Added support for including the svn revision number as the sub version with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1113
diff
changeset
|
81 |
2078
2f98abf1e1e5
Win: Added support for building with Edge (Chromium) support via nmake.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1932
diff
changeset
|
82 # |
2f98abf1e1e5
Win: Added support for building with Edge (Chromium) support via nmake.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1932
diff
changeset
|
83 # Settings for supporting embedded Edge (Chromium) WebView2 |
2f98abf1e1e5
Win: Added support for building with Edge (Chromium) support via nmake.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1932
diff
changeset
|
84 # |
2f98abf1e1e5
Win: Added support for building with Edge (Chromium) support via nmake.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1932
diff
changeset
|
85 !if "$(WEBVIEW2DIR)" == "" |
2f98abf1e1e5
Win: Added support for building with Edge (Chromium) support via nmake.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1932
diff
changeset
|
86 WEBVIEW2DIR=$(SRCDIR)\packages\Microsoft.Web.WebView2 |
2f98abf1e1e5
Win: Added support for building with Edge (Chromium) support via nmake.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1932
diff
changeset
|
87 !endif |
2f98abf1e1e5
Win: Added support for building with Edge (Chromium) support via nmake.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1932
diff
changeset
|
88 |
2082
3144912829e2
Minor build issues
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2080
diff
changeset
|
89 !if exists($(WEBVIEW2DIR)\build\native\include\WebView2.h) |
2078
2f98abf1e1e5
Win: Added support for building with Edge (Chromium) support via nmake.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1932
diff
changeset
|
90 WEBVIEW2INC=-DBUILD_EDGE -I$(WEBVIEW2DIR)\build\native\include |
2194
b3989eee8d88
Win: Changes to support static linking of the WebView2 loader.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2172
diff
changeset
|
91 !if exists($(WEBVIEW2DIR)\build\native\$(TARGET_CPU)\WebView2LoaderStatic.lib) |
b3989eee8d88
Win: Changes to support static linking of the WebView2 loader.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2172
diff
changeset
|
92 WEBVIEW2LIB=$(WEBVIEW2DIR)\build\native\$(TARGET_CPU)\WebView2LoaderStatic.lib version.lib |
b3989eee8d88
Win: Changes to support static linking of the WebView2 loader.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2172
diff
changeset
|
93 !else |
2078
2f98abf1e1e5
Win: Added support for building with Edge (Chromium) support via nmake.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1932
diff
changeset
|
94 WEBVIEW2LIB=$(WEBVIEW2DIR)\build\native\$(TARGET_CPU)\WebView2Loader.dll.lib |
2194
b3989eee8d88
Win: Changes to support static linking of the WebView2 loader.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2172
diff
changeset
|
95 WEBVIEW2LOADER=$(WEBVIEW2DIR)\build\native\$(TARGET_CPU)\WebView2Loader.dll |
b3989eee8d88
Win: Changes to support static linking of the WebView2 loader.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2172
diff
changeset
|
96 !endif |
2078
2f98abf1e1e5
Win: Added support for building with Edge (Chromium) support via nmake.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1932
diff
changeset
|
97 WEBVIEW2OBJ=edge.obj |
2f98abf1e1e5
Win: Added support for building with Edge (Chromium) support via nmake.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1932
diff
changeset
|
98 !endif |
2f98abf1e1e5
Win: Added support for building with Edge (Chromium) support via nmake.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1932
diff
changeset
|
99 |
2088
94ea915bd917
Win: Initial implementation of notifications on Windows. Currently using WinToast.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2082
diff
changeset
|
100 # |
94ea915bd917
Win: Initial implementation of notifications on Windows. Currently using WinToast.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2082
diff
changeset
|
101 # Settings for supporting WinToast notifications |
94ea915bd917
Win: Initial implementation of notifications on Windows. Currently using WinToast.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2082
diff
changeset
|
102 # |
94ea915bd917
Win: Initial implementation of notifications on Windows. Currently using WinToast.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2082
diff
changeset
|
103 !if "$(WINTOASTDIR)" == "" |
94ea915bd917
Win: Initial implementation of notifications on Windows. Currently using WinToast.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2082
diff
changeset
|
104 WINTOASTDIR=$(SRCDIR)\packages\WinToast |
94ea915bd917
Win: Initial implementation of notifications on Windows. Currently using WinToast.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2082
diff
changeset
|
105 !endif |
94ea915bd917
Win: Initial implementation of notifications on Windows. Currently using WinToast.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2082
diff
changeset
|
106 |
94ea915bd917
Win: Initial implementation of notifications on Windows. Currently using WinToast.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2082
diff
changeset
|
107 !if exists($(WINTOASTDIR)\src\wintoastlib.h) |
94ea915bd917
Win: Initial implementation of notifications on Windows. Currently using WinToast.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2082
diff
changeset
|
108 WINTOASTINC=-DBUILD_TOAST -I$(WINTOASTDIR)\src |
94ea915bd917
Win: Initial implementation of notifications on Windows. Currently using WinToast.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2082
diff
changeset
|
109 WINTOASTOBJ=wintoast.obj wintoastlib.obj |
94ea915bd917
Win: Initial implementation of notifications on Windows. Currently using WinToast.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2082
diff
changeset
|
110 !endif |
94ea915bd917
Win: Initial implementation of notifications on Windows. Currently using WinToast.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2082
diff
changeset
|
111 |
2172
81c50388851d
Win: Cleaner way to disable common function deprecation warnings.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2171
diff
changeset
|
112 # The Visual C CRT and other Windows components have deprecated lots of common functions |
81c50388851d
Win: Cleaner way to disable common function deprecation warnings.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2171
diff
changeset
|
113 # These options will hide the deprecation warnings; Comment the next line to see them |
81c50388851d
Win: Cleaner way to disable common function deprecation warnings.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2171
diff
changeset
|
114 CRT_FLAGS = -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNING -D_WINSOCK_DEPRECATED_NO_WARNINGS |
2171
6533fc42c951
Fix building on Windows 2000 and changes to avoid CRT warnings.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2169
diff
changeset
|
115 |
2957
217ebbee034f
Win: Reenable -DAEROGLASS support, it was accidentally removed while testing on Win2k.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2954
diff
changeset
|
116 CFLAGS = -c $(PLATFORM_DEF) -D__WIN32__ -DMSVC -DRICHEDIT -DTOOLBAR -DGDIPLUS -DAEROGLASS -D_UNICODE -DUNICODE -DBUILD_DLL -DISOLATION_AWARE_ENABLED=1 -I$(SRCDIR)\platform -I$(SRCDIR) $(WEBVIEW2INC) $(WINTOASTINC) $(SVNVERSION) $(CRT_FLAGS) |
2078
2f98abf1e1e5
Win: Added support for building with Edge (Chromium) support via nmake.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1932
diff
changeset
|
117 LIBS = wsock32.lib kernel32.lib user32.lib comctl32.lib gdi32.lib advapi32.lib shell32.lib comdlg32.lib ole32.lib oleaut32.lib userenv.lib msimg32.lib gdiplus.lib $(WEBVIEW2LIB) |
598
78a8c4123818
Specify library output filenames.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
584
diff
changeset
|
118 RES = |
750
e6a9f1c7b0d7
Changes to be smarter about source and destination directories with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
647
diff
changeset
|
119 LINKFLAGS = -machine:$(TARGET_CPU) -manifest $(LINK_DEBUG) |
3 | 120 DLLLINKFLAGS = -dll |
1360
32a5be18e187
Source tree cleanup, move import/export definition files to their platform folder.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1350
diff
changeset
|
121 DEFFILE = $(SRCDIR)\win\dw.def |
32a5be18e187
Source tree cleanup, move import/export definition files to their platform folder.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1350
diff
changeset
|
122 DEFFILE2 = $(SRCDIR)\win\dwcompat.def |
3 | 123 |
2088
94ea915bd917
Win: Initial implementation of notifications on Windows. Currently using WinToast.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2082
diff
changeset
|
124 OBJS = dw.obj browser.obj XBrowseForFolder.obj $(WEBVIEW2OBJ) $(WINTOASTOBJ) |
3 | 125 |
1594
6baf177f335c
Rename compat.c/h dwcompat.c/h and configure option to --with-dwcompat.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1535
diff
changeset
|
126 OBJS2 = dwcompat.obj dirent.obj |
3 | 127 |
2864
939fbceec13f
Win: Add support for building the C++ dwtestoo with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2778
diff
changeset
|
128 all: dw dwcompat dwtest dwtestoo |
3 | 129 |
130 clean: | |
2078
2f98abf1e1e5
Win: Added support for building with Edge (Chromium) support via nmake.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1932
diff
changeset
|
131 -erase *.dll |
2f98abf1e1e5
Win: Added support for building with Edge (Chromium) support via nmake.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1932
diff
changeset
|
132 -erase *.exe |
2f98abf1e1e5
Win: Added support for building with Edge (Chromium) support via nmake.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1932
diff
changeset
|
133 -erase *.opt |
2f98abf1e1e5
Win: Added support for building with Edge (Chromium) support via nmake.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1932
diff
changeset
|
134 -erase *.lib |
2f98abf1e1e5
Win: Added support for building with Edge (Chromium) support via nmake.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1932
diff
changeset
|
135 -erase *.obj |
2778
1660b4ecb92f
Win/OS2: Remove the lib and dll folders and their placeholders.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2398
diff
changeset
|
136 -erase *.o |
2078
2f98abf1e1e5
Win: Added support for building with Edge (Chromium) support via nmake.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1932
diff
changeset
|
137 -erase *.map |
2f98abf1e1e5
Win: Added support for building with Edge (Chromium) support via nmake.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1932
diff
changeset
|
138 -erase *.pdb |
2f98abf1e1e5
Win: Added support for building with Edge (Chromium) support via nmake.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1932
diff
changeset
|
139 -erase *.ilk |
2f98abf1e1e5
Win: Added support for building with Edge (Chromium) support via nmake.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1932
diff
changeset
|
140 -erase *.exp |
2f98abf1e1e5
Win: Added support for building with Edge (Chromium) support via nmake.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1932
diff
changeset
|
141 -erase *.REV |
2f98abf1e1e5
Win: Added support for building with Edge (Chromium) support via nmake.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1932
diff
changeset
|
142 -erase *~ |
598
78a8c4123818
Specify library output filenames.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
584
diff
changeset
|
143 |
2778
1660b4ecb92f
Win/OS2: Remove the lib and dll folders and their placeholders.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2398
diff
changeset
|
144 distclean: clean |
1660b4ecb92f
Win/OS2: Remove the lib and dll folders and their placeholders.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2398
diff
changeset
|
145 -rd /s /q $(DWLIBDIR)\x86 |
1660b4ecb92f
Win/OS2: Remove the lib and dll folders and their placeholders.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2398
diff
changeset
|
146 -rd /s /q $(DWLIBDIR)\x64 |
1660b4ecb92f
Win/OS2: Remove the lib and dll folders and their placeholders.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2398
diff
changeset
|
147 -erase readme-win.txt |
1660b4ecb92f
Win/OS2: Remove the lib and dll folders and their placeholders.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2398
diff
changeset
|
148 |
3 | 149 dw: dw.dll |
150 | |
151 dw.dll: $(OBJS) $(DEFFILE) | |
152 $(LINK) @<< | |
153 -out:$(@) -def:$(DEFFILE) | |
154 $(LINKFLAGS) $(DLLLINKFLAGS) | |
155 $(OBJS) $(RES) | |
156 $(LIBS) | |
157 << | |
2169
a89841c500f8
Win: Clang/LLVM tools don't seem to accept / to specify options...
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2168
diff
changeset
|
158 $(WLIB) -def:$(DEFFILE) -machine:$(TARGET_CPU) -out:dw.lib |
a89841c500f8
Win: Clang/LLVM tools don't seem to accept / to specify options...
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2168
diff
changeset
|
159 mt.exe -manifest dw.dll.manifest $(SRCDIR)\win\dw.dll.$(TARGET_CPU).manifest -outputresource:dw.dll;2 |
1447
5417b312801e
Add -DISOLATION_AWARE_ENABLED=1 to Visual C compile flags and delete temporary manifest files after build.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1431
diff
changeset
|
160 -erase dw.dll.manifest |
2778
1660b4ecb92f
Win/OS2: Remove the lib and dll folders and their placeholders.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2398
diff
changeset
|
161 -md $(DWLIBDIR)\$(TARGET_CPU) |
1660b4ecb92f
Win/OS2: Remove the lib and dll folders and their placeholders.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2398
diff
changeset
|
162 copy dw.lib $(DWLIBDIR)\$(TARGET_CPU)\dw.lib |
1660b4ecb92f
Win/OS2: Remove the lib and dll folders and their placeholders.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2398
diff
changeset
|
163 copy dw.dll $(DWLIBDIR)\$(TARGET_CPU)\dw.dll |
1660b4ecb92f
Win/OS2: Remove the lib and dll folders and their placeholders.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2398
diff
changeset
|
164 !if exists($(WEBVIEW2LOADER)) |
1660b4ecb92f
Win/OS2: Remove the lib and dll folders and their placeholders.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2398
diff
changeset
|
165 copy $(WEBVIEW2LOADER) $(DWLIBDIR)\$(TARGET_CPU)\WebView2Loader.dll |
1660b4ecb92f
Win/OS2: Remove the lib and dll folders and their placeholders.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2398
diff
changeset
|
166 !endif |
3 | 167 |
168 dwcompat: dwcompat.dll | |
169 | |
170 dwcompat.dll: $(OBJS2) $(DEFFILE2) | |
171 $(LINK) @<< | |
172 -out:$(@) -def:$(DEFFILE2) | |
173 $(LINKFLAGS) $(DLLLINKFLAGS) | |
174 $(OBJS2) $(RES) | |
175 $(LIBS) | |
176 << | |
2169
a89841c500f8
Win: Clang/LLVM tools don't seem to accept / to specify options...
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2168
diff
changeset
|
177 $(WLIB) -def:$(DEFFILE2) -machine:$(TARGET_CPU) -out:dwcompat.lib |
a89841c500f8
Win: Clang/LLVM tools don't seem to accept / to specify options...
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2168
diff
changeset
|
178 mt.exe -manifest dwcompat.dll.manifest -outputresource:dwcompat.dll;2 |
1447
5417b312801e
Add -DISOLATION_AWARE_ENABLED=1 to Visual C compile flags and delete temporary manifest files after build.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1431
diff
changeset
|
179 -erase dwcompat.dll.manifest |
2778
1660b4ecb92f
Win/OS2: Remove the lib and dll folders and their placeholders.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2398
diff
changeset
|
180 -md $(DWLIBDIR)\$(TARGET_CPU) |
1660b4ecb92f
Win/OS2: Remove the lib and dll folders and their placeholders.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2398
diff
changeset
|
181 copy dwcompat.lib $(DWLIBDIR)\$(TARGET_CPU)\dwcompat.lib |
1660b4ecb92f
Win/OS2: Remove the lib and dll folders and their placeholders.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2398
diff
changeset
|
182 copy dwcompat.dll $(DWLIBDIR)\$(TARGET_CPU)\dwcompat.dll |
3 | 183 |
381
0df4ad2ac083
Enable dwindows to be built from a directory other than where the
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
286
diff
changeset
|
184 dw.obj: $(SRCDIR)\win\dw.c |
772
b28ec71cfc88
Add -MT or -MTd switch to DEBUG switches
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
758
diff
changeset
|
185 $(CC) $(CFLAGS) $(CFLAGS_DEBUG) $(SRCDIR)\win\dw.c |
381
0df4ad2ac083
Enable dwindows to be built from a directory other than where the
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
286
diff
changeset
|
186 |
584
420c6c94abc7
Added dw_html_* functionality for embedding HTML pages in Dynamic Windows
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
381
diff
changeset
|
187 browser.obj: $(SRCDIR)\win\browser.c |
772
b28ec71cfc88
Add -MT or -MTd switch to DEBUG switches
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
758
diff
changeset
|
188 $(CC) $(CFLAGS) $(CFLAGS_DEBUG) $(SRCDIR)\win\browser.c |
584
420c6c94abc7
Added dw_html_* functionality for embedding HTML pages in Dynamic Windows
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
381
diff
changeset
|
189 |
631
fa6c46796883
Use better directory browser widget.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
598
diff
changeset
|
190 XBrowseForFolder.obj: $(SRCDIR)\win\XBrowseForFolder.cpp |
772
b28ec71cfc88
Add -MT or -MTd switch to DEBUG switches
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
758
diff
changeset
|
191 $(CC) $(CFLAGS) $(CFLAGS_DEBUG) $(SRCDIR)\win\XBrowseForFolder.cpp |
631
fa6c46796883
Use better directory browser widget.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
598
diff
changeset
|
192 |
2078
2f98abf1e1e5
Win: Added support for building with Edge (Chromium) support via nmake.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1932
diff
changeset
|
193 edge.obj: $(SRCDIR)\win\edge.cpp |
2f98abf1e1e5
Win: Added support for building with Edge (Chromium) support via nmake.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1932
diff
changeset
|
194 $(CC) $(CFLAGS) $(CFLAGS_DEBUG) $(SRCDIR)\win\edge.cpp |
2f98abf1e1e5
Win: Added support for building with Edge (Chromium) support via nmake.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1932
diff
changeset
|
195 |
2088
94ea915bd917
Win: Initial implementation of notifications on Windows. Currently using WinToast.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2082
diff
changeset
|
196 wintoast.obj: $(SRCDIR)\win\wintoast.cpp |
94ea915bd917
Win: Initial implementation of notifications on Windows. Currently using WinToast.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2082
diff
changeset
|
197 $(CC) $(CFLAGS) /EHsc $(CFLAGS_DEBUG) $(SRCDIR)\win\wintoast.cpp |
94ea915bd917
Win: Initial implementation of notifications on Windows. Currently using WinToast.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2082
diff
changeset
|
198 |
94ea915bd917
Win: Initial implementation of notifications on Windows. Currently using WinToast.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2082
diff
changeset
|
199 wintoastlib.obj: $(WINTOASTDIR)\src\wintoastlib.cpp |
94ea915bd917
Win: Initial implementation of notifications on Windows. Currently using WinToast.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2082
diff
changeset
|
200 $(CC) $(CFLAGS) /EHsc $(CFLAGS_DEBUG) $(WINTOASTDIR)\src\wintoastlib.cpp |
94ea915bd917
Win: Initial implementation of notifications on Windows. Currently using WinToast.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2082
diff
changeset
|
201 |
381
0df4ad2ac083
Enable dwindows to be built from a directory other than where the
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
286
diff
changeset
|
202 dirent.obj: $(SRCDIR)\win\dirent.c |
772
b28ec71cfc88
Add -MT or -MTd switch to DEBUG switches
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
758
diff
changeset
|
203 $(CC) $(CFLAGS) $(CFLAGS_DEBUG) $(SRCDIR)\win\dirent.c |
3 | 204 |
1594
6baf177f335c
Rename compat.c/h dwcompat.c/h and configure option to --with-dwcompat.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1535
diff
changeset
|
205 dwcompat.obj: $(SRCDIR)\dwcompat.c |
6baf177f335c
Rename compat.c/h dwcompat.c/h and configure option to --with-dwcompat.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1535
diff
changeset
|
206 $(CC) $(CFLAGS) $(CFLAGS_DEBUG) $(SRCDIR)\dwcompat.c |
3 | 207 |
2864
939fbceec13f
Win: Add support for building the C++ dwtestoo with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2778
diff
changeset
|
208 dwtest.obj: $(SRCDIR)\dwtest.c $(SRCDIR)\dw.h |
772
b28ec71cfc88
Add -MT or -MTd switch to DEBUG switches
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
758
diff
changeset
|
209 $(CC) $(CFLAGS) $(CFLAGS_DEBUG) $(SRCDIR)\dwtest.c |
191
634625c3239d
Fixes for dw_color_xxxx_set() to accept OS/2 style colors, and fixed a
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
45
diff
changeset
|
210 |
286
e9270ff04ced
Simple add dwtest as a target, dependent on dwtest.exe.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
191
diff
changeset
|
211 dwtest: dwtest.exe |
e9270ff04ced
Simple add dwtest as a target, dependent on dwtest.exe.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
191
diff
changeset
|
212 |
2398
4de830d3bf9e
Win: Remove winmain.c as it is unnecessary when using the dwmain() entrypoint macros.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2236
diff
changeset
|
213 dwtest.exe: dwtest.obj |
4de830d3bf9e
Win: Remove winmain.c as it is unnecessary when using the dwmain() entrypoint macros.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2236
diff
changeset
|
214 $(LINK) $(LINKFLAGS) /out:dwtest.exe dwtest.obj /subsystem:windows $(DWLIBDIR)\dwcompat.lib $(DWLIBDIR)\dw.lib $(LIBS) |
2082
3144912829e2
Minor build issues
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2080
diff
changeset
|
215 mt.exe /manifest dwtest.exe.manifest $(SRCDIR)\win\dwtest.exe.$(TARGET_CPU).manifest /outputresource:dwtest.exe;1 |
1447
5417b312801e
Add -DISOLATION_AWARE_ENABLED=1 to Visual C compile flags and delete temporary manifest files after build.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1431
diff
changeset
|
216 -erase dwtest.exe.manifest |
640
cd1f9f0bd7e1
Support for building zip file on Win32
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
634
diff
changeset
|
217 |
2894
5bbd275369cd
Win/C++: Get some versions of MSVC correctly report the _cplusplus verison.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2881
diff
changeset
|
218 dwtestoo.obj: $(SRCDIR)\dwtestoo.cpp $(SRCDIR)\dw.h $(SRCDIR)\dw.hpp |
2963
531d36ebf37a
C++: Step 5 of the std::string transition. Hopefully the last step.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2957
diff
changeset
|
219 $(CC) $(CFLAGS) /Zc:__cplusplus /EHsc $(CFLAGS_DEBUG) $(SRCDIR)\dwtestoo.cpp |
2864
939fbceec13f
Win: Add support for building the C++ dwtestoo with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2778
diff
changeset
|
220 |
939fbceec13f
Win: Add support for building the C++ dwtestoo with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2778
diff
changeset
|
221 dwtestoo: dwtestoo.exe |
939fbceec13f
Win: Add support for building the C++ dwtestoo with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2778
diff
changeset
|
222 |
939fbceec13f
Win: Add support for building the C++ dwtestoo with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2778
diff
changeset
|
223 dwtestoo.exe: dwtestoo.obj |
939fbceec13f
Win: Add support for building the C++ dwtestoo with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2778
diff
changeset
|
224 $(LINK) $(LINKFLAGS) /out:dwtestoo.exe dwtestoo.obj /subsystem:windows $(DWLIBDIR)\dwcompat.lib $(DWLIBDIR)\dw.lib $(LIBS) |
939fbceec13f
Win: Add support for building the C++ dwtestoo with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2778
diff
changeset
|
225 mt.exe /manifest dwtestoo.exe.manifest $(SRCDIR)\win\dwtest.exe.$(TARGET_CPU).manifest /outputresource:dwtestoo.exe;1 |
939fbceec13f
Win: Add support for building the C++ dwtestoo with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2778
diff
changeset
|
226 -erase dwtestoo.exe.manifest |
939fbceec13f
Win: Add support for building the C++ dwtestoo with Visual C.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2778
diff
changeset
|
227 |
640
cd1f9f0bd7e1
Support for building zip file on Win32
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
634
diff
changeset
|
228 zip: dw.dll |
cd1f9f0bd7e1
Support for building zip file on Win32
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
634
diff
changeset
|
229 copy win\readme-win.txt . |
2954
40a5e6946e2b
Win/OS2: Include the C++ bindings header in the binary zip.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2894
diff
changeset
|
230 zip dwindows-win-$(VERDOT).zip readme-win.txt readme.txt x64\dw.dll x64\dwcompat.dll x64\dw.lib x64\dwcompat.lib x86\dw.dll x86\dwcompat.dll x86\dw.lib x86\dwcompat.lib dw.h dwcompat.h dw.hpp |