2025-10-19 17:06:45 +00:00
|
|
|
# vim: syntax=tcl
|
|
|
|
|
|
|
|
|
|
proc run {project_name} {
|
|
|
|
|
if { "$project_name" == "MilskoDoxygen" } {
|
2025-10-19 17:11:16 +00:00
|
|
|
RunCommand "doxygen"
|
|
|
|
|
RunCommand "rm -rf /var/www/milsko-doxygen"
|
|
|
|
|
RunCommand "mv doxygen/html /var/www/milsko-doxygen"
|
|
|
|
|
} else {
|
2025-10-19 17:18:24 +00:00
|
|
|
foreach target {"Linux" "Win32" "Win64"} {
|
2025-11-07 17:50:57 +00:00
|
|
|
if { [file exists "Makefile"] == 1 } {
|
|
|
|
|
RunCommand "make distclean"
|
|
|
|
|
}
|
2025-10-19 17:18:24 +00:00
|
|
|
if { "$target" == "Linux" } {
|
2025-11-08 02:14:29 +00:00
|
|
|
RunCommand "./Makefile.pl --enable-opengl --enable-vulkan --without-vulkan-string-helper"
|
2025-10-19 17:18:24 +00:00
|
|
|
} elseif { "$target" == "Win32" } {
|
2025-11-14 06:41:38 +00:00
|
|
|
RunCommand "./Makefile.pl --enable-opengl --enable-stb-truetype --disable-freetype2 --cross --target=Windows --host=i686-w64-mingw32"
|
2025-10-19 17:18:24 +00:00
|
|
|
} elseif { "$target" == "Win64" } {
|
2025-11-14 06:41:38 +00:00
|
|
|
RunCommand "./Makefile.pl --enable-opengl --enable-stb-truetype --disable-freetype2 --cross --target=Windows --host=x86_64-w64-mingw32"
|
2025-10-19 17:18:24 +00:00
|
|
|
}
|
2025-11-07 17:55:17 +00:00
|
|
|
RunCommand "make clean"
|
2025-11-07 17:49:06 +00:00
|
|
|
RunCommand "make -j4"
|
2025-10-19 17:11:16 +00:00
|
|
|
}
|
2025-10-19 17:06:45 +00:00
|
|
|
}
|
|
|
|
|
}
|