Hi,

I noticed that the Microsoft Assembler compiler support has gone, however, I 
also found that ms\do_ms.bat does NOT use assembly (no-asm flag is used), while 
ms\do_win64a.bat silently expects nasm compiler (according to INSTALL.WIN32 the 
only supported assembly compiler). Similar is true (but not used by me) for the 
do_win64i.bat batch file. This is probably somewhat inconsistent... Since I did 
not have nasm installed, the build for 32-bit succeeded, but for 64-bit (AMD) 
not.

Is it possible to make some more generic batch files? I would propose something 
like:


1.       do_win32.bat (similar to do_ms.bat)
call ms\do_win_build.bat VC-WIN32 no-asm


2.       do_win64a.bat (almost similar to do_ms.bat, except the config changed)
call ms\do_win_build.bat VC-WIN64a no-asm

Repeat for the other configurations as well.
Create separate batch files is masm is used.

A configuration for windows CE can be added too if wanted...

And create a new generic batch file:
do_win_build.bat:

@rem build OpenSSL on Windows
@rem %1 configuration
@rem %2 options, e.g. no-asm

set config=%~1
set options=%~2

@REM some defaults
if not defined config set config=VC-WIN32
if not defined options set options=no-asm

if /i "$(config)"=="VC-CE" (
set platform=ce
) else (
set platform=nt
)

perl util\mkfiles.pl >MINFO
perl util\mk1mf.pl %options% %config% >ms\%platform%.mak
perl util\mk1mf.pl dll %options% %config% >ms\%platform%dll.mak
perl util\mkdef.pl 32 libeay > ms\libeay32.def
perl util\mkdef.pl 32 ssleay > ms\ssleay32.def
goto end

:error
echo An unknown configuration was provided
exit /b 1

:end


Regards,
Kees

Hi,

 

I noticed that the Microsoft Assembler compiler support has gone, however, I also found that ms\do_ms.bat does NOT use assembly (no-asm flag is used), while ms\do_win64a.bat silently expects nasm compiler (according to INSTALL.WIN32 the only supported assembly compiler). Similar is true (but not used by me) for the do_win64i.bat batch file. This is probably somewhat inconsistent… Since I did not have nasm installed, the build for 32-bit succeeded, but for 64-bit (AMD) not.

 

Is it possible to make some more generic batch files? I would propose something like:

 

1.       do_win32.bat (similar to do_ms.bat)

call ms\do_win_build.bat VC-WIN32 no-asm

 

2.       do_win64a.bat (almost similar to do_ms.bat, except the config changed)

call ms\do_win_build.bat VC-WIN64a no-asm

 

Repeat for the other configurations as well.

Create separate batch files is masm is used.

 

A configuration for windows CE can be added too if wanted…

 

And create a new generic batch file:

do_win_build.bat:

 

@rem build OpenSSL on Windows

@rem %1 configuration

@rem %2 options, e.g. no-asm

 

set config=%~1

set options=%~2

 

@REM some defaults

if not defined config set config=VC-WIN32

if not defined options set options=no-asm

 

if /i "$(config)"=="VC-CE" (

set platform=ce

) else (

set platform=nt

)

 

perl util\mkfiles.pl >MINFO

perl util\mk1mf.pl %options% %config% >ms\%platform%.mak

perl util\mk1mf.pl dll %options% %config% >ms\%platform%dll.mak

perl util\mkdef.pl 32 libeay > ms\libeay32.def

perl util\mkdef.pl 32 ssleay > ms\ssleay32.def

goto end

 

:error

echo An unknown configuration was provided

exit /b 1

 

:end

 

 

Regards,

Kees

Reply via email to