Fossil SCM

Permit building Fossil with MSVC on x64 with SSL enabled (and built 'automatically' as part of the overall build process).

mistachkin 2014-09-28 20:37 trunk
Commit 89d9baa3e241ee19a5469b93eb95066ecede147b
2 files changed +19 -3 +19 -3
+19 -3
--- src/makemake.tcl
+++ src/makemake.tcl
@@ -1186,10 +1186,26 @@
11861186
!ifdef FOSSIL_ENABLE_SSL
11871187
SSLDIR = $(B)\compat\openssl-1.0.1i
11881188
SSLINCDIR = $(SSLDIR)\inc32
11891189
SSLLIBDIR = $(SSLDIR)\out32
11901190
SSLLIB = ssleay32.lib libeay32.lib user32.lib gdi32.lib
1191
+!if "$(PLATFORM)"=="amd64" || "$(PLATFORM)"=="x64"
1192
+!message Using 'x64' platform for OpenSSL...
1193
+SSLCONFIG = VC-WIN64A
1194
+SSLSETUP = ms\do_win64a.bat
1195
+SSLNMAKE = ms\nt.mak
1196
+!elseif "$(PLATFORM)"=="ia64"
1197
+!message Using 'ia64' platform for OpenSSL...
1198
+SSLCONFIG = VC-WIN64I
1199
+SSLSETUP = ms\do_win64i.bat
1200
+SSLNMAKE = ms\nt.mak
1201
+!else
1202
+!message Assuming 'x86' platform for OpenSSL...
1203
+SSLCONFIG = VC-WIN32
1204
+SSLSETUP = ms\do_ms.bat
1205
+SSLNMAKE = ms\nt.mak
1206
+!endif
11911207
!endif
11921208
11931209
!ifdef FOSSIL_ENABLE_TCL
11941210
TCLDIR = $(B)\compat\tcl-8.6
11951211
TCLSRCDIR = $(TCLDIR)
@@ -1329,13 +1345,13 @@
13291345
openssl:
13301346
@echo Building OpenSSL from "$(SSLDIR)"...
13311347
!if "$(PERLDIR)" != ""
13321348
@set PATH=$(PERLDIR);$(PATH)
13331349
!endif
1334
- @pushd "$(SSLDIR)" && $(PERL) Configure VC-WIN32 no-asm && popd
1335
- @pushd "$(SSLDIR)" && call ms\do_ms.bat && popd
1336
- @pushd "$(SSLDIR)" && $(MAKE) /f ms\nt.mak all && popd
1350
+ @pushd "$(SSLDIR)" && $(PERL) Configure $(SSLCONFIG) no-asm && popd
1351
+ @pushd "$(SSLDIR)" && call $(SSLSETUP) && popd
1352
+ @pushd "$(SSLDIR)" && $(MAKE) /f $(SSLNMAKE) all && popd
13371353
!endif
13381354
13391355
!ifndef FOSSIL_ENABLE_MINIZ
13401356
APPTARGETS = $(APPTARGETS) zlib
13411357
!endif
13421358
--- src/makemake.tcl
+++ src/makemake.tcl
@@ -1186,10 +1186,26 @@
1186 !ifdef FOSSIL_ENABLE_SSL
1187 SSLDIR = $(B)\compat\openssl-1.0.1i
1188 SSLINCDIR = $(SSLDIR)\inc32
1189 SSLLIBDIR = $(SSLDIR)\out32
1190 SSLLIB = ssleay32.lib libeay32.lib user32.lib gdi32.lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1191 !endif
1192
1193 !ifdef FOSSIL_ENABLE_TCL
1194 TCLDIR = $(B)\compat\tcl-8.6
1195 TCLSRCDIR = $(TCLDIR)
@@ -1329,13 +1345,13 @@
1329 openssl:
1330 @echo Building OpenSSL from "$(SSLDIR)"...
1331 !if "$(PERLDIR)" != ""
1332 @set PATH=$(PERLDIR);$(PATH)
1333 !endif
1334 @pushd "$(SSLDIR)" && $(PERL) Configure VC-WIN32 no-asm && popd
1335 @pushd "$(SSLDIR)" && call ms\do_ms.bat && popd
1336 @pushd "$(SSLDIR)" && $(MAKE) /f ms\nt.mak all && popd
1337 !endif
1338
1339 !ifndef FOSSIL_ENABLE_MINIZ
1340 APPTARGETS = $(APPTARGETS) zlib
1341 !endif
1342
--- src/makemake.tcl
+++ src/makemake.tcl
@@ -1186,10 +1186,26 @@
1186 !ifdef FOSSIL_ENABLE_SSL
1187 SSLDIR = $(B)\compat\openssl-1.0.1i
1188 SSLINCDIR = $(SSLDIR)\inc32
1189 SSLLIBDIR = $(SSLDIR)\out32
1190 SSLLIB = ssleay32.lib libeay32.lib user32.lib gdi32.lib
1191 !if "$(PLATFORM)"=="amd64" || "$(PLATFORM)"=="x64"
1192 !message Using 'x64' platform for OpenSSL...
1193 SSLCONFIG = VC-WIN64A
1194 SSLSETUP = ms\do_win64a.bat
1195 SSLNMAKE = ms\nt.mak
1196 !elseif "$(PLATFORM)"=="ia64"
1197 !message Using 'ia64' platform for OpenSSL...
1198 SSLCONFIG = VC-WIN64I
1199 SSLSETUP = ms\do_win64i.bat
1200 SSLNMAKE = ms\nt.mak
1201 !else
1202 !message Assuming 'x86' platform for OpenSSL...
1203 SSLCONFIG = VC-WIN32
1204 SSLSETUP = ms\do_ms.bat
1205 SSLNMAKE = ms\nt.mak
1206 !endif
1207 !endif
1208
1209 !ifdef FOSSIL_ENABLE_TCL
1210 TCLDIR = $(B)\compat\tcl-8.6
1211 TCLSRCDIR = $(TCLDIR)
@@ -1329,13 +1345,13 @@
1345 openssl:
1346 @echo Building OpenSSL from "$(SSLDIR)"...
1347 !if "$(PERLDIR)" != ""
1348 @set PATH=$(PERLDIR);$(PATH)
1349 !endif
1350 @pushd "$(SSLDIR)" && $(PERL) Configure $(SSLCONFIG) no-asm && popd
1351 @pushd "$(SSLDIR)" && call $(SSLSETUP) && popd
1352 @pushd "$(SSLDIR)" && $(MAKE) /f $(SSLNMAKE) all && popd
1353 !endif
1354
1355 !ifndef FOSSIL_ENABLE_MINIZ
1356 APPTARGETS = $(APPTARGETS) zlib
1357 !endif
1358
+19 -3
--- win/Makefile.msc
+++ win/Makefile.msc
@@ -45,10 +45,26 @@
4545
!ifdef FOSSIL_ENABLE_SSL
4646
SSLDIR = $(B)\compat\openssl-1.0.1i
4747
SSLINCDIR = $(SSLDIR)\inc32
4848
SSLLIBDIR = $(SSLDIR)\out32
4949
SSLLIB = ssleay32.lib libeay32.lib user32.lib gdi32.lib
50
+!if "$(PLATFORM)"=="amd64" || "$(PLATFORM)"=="x64"
51
+!message Using 'x64' platform for OpenSSL...
52
+SSLCONFIG = VC-WIN64A
53
+SSLSETUP = ms\do_win64a.bat
54
+SSLNMAKE = ms\nt.mak
55
+!elseif "$(PLATFORM)"=="ia64"
56
+!message Using 'ia64' platform for OpenSSL...
57
+SSLCONFIG = VC-WIN64I
58
+SSLSETUP = ms\do_win64i.bat
59
+SSLNMAKE = ms\nt.mak
60
+!else
61
+!message Assuming 'x86' platform for OpenSSL...
62
+SSLCONFIG = VC-WIN32
63
+SSLSETUP = ms\do_ms.bat
64
+SSLNMAKE = ms\nt.mak
65
+!endif
5066
!endif
5167
5268
!ifdef FOSSIL_ENABLE_TCL
5369
TCLDIR = $(B)\compat\tcl-8.6
5470
TCLSRCDIR = $(TCLDIR)
@@ -404,13 +420,13 @@
404420
openssl:
405421
@echo Building OpenSSL from "$(SSLDIR)"...
406422
!if "$(PERLDIR)" != ""
407423
@set PATH=$(PERLDIR);$(PATH)
408424
!endif
409
- @pushd "$(SSLDIR)" && $(PERL) Configure VC-WIN32 no-asm && popd
410
- @pushd "$(SSLDIR)" && call ms\do_ms.bat && popd
411
- @pushd "$(SSLDIR)" && $(MAKE) /f ms\nt.mak all && popd
425
+ @pushd "$(SSLDIR)" && $(PERL) Configure $(SSLCONFIG) no-asm && popd
426
+ @pushd "$(SSLDIR)" && call $(SSLSETUP) && popd
427
+ @pushd "$(SSLDIR)" && $(MAKE) /f $(SSLNMAKE) all && popd
412428
!endif
413429
414430
!ifndef FOSSIL_ENABLE_MINIZ
415431
APPTARGETS = $(APPTARGETS) zlib
416432
!endif
417433
--- win/Makefile.msc
+++ win/Makefile.msc
@@ -45,10 +45,26 @@
45 !ifdef FOSSIL_ENABLE_SSL
46 SSLDIR = $(B)\compat\openssl-1.0.1i
47 SSLINCDIR = $(SSLDIR)\inc32
48 SSLLIBDIR = $(SSLDIR)\out32
49 SSLLIB = ssleay32.lib libeay32.lib user32.lib gdi32.lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
50 !endif
51
52 !ifdef FOSSIL_ENABLE_TCL
53 TCLDIR = $(B)\compat\tcl-8.6
54 TCLSRCDIR = $(TCLDIR)
@@ -404,13 +420,13 @@
404 openssl:
405 @echo Building OpenSSL from "$(SSLDIR)"...
406 !if "$(PERLDIR)" != ""
407 @set PATH=$(PERLDIR);$(PATH)
408 !endif
409 @pushd "$(SSLDIR)" && $(PERL) Configure VC-WIN32 no-asm && popd
410 @pushd "$(SSLDIR)" && call ms\do_ms.bat && popd
411 @pushd "$(SSLDIR)" && $(MAKE) /f ms\nt.mak all && popd
412 !endif
413
414 !ifndef FOSSIL_ENABLE_MINIZ
415 APPTARGETS = $(APPTARGETS) zlib
416 !endif
417
--- win/Makefile.msc
+++ win/Makefile.msc
@@ -45,10 +45,26 @@
45 !ifdef FOSSIL_ENABLE_SSL
46 SSLDIR = $(B)\compat\openssl-1.0.1i
47 SSLINCDIR = $(SSLDIR)\inc32
48 SSLLIBDIR = $(SSLDIR)\out32
49 SSLLIB = ssleay32.lib libeay32.lib user32.lib gdi32.lib
50 !if "$(PLATFORM)"=="amd64" || "$(PLATFORM)"=="x64"
51 !message Using 'x64' platform for OpenSSL...
52 SSLCONFIG = VC-WIN64A
53 SSLSETUP = ms\do_win64a.bat
54 SSLNMAKE = ms\nt.mak
55 !elseif "$(PLATFORM)"=="ia64"
56 !message Using 'ia64' platform for OpenSSL...
57 SSLCONFIG = VC-WIN64I
58 SSLSETUP = ms\do_win64i.bat
59 SSLNMAKE = ms\nt.mak
60 !else
61 !message Assuming 'x86' platform for OpenSSL...
62 SSLCONFIG = VC-WIN32
63 SSLSETUP = ms\do_ms.bat
64 SSLNMAKE = ms\nt.mak
65 !endif
66 !endif
67
68 !ifdef FOSSIL_ENABLE_TCL
69 TCLDIR = $(B)\compat\tcl-8.6
70 TCLSRCDIR = $(TCLDIR)
@@ -404,13 +420,13 @@
420 openssl:
421 @echo Building OpenSSL from "$(SSLDIR)"...
422 !if "$(PERLDIR)" != ""
423 @set PATH=$(PERLDIR);$(PATH)
424 !endif
425 @pushd "$(SSLDIR)" && $(PERL) Configure $(SSLCONFIG) no-asm && popd
426 @pushd "$(SSLDIR)" && call $(SSLSETUP) && popd
427 @pushd "$(SSLDIR)" && $(MAKE) /f $(SSLNMAKE) all && popd
428 !endif
429
430 !ifndef FOSSIL_ENABLE_MINIZ
431 APPTARGETS = $(APPTARGETS) zlib
432 !endif
433

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button