]>
glassweightruler.freedombox.rocks Git - Ventoy.git/blob - LinuxGUI/build.sh
7 XXFLAG
='-std=gnu99 -D_FILE_OFFSET_BITS=64'
10 echo "CC=$1 libsuffix=$libsuffix toolDir=$toolDir"
12 $1 $XXFLAG -c -Wall -Wextra -Wshadow -Wformat-security -Winit-self \
13 -Wmissing-prototypes -O2 -DLINUX \
14 -I.
/Ventoy
2Disk
/Lib
/libhttp
/include \
15 -DNDEBUG -DNO_CGI -DNO_CACHING -DNO_SSL -DSQLITE_DISABLE_LFS -DSSL_ALREADY_INITIALIZED \
16 -DUSE_STACK_SIZE=102400 -DNDEBUG -fPIC \
17 .
/Ventoy
2Disk
/Lib
/libhttp
/include
/civetweb.c \
20 $1 $XXFLAG -O2 -Wall -Wno-unused-function -DSTATIC=static
-DINIT= \
22 -I.
/Ventoy
2Disk
/Core \
24 -I.
/Ventoy
2Disk
/Include \
25 -I.
/Ventoy
2Disk
/Lib
/libhttp
/include \
26 -I.
/Ventoy
2Disk
/Lib
/fat_io_lib
/include \
27 -I.
/Ventoy
2Disk
/Lib
/xz
-embedded/linux
/include \
28 -I.
/Ventoy
2Disk
/Lib
/xz
-embedded/linux
/include
/linux \
29 -I.
/Ventoy
2Disk
/Lib
/xz
-embedded/userspace \
30 -I .
/Ventoy
2Disk
/Lib
/exfat
/src
/libexfat \
31 -I .
/Ventoy
2Disk
/Lib
/exfat
/src
/mkfs \
32 -I .
/Ventoy
2Disk
/Lib
/fat_io_lib \
34 -L .
/Ventoy
2Disk
/Lib
/fat_io_lib
/lib \
35 Ventoy
2Disk
/main_webui.c \
36 Ventoy
2Disk
/Core
/*.c \
38 Ventoy
2Disk
/Lib
/xz
-embedded/linux
/lib
/decompress_unxz.c \
39 Ventoy
2Disk
/Lib
/exfat
/src
/libexfat
/*.c \
40 Ventoy
2Disk
/Lib
/exfat
/src
/mkfs
/*.c \
41 Ventoy
2Disk
/Lib
/fat_io_lib
/*.c \
49 if [ "$libsuffix" = "aa64" ]; then
50 aarch64
-linux-gnu-strip V2D
$libsuffix
51 elif [ "$libsuffix" = "m64e" ]; then
52 mips
-linux-gnu-strip V2D
$libsuffix
57 rm -f ..
/INSTALL
/tool
/$toolDir/V2DServer
58 cp -a V2D
$libsuffix ..
/INSTALL
/tool
/$toolDir/V2DServer
61 build_func
"gcc" '64' 'x86_64'
62 build_func
"gcc -m32" '32' 'i386'
63 build_func
"aarch64-linux-gnu-gcc" 'aa64' 'aarch64'
64 build_func
"mips-linux-gnu-gcc -mips64r2 -mabi=64" 'm64e' 'mips64el'