Cleaned HAS_ ... variables.

Use DOS syntax when TCC/LE is not required.
This commit is contained in:
2019-02-12 15:37:10 +01:00
parent 2496b498ec
commit 743243bf12
5 changed files with 67 additions and 51 deletions

View File

@@ -15,7 +15,7 @@ endiff
REM General configuration REM General configuration
iff not defined STUDIO_VERSION_MAJOR_MINOR then iff not defined STUDIO_VERSION_MAJOR_MINOR then
set STUDIO_VERSION_MAJOR_MINOR=19.01 set STUDIO_VERSION_MAJOR_MINOR=19.02
endiff endiff
iff not defined WORK_DIR then iff not defined WORK_DIR then

View File

@@ -20,23 +20,23 @@ echo ecb version:
ecb -version ecb -version
echo The C environment: ISE_C_COMPILER=%ISE_C_COMPILER% (ISE_C_COMPILER_VER=%ISE_C_COMPILER_VER%) echo The C environment: ISE_C_COMPILER=%ISE_C_COMPILER% (ISE_C_COMPILER_VER=%ISE_C_COMPILER_VER%)
iff defined HAS_C_COMP_VER then iff defined HAS_C_COMP_VER then
echo - HAS_C_COMP_VER=%HAS_C_COMP_VER% echo - HAS_C_COMP_VER=%HAS_C_COMP_VER% ISE_C_COMPILER_VER=%ISE_C_COMPILER_VER% (ISE_C_COMPILER=%ISE_C_COMPILER%)
endiff
iff defined HAS_WSDK71 then
echo - HAS_WSDK71=%HAS_WSDK71%
endiff endiff
::iff defined HAS_WSDK71 then
:: echo - HAS_WSDK71=%HAS_WSDK71%
::endiff
iff defined HAS_VC100 then iff defined HAS_VC100 then
echo - HAS_VC100=%HAS_VC100% echo - HAS_VC100=%HAS_VC100%
endiff endiff
iff defined HAS_VC110 then ::iff defined HAS_VC110 then
echo - HAS_VC110=%HAS_VC110% :: echo - HAS_VC110=%HAS_VC110%
endiff ::endiff
iff defined HAS_VC140 then iff defined HAS_VC140 then
echo - HAS_VC140=%HAS_VC140% echo - HAS_VC140=%HAS_VC140%
endiff endiff
iff defined HAS_VC150 then ::iff defined HAS_VC150 then
echo - HAS_VC150=%HAS_VC150% :: echo - HAS_VC150=%HAS_VC150%
endiff ::endiff
echo MYSQL lib location: %MYSQL% echo MYSQL lib location: %MYSQL%
echo ----------------------------- echo -----------------------------

View File

@@ -29,13 +29,17 @@ iff not isdir %TMP_EIFFEL_SRC% then
endiff endiff
:: Get C compilation environment information :: 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_WSDK71 WSDK71
call %INIT_DIR\inc\set_has_c_compiler HAS_VC100 VC100 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_VC140 VC140
call %INIT_DIR\inc\set_has_c_compiler HAS_VC150 VC150 ::call %INIT_DIR\inc\set_has_c_compiler HAS_VC150 VC150
iff defined ISE_C_COMPILER_VER .and. "%ISE_C_COMPILER_VER%" != "VC140" then
call %INIT_DIR\inc\set_has_c_compiler HAS_C_COMP_VER %ISE_C_COMPILER_VER%
else
set "HAS_C_COMP_VER=False" set "HAS_C_COMP_VER=False"
endiff 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%

View File

@@ -247,56 +247,63 @@ call make_other_libraries.btm %STUDIO_DIR
:clibs :clibs
remtrace Compile C code of Eiffel Software C libraries remtrace Compile C code of Eiffel Software C libraries
remtrace HAS_VC100=%HAS_VC100%
call %INIT_DIR\inc\set_has_c_compiler HAS_VC140 VC140
remtrace HAS_VC140=%HAS_VC140% remtrace HAS_VC140=%HAS_VC140%
remtrace HAS_C_COMP_VER=%HAS_C_COMP_VER% : ISE_C_COMPILER_VER=%ISE_C_COMPILER_VER% (ISE_C_COMPILER=%ISE_C_COMPILER%)
iff defined ISE_C_COMPILER_VER .and. "%ISE_C_COMPILER_VER%" != "VC140" then IF "%HAS_VC100%" == "True" (
call %INIT_DIR\inc\set_has_c_compiler HAS_C_COMP_VER %ISE_C_COMPILER_VER% cdd %INIT_DIR
else remtrace Build the C libraries of non-Eiffel Software C libraries for msc (VC100)
set "HAS_C_COMP_VER=False" call espawn -u:VC100 "%COMSPEC% /c compile_c_libraries.btm %STUDIO_DIR msc"
endiff )
remtrace HAS_C_COMP_VER=%HAS_C_COMP_VER% IF "%HAS_VC140%" == "True" (
iff "%HAS_VC140%" == "True" then
cdd %INIT_DIR cdd %INIT_DIR
remtrace Build the C libraries of non-Eiffel Software C libraries for msc_vc140 (VC140) remtrace Build the C libraries of non-Eiffel Software C libraries for msc_vc140 (VC140)
call espawn -u:VC140 "%COMSPEC% /c compile_c_libraries.btm %STUDIO_DIR msc_vc140" call espawn -u:VC140 "%COMSPEC% /c compile_c_libraries.btm %STUDIO_DIR msc_vc140"
endiff )
iff "%HAS_C_COMP_VER%" == "True" then IF "%HAS_C_COMP_VER%" == "True" (
remtrace Build the C libraries of non-Eiffel Software C libraries for msc (%ISE_C_COMPILER_VER%) remtrace Build the C libraries of non-Eiffel Software C libraries for %ISE_C_COMPILER (%ISE_C_COMPILER_VER%)
cdd %INIT_DIR cdd %INIT_DIR
call espawn -u:%ISE_C_COMPILER_VER% "%COMSPEC% /c compile_c_libraries.btm %STUDIO_DIR msc" call espawn -u:%ISE_C_COMPILER_VER% "%COMSPEC% /c compile_c_libraries.btm %STUDIO_DIR %ISE_C_COMPILER%"
endiff )
cdd %INIT_DIR cdd %INIT_DIR
remtrace Build the C libraries of non-Eiffel Software C libraries for mingw remtrace Build the C libraries of non-Eiffel Software C libraries for mingw
call compile_c_libraries.btm %STUDIO_DIR mingw call compile_c_libraries.btm %STUDIO_DIR mingw
iff "%HAS_VC140%" == "True" then IF "%HAS_VC100%" == "True" (
cdd %INIT_DIR
remtrace Build the Experimental C libraries of non-Eiffel Software C libraries for msc_vc100 (VC100)
call espawn -u:VC100 "%COMSPEC% /c compile_c_libraries.btm %STUDIO_DIR\experimental msc"
)
IF "%HAS_VC140%" == "True" (
cdd %INIT_DIR cdd %INIT_DIR
remtrace Build the Experimental C libraries of non-Eiffel Software C libraries for msc_vc140 (VC140) remtrace Build the Experimental C libraries of non-Eiffel Software C libraries for msc_vc140 (VC140)
call espawn -u:VC140 "%COMSPEC% /c compile_c_libraries.btm %STUDIO_DIR\experimental msc_vc140" call espawn -u:VC140 "%COMSPEC% /c compile_c_libraries.btm %STUDIO_DIR\experimental msc_vc140"
endiff )
IF "%HAS_C_COMP_VER%" == "True" (
iff "%HAS_C_COMP_VER%" == "True" then remtrace Build the Experimental C libraries of non-Eiffel Software C libraries for %ISE_C_COMPILER% (%ISE_C_COMPILER_VER%)
remtrace Build the Experimental C libraries of non-Eiffel Software C libraries for msc (%ISE_C_COMPILER_VER%)
cdd %INIT_DIR cdd %INIT_DIR
espawn -u:%ISE_C_COMPILER_VER% "%COMSPEC% /c compile_c_libraries.btm %STUDIO_DIR\experimental msc" espawn -u:%ISE_C_COMPILER_VER% "%COMSPEC% /c compile_c_libraries.btm %STUDIO_DIR\experimental %ISE_C_COMPILER%"
endiff )
cdd %INIT_DIR cdd %INIT_DIR
remtrace Build the Experimental C libraries of non-Eiffel Software C libraries for mingw remtrace Build the Experimental C libraries of non-Eiffel Software C libraries for mingw
call compile_c_libraries.btm %STUDIO_DIR\experimental mingw call compile_c_libraries.btm %STUDIO_DIR\experimental mingw
iff "%HAS_VC140%" == "True" then IF "%HAS_VC100%" == "True" (
remtrace Build the other C libraries of non-Eiffel Software C libraries for msc (VC100)
cdd %INIT_DIR
espawn -u:VC100 "%COMSPEC% /c compile_other_c_libraries.btm %STUDIO_DIR msc"
)
IF "%HAS_VC140%" == "True" (
remtrace Build the other C libraries of non-Eiffel Software C libraries for msc_vc140 (VC140) remtrace Build the other C libraries of non-Eiffel Software C libraries for msc_vc140 (VC140)
cdd %INIT_DIR cdd %INIT_DIR
espawn -u:VC140 "%COMSPEC% /c compile_other_c_libraries.btm %STUDIO_DIR msc_vc140" espawn -u:VC140 "%COMSPEC% /c compile_other_c_libraries.btm %STUDIO_DIR msc_vc140"
endiff )
iff "%HAS_C_COMP_VER%" == "True" then IF "%HAS_C_COMP_VER%" == "True" (
remtrace Build the other C libraries of non-Eiffel Software C libraries for msc (%ISE_C_COMPILER_VER%) remtrace Build the other C libraries of non-Eiffel Software C libraries for %ISE_C_COMPILER% (%ISE_C_COMPILER_VER%)
cdd %INIT_DIR cdd %INIT_DIR
espawn -u:%ISE_C_COMPILER_VER% "%COMSPEC% /c compile_other_c_libraries.btm %STUDIO_DIR msc" espawn -u:%ISE_C_COMPILER_VER% "%COMSPEC% /c compile_other_c_libraries.btm %STUDIO_DIR %ISE_C_COMPILER%"
endiff )
remtrace Build the other C libraries of non-Eiffel Software C libraries for mingw remtrace Build the other C libraries of non-Eiffel Software C libraries for mingw
cdd %INIT_DIR cdd %INIT_DIR
call compile_other_c_libraries.btm %STUDIO_DIR mingw call compile_other_c_libraries.btm %STUDIO_DIR mingw

View File

@@ -42,13 +42,18 @@ else
safe_copy %EIFFEL_SRC\C\CONFIGS\windows-x86-64-mingw %STUDIO_DIR\studio\config\%ISE_PLATFORM\mingw\config.sh safe_copy %EIFFEL_SRC\C\CONFIGS\windows-x86-64-mingw %STUDIO_DIR\studio\config\%ISE_PLATFORM\mingw\config.sh
endiff endiff
iff defined HAS_VC140 then IF "%HAS_VC140%" == "True" (
remtrace Compile the run-time for Microsoft (msc_vc140) remtrace Compile the run-time for Microsoft (msc_vc140)
espawn -u:VC140 "%COMSPEC% /c %INIT_DIR%\make_runtimes.btm msc_vc140" espawn -u:VC140 "%COMSPEC% /c %INIT_DIR%\make_runtimes.btm msc_vc140"
endiff )
IF "%HAS_VC100%" == "True" (
remtrace Compile the run-time for Microsoft (msc)
espawn -u:VC100 "%COMSPEC% /c %INIT_DIR%\make_runtimes.btm msc"
)
IF "%HAS_C_COMP_VER%" == "True" (
remtrace Compile the run-time for Microsoft (ISE_C_COMPILER=%ISE_C_COMPILER% ISE_C_COMPILER_VER=%ISE_C_COMPILER_VER%) remtrace Compile the run-time for Microsoft (ISE_C_COMPILER=%ISE_C_COMPILER% ISE_C_COMPILER_VER=%ISE_C_COMPILER_VER%)
espawn -u:%ISE_C_COMPILER_VER% "%COMSPEC% /c %INIT_DIR%\make_runtimes.btm msc" espawn -u:%ISE_C_COMPILER_VER% "%COMSPEC% /c %INIT_DIR%\make_runtimes.btm %ISE_C_COMPILER%"
)
remtrace Copy the header files remtrace Copy the header files
safe_copy %EIFFEL_SRC\C\run-time\*.h %STUDIO_DIR\studio\spec\%ISE_PLATFORM\include safe_copy %EIFFEL_SRC\C\run-time\*.h %STUDIO_DIR\studio\spec\%ISE_PLATFORM\include