Browse Source

package/ci: enable everything that has GL optional in the Vulkan build.

So we use that build to verify the project can compile with GL turned
off, not just that the Vulkan parts can compile.
pull/674/head
Vladimír Vondruš 1 year ago
parent
commit
3d2a1c1625
  1. 29
      package/ci/unix-desktop-vulkan.sh

29
package/ci/unix-desktop-vulkan.sh

@ -17,11 +17,12 @@ cmake .. \
ninja install ninja install
cd ../.. cd ../..
# Enabling only stuff that's directly affected by Vulkan (which means also # Enabling only libraries that have opt-in GL or Vulkan functionality (and thus
# parts of Platform, which need Trade for icon import in tests), disabling # should be tested to compile w/ MAGNUM_TARGET_GL disabled), plus dependencies
# everything else. On Linux this uses a newer GCC because SwiftShader doesn't # of what's directly affected by Vulkan (which means also Trade for icon import
# compile on 4.8; building of Vulkan Magnum code on GCC 4.8 is tested in the # in Platform tests), disabling everything else. On Linux this uses a newer GCC
# combined GL + Vulkan job. # because SwiftShader doesn't compile on 4.8; building of Vulkan Magnum code on
# GCC 4.8 is tested in the combined GL + Vulkan job.
# #
# Not using CXXFLAGS in order to avoid affecting dependencies. # Not using CXXFLAGS in order to avoid affecting dependencies.
mkdir build && cd build mkdir build && cd build
@ -37,13 +38,14 @@ cmake .. \
-DMAGNUM_WITH_DEBUGTOOLS=ON \ -DMAGNUM_WITH_DEBUGTOOLS=ON \
-DMAGNUM_WITH_GL=OFF \ -DMAGNUM_WITH_GL=OFF \
-DMAGNUM_WITH_MATERIALTOOLS=OFF \ -DMAGNUM_WITH_MATERIALTOOLS=OFF \
-DMAGNUM_WITH_MESHTOOLS=OFF \ -DMAGNUM_WITH_MESHTOOLS=ON \
-DMAGNUM_WITH_PRIMITIVES=OFF \ `# Needed by MeshTools tests` \
-DMAGNUM_WITH_PRIMITIVES=ON \
-DMAGNUM_WITH_SCENEGRAPH=OFF \ -DMAGNUM_WITH_SCENEGRAPH=OFF \
-DMAGNUM_WITH_SCENETOOLS=OFF \ -DMAGNUM_WITH_SCENETOOLS=OFF \
-DMAGNUM_WITH_SHADERS=OFF \ -DMAGNUM_WITH_SHADERS=ON \
-DMAGNUM_WITH_TEXT=OFF \ -DMAGNUM_WITH_TEXT=ON \
-DMAGNUM_WITH_TEXTURETOOLS=OFF \ -DMAGNUM_WITH_TEXTURETOOLS=ON \
-DMAGNUM_WITH_TRADE=ON \ -DMAGNUM_WITH_TRADE=ON \
-DMAGNUM_WITH_VK=ON \ -DMAGNUM_WITH_VK=ON \
-DMAGNUM_WITH_AL_INFO=OFF \ -DMAGNUM_WITH_AL_INFO=OFF \
@ -73,8 +75,15 @@ cmake .. \
-DMAGNUM_BUILD_VK_TESTS=ON \ -DMAGNUM_BUILD_VK_TESTS=ON \
-DMAGNUM_BUILD_DEPRECATED=$BUILD_DEPRECATED \ -DMAGNUM_BUILD_DEPRECATED=$BUILD_DEPRECATED \
-G Ninja -G Ninja
ninja $NINJA_JOBS ninja $NINJA_JOBS
# The GL library shouldn't get built by accident
if ls Debug/lib/libMagnumGL*; then
echo "The MagnumGL library was built even though it shouldn't"
false
fi
export VK_ICD_FILENAMES=$HOME/swiftshader/share/vulkan/icd.d/vk_swiftshader_icd.json export VK_ICD_FILENAMES=$HOME/swiftshader/share/vulkan/icd.d/vk_swiftshader_icd.json
export CORRADE_TEST_COLOR=ON export CORRADE_TEST_COLOR=ON

Loading…
Cancel
Save