X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/blobdiff_plain/dd2411d7d47fd72be78802cb28d6f0ef73785e9e..05bbef63c1951a3e152d69461b893927bf8b1e8a:/LinuxGUI/build_gtk.sh diff --git a/LinuxGUI/build_gtk.sh b/LinuxGUI/build_gtk.sh index 86fd613..6e7aa51 100644 --- a/LinuxGUI/build_gtk.sh +++ b/LinuxGUI/build_gtk.sh @@ -81,15 +81,19 @@ build_func() { rm -f ../INSTALL/tool/$toolDir/Ventoy2Disk.${gtkver}_$libsuffix cp -a Ventoy2Disk.${gtkver}_$libsuffix ../INSTALL/tool/$toolDir/Ventoy2Disk.${gtkver} - $1 -D_FILE_OFFSET_BITS=64 Ventoy2Disk/ventoy_gui.c -DVTOY_GUI_ARCH="\"$toolDir\"" -o VentoyGUI.$toolDir - cp -a VentoyGUI.$toolDir ../INSTALL/ + $1 -O2 -D_FILE_OFFSET_BITS=64 Ventoy2Disk/ventoy_gui.c Ventoy2Disk/Core/ventoy_json.c -I Ventoy2Disk/Core -DVTOY_GUI_ARCH="\"$toolDir\"" -o VentoyGUI.$toolDir + cp -a VentoyGUI.$toolDir ../INSTALL/ } + build_func "gcc" '64' 'x86_64' 'gtk2' build_func "gcc" '64' 'x86_64' 'gtk3' + build_func "gcc -m32" '32' 'i386' 'gtk2' build_func "gcc -m32" '32' 'i386' 'gtk3' build_func "aarch64-linux-gnu-gcc" 'aa64' 'aarch64' 'gtk3' + +export PATH=/opt/mips-loongson-gcc8-linux-gnu-2021-02-08/bin/:$PATH build_func "mips-linux-gnu-gcc -mips64r2 -mabi=64" 'm64e' 'mips64el' 'gtk3'