You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: scripts/build_dependencies.sh
+167-1Lines changed: 167 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -69,6 +69,7 @@ check_env () {
69
69
python_module_test distutils >/dev/null 2>&1|| { echo>&2"${RED}'setuptools' not found in your Python 3 installation.${NC}";exit 1; }
70
70
python_module_test yaml >/dev/null 2>&1|| { echo>&2"${RED}'pyyaml' not found in your Python 3 installation.${NC}";exit 1; }
71
71
command -v meson >/dev/null 2>&1|| { echo>&2"${RED}You must install 'meson' on your host machine.${NC}";exit 1; }
72
+
command -v cmake >/dev/null 2>&1|| { echo>&2"${RED}You must install 'cmake' on your host machine.${NC}";exit 1; }
72
73
command -v msgfmt >/dev/null 2>&1|| { echo>&2"${RED}You must install 'gettext' on your host machine.\n\t'msgfmt' needs to be in your \$PATH as well.${NC}";exit 1; }
73
74
command -v glib-mkenums >/dev/null 2>&1|| { echo>&2"${RED}You must install 'glib-utils' on your host machine.\n\t'glib-mkenums' needs to be in your \$PATH as well.${NC}";exit 1; }
74
75
command -v glib-compile-resources >/dev/null 2>&1|| { echo>&2"${RED}You must install 'glib-utils' on your host machine.\n\t'glib-compile-resources' needs to be in your \$PATH as well.${NC}";exit 1; }
@@ -165,6 +166,7 @@ download_all () {
165
166
fi
166
167
clone $WEBKIT_REPO$WEBKIT_COMMIT"$WEBKIT_SUBDIRS"
167
168
clone $EPOXY_REPO$EPOXY_COMMIT
169
+
clone $VULKAN_LOADER_REPO$VULKAN_LOADER_COMMIT
168
170
clone $VIRGLRENDERER_REPO$VIRGLRENDERER_COMMIT
169
171
clone $HYPERVISOR_REPO$HYPERVISOR_COMMIT
170
172
clone $LIBUCONTEXT_REPO$LIBUCONTEXT_COMMIT
@@ -255,6 +257,128 @@ generate_meson_cross() {
255
257
echo"endian = 'little'">>$cross
256
258
}
257
259
260
+
generate_cmake_toolchain() {
261
+
toolchain="$1"
262
+
263
+
# Extract compiler executables
264
+
CC_BIN="${CC%%*}"
265
+
CXX_BIN="${CXX%%*}"
266
+
OBJC_BIN="${OBJCC%%*}"
267
+
268
+
echo"# Automatically generated - do not modify">"$toolchain"
0 commit comments