Files
es_build_deliv/windows_deliv/init.btm
Jocelyn Fiat 743243bf12 Cleaned HAS_ ... variables.
Use DOS syntax when TCC/LE is not required.
2019-02-12 15:37:10 +01:00

46 lines
1.3 KiB
Plaintext

iff not defined INIT_DIR then
set INIT_DIR=%@EXECSTR[cd]
endiff
:: Set aliases and also call etc\config.btm
call %INIT_DIR\set_aliases.btm
REM Adding Wix to the path.
set PATH=%PATH;%@EXECSTR[cd]\wix
set EIFFEL_SRC=%TMP_EIFFEL_SRC
set ISE_LIBRARY=%TMP_EIFFEL_SRC
set ISE_SRC=%TMP_EIFFEL_SRC
:: Make sure required directories exist
REM Create parent dir of %INSTALL_LOG if it does not exist.
set_parent_dir_of PDIR %INSTALL_LOG%
iff not isdir %PDIR then
md /S %PDIR
remtrace Create directory %PDIR
endiff
set_parent_dir_of PDIR %ERROR_LOG%
iff not isdir %PDIR then
md /S %PDIR
remtrace Create directory %PDIR
endiff
iff not isdir %TMP_EIFFEL_SRC% then
md /S %TMP_EIFFEL_SRC%
remtrace Create directory %TMP_EIFFEL_SRC%
endiff
:: Get C compilation environment information
::call %INIT_DIR\inc\set_has_c_compiler HAS_WSDK71 WSDK71
call %INIT_DIR\inc\set_has_c_compiler HAS_VC100 VC100
call %INIT_DIR\inc\set_has_c_compiler HAS_VC140 VC140
::call %INIT_DIR\inc\set_has_c_compiler HAS_VC150 VC150
set "HAS_C_COMP_VER=False"
if "%ISE_C_COMPILER_VER%" NEQ "" (
IF /I "%ISE_C_COMPILER_VER%" NEQ "VC100" (
IF /I "%ISE_C_COMPILER_VER%" NEQ "VC140" (
call %INIT_DIR\inc\set_has_c_compiler HAS_C_COMP_VER %ISE_C_COMPILER_VER%
)
)
)
echo HAS_C_COMP_VER=%HAS_C_COMP_VER%