Skip to content
Snippets Groups Projects
Commit 1da6c810 authored by Joseph Walton-Rivers's avatar Joseph Walton-Rivers
Browse files

add flags for disabling extention modules

parent 3f0e7f0e
No related branches found
No related tags found
No related merge requests found
Pipeline #3637 failed
...@@ -36,7 +36,7 @@ build:fedora: ...@@ -36,7 +36,7 @@ build:fedora:
extends: .f34-ogl extends: .f34-ogl
stage: build stage: build
script: script:
- cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug - cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DFGGL_EXT_BULLET=OFF
- cmake --build build - cmake --build build
artifacts: artifacts:
paths: paths:
...@@ -49,7 +49,7 @@ build:ubuntu: ...@@ -49,7 +49,7 @@ build:ubuntu:
- apt update && apt install -y build-essential cmake - apt update && apt install -y build-essential cmake
- apt install -y libglm-dev libglfw3-dev libopenal-dev libspdlog-dev libfreetype-dev libyaml-cpp-dev libassimp-dev libbullet-extras-dev libgtest-dev libgmock-dev liblua5.2-dev - apt install -y libglm-dev libglfw3-dev libopenal-dev libspdlog-dev libfreetype-dev libyaml-cpp-dev libassimp-dev libbullet-extras-dev libgtest-dev libgmock-dev liblua5.2-dev
script: script:
- cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug - cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DFGGL_EXT_BULLET=OFF -DFGGL_EXT_LUA=OFF
- cmake --build build - cmake --build build
......
...@@ -8,6 +8,9 @@ option(FGGL_EXAMPLES "Should we build examples or just the library" ON) ...@@ -8,6 +8,9 @@ option(FGGL_EXAMPLES "Should we build examples or just the library" ON)
option(FGGL_TESTS "Should we enable the testing suite?" ON) option(FGGL_TESTS "Should we enable the testing suite?" ON)
option(FGGL_DOCS "Should we build documentation?" ON) option(FGGL_DOCS "Should we build documentation?" ON)
option(FGGL_EXT_BULLET "Should we build the bullet module?" OFF)
option(FGGL_EXT_LUA "Should we build the lua module?" ON)
## ##
# Windows # Windows
# When on windows, integrate vcpkg # When on windows, integrate vcpkg
...@@ -66,8 +69,13 @@ endif() ...@@ -66,8 +69,13 @@ endif()
## ##
# 3rd party integrations # 3rd party integrations
add_subdirectory( integrations/bullet ) if ( FGGL_EXT_BULLET )
add_subdirectory( integrations/lua ) add_subdirectory( integrations/bullet )
endif()
if ( FGGL_EXT_LUA )
add_subdirectory( integrations/lua )
endif()
# Tools # Tools
# add_subdirectory( tools/pack ) # add_subdirectory( tools/pack )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment