Add Vulkan subdirectory, modules, and package script
This commit is contained in:
parent
bc4c681108
commit
6ad34378e3
|
|
@ -0,0 +1,11 @@
|
|||
[submodule "vulkan/modules/vkBasalt"]
|
||||
path = vulkan/modules/vkBasalt
|
||||
url = git@github.com:wheaney/vkBasalt.git
|
||||
branch = runtime_uniforms
|
||||
[submodule "vulkan/modules/sombrero"]
|
||||
path = vulkan/modules/sombrero
|
||||
url = git@github.com:wheaney/sombrero.git
|
||||
[submodule "modules/xrealAirLinuxDriver"]
|
||||
path = modules/xrealAirLinuxDriver
|
||||
url = git@github.com:wheaney/xrealAirLinuxDriver.git
|
||||
branch = sombrero
|
||||
|
|
@ -0,0 +1,46 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# exit when any command fails
|
||||
set -e
|
||||
|
||||
# check out submodules, recursively for nested ones
|
||||
git submodule update --init --recursive
|
||||
|
||||
VULKAN_DIR=vulkan
|
||||
VULKAN_MODULES=$VULKAN_DIR/modules
|
||||
PACKAGE_DIR=$VULKAN_DIR/build/breezy_vulkan
|
||||
if [ ! -d "$PACKAGE_DIR" ]; then
|
||||
mkdir -p $PACKAGE_DIR
|
||||
else
|
||||
rm -rf $PACKAGE_DIR/*
|
||||
fi
|
||||
|
||||
VKBASALT_MODULE_DIR=$VULKAN_MODULES/vkBasalt
|
||||
pushd $VKBASALT_MODULE_DIR
|
||||
./docker-build
|
||||
popd
|
||||
VKBASALT_BUILD_DIR=$VKBASALT_MODULE_DIR/out
|
||||
|
||||
# move and rename the compiled driver to the driver directory
|
||||
mkdir -p $PACKAGE_DIR/vkbasalt.64
|
||||
cp $VKBASALT_BUILD_DIR/builddir/src/libvkbasalt.so $PACKAGE_DIR/vkbasalt.64/
|
||||
cp $VKBASALT_BUILD_DIR/builddir/config/vkBasalt.json $PACKAGE_DIR/vkbasalt.64/
|
||||
|
||||
mkdir -p $PACKAGE_DIR/vkbasalt.32
|
||||
cp $VKBASALT_BUILD_DIR/builddir.32/src/libvkbasalt.so $PACKAGE_DIR/vkbasalt.32/
|
||||
cp $VKBASALT_BUILD_DIR/builddir.32/config/vkBasalt.json $PACKAGE_DIR/vkbasalt.32/
|
||||
|
||||
cp $VKBASALT_MODULE_DIR/sombrero/IMUAdjust.fx $PACKAGE_DIR
|
||||
|
||||
# copy setup and user-relevant scripts
|
||||
cp -r $VULKAN_DIR/bin $PACKAGE_DIR
|
||||
|
||||
XREAL_DRIVER_DIR=modules/xrealAirLinuxDriver
|
||||
pushd $XREAL_DRIVER_DIR
|
||||
bin/package
|
||||
popd
|
||||
|
||||
cp $XREAL_DRIVER_DIR/build/xrealAirLinuxDriver.tar.gz $PACKAGE_DIR
|
||||
|
||||
# bundle up the driver directory
|
||||
tar -zcvf breezyGaming.tar.gz $PACKAGE_DIR
|
||||
|
|
@ -0,0 +1 @@
|
|||
Subproject commit af5fcfb0637f75a14df5f1115addcca1933ecb48
|
||||
|
|
@ -1,36 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# exit when any command fails
|
||||
set -e
|
||||
|
||||
# build the driver
|
||||
BUILD_PATH=build
|
||||
if [ ! -d "$BUILD_PATH" ]; then
|
||||
mkdir $BUILD_PATH
|
||||
fi
|
||||
|
||||
pushd $BUILD_PATH
|
||||
cmake ..
|
||||
make
|
||||
|
||||
# create package
|
||||
PACKAGE_DIR=driver_air_glasses
|
||||
if [ ! -d "$PACKAGE_DIR" ]; then
|
||||
mkdir $PACKAGE_DIR
|
||||
fi
|
||||
|
||||
# move and rename the compiled driver to the driver directory
|
||||
mv xrealAirLinuxDriver $PACKAGE_DIR
|
||||
|
||||
# copy setup and user-relevant scripts
|
||||
cp ../bin/setup $PACKAGE_DIR
|
||||
cp ../bin/xreal_driver_config $PACKAGE_DIR
|
||||
cp ../bin/xreal_driver_uninstall $PACKAGE_DIR
|
||||
|
||||
# copy the systemd files needed to run our service
|
||||
cp -r ../systemd $PACKAGE_DIR
|
||||
|
||||
# bundle up the driver directory
|
||||
tar -zcvf xrealAirLinuxDriver.tar.gz $PACKAGE_DIR
|
||||
|
||||
popd
|
||||
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 7f2836727c66421b1c2b1e788e9c299d23e81989
|
||||
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 77260be44112b54933d6c6a4f4af38581191fd14
|
||||
Loading…
Reference in New Issue