forked from pbghogehoge/ssg
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathbuild_linux.sh
More file actions
executable file
·41 lines (34 loc) · 1.03 KB
/
Copy pathbuild_linux.sh
File metadata and controls
executable file
·41 lines (34 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/sh
./version_from_git.sh
# We can't commit this file directly because Tup's database initialization
# check literally just looks for the directory, and refuses to auto-initialize
# the database if it already exists. (Also, Windows doesn't need it.)
[ ! -d .tup ] && tup init
[ ! -f .tup/options ] &&
echo "[updater]
full_deps = 1 ; Necessary to track compiler updates on Linux" > .tup/options
# Libraries that either aren't packaged by any distro or that we always want
# to use the vendored version of
./submodules_check.sh \
libs/tupblocks \
libs/dr_libs \
libs/miniaudio \
|| exit 1
. ./libs/tupblocks/tupblocks.sh
# Libraries that are supposed to be installed through the system's package
# manager
pkg_config_env_required \
sdl3 \
fontconfig \
libwebp \
ogg \
pangocairo \
vorbis \
vorbisfile \
# Vendored libraries that we only use when they aren't installed system-wide
pkg_config_env_optional libblake3
! pkg-config --exists libblake3 && {
./submodules_check.sh libs/BLAKE3 || exit 1;
}
toolchain_detect_via_cc
tup "$@"