Skip to content

Move SDL2 and Dear ImGui submodules to CMake find_package. - #4130

Merged
ScottTodd merged 2 commits into
iree-org:mainfrom
ScottTodd:vk-submodules
Dec 8, 2020
Merged

ScottTodd merged 2 commits into
iree-org:mainfrom
ScottTodd:vk-submodules

Conversation

@ScottTodd

Copy link
Copy Markdown
Member

Fixes #3842

We have two optional graphical application binaries using SDL2 and Dear ImGui:

As these applications are optional, we don't need to support Bazel.

We don't need to directly include the source for SDL2 and Dear ImGui as git submodules in IREE itself, so this moves those dependencies to CMake-only libraries found via find_package. The libraries can be installed in any way developers want, or via vcpkg.

Tested on Windows using:

λ vcpkg install sdl2[vulkan]
λ vcpkg install imgui[vulkan-binding,sdl2-binding]
λ vcpkg integrate install

The install command instructed me to add -DCMAKE_TOOLCHAIN_FILE=D:/dev/tools/vcpkg/scripts/buildsystems/vcpkg.cmake to my CMake configure command, which sets up the includes. We can integrate more directly with vcpkg and document its usage over time.

@ScottTodd ScottTodd added infrastructure Relating to build systems, CI, or testing hal/vulkan Runtime Vulkan GPU HAL backend runtime/api IREE's public C runtime API and iree-run-module labels Dec 8, 2020
@ScottTodd
ScottTodd requested a review from benvanik December 8, 2020 19:00
@google-cla google-cla Bot added the cla: yes label Dec 8, 2020
Comment thread iree/testing/vulkan/CMakeLists.txt Resolved
Comment thread iree/testing/vulkan/CMakeLists.txt Resolved
@ScottTodd
ScottTodd merged commit 444938e into iree-org:main Dec 8, 2020
@ScottTodd
ScottTodd deleted the vk-submodules branch December 8, 2020 21:21
copybara-service Bot pushed a commit that referenced this pull request Dec 9, 2020
FUTURE_COPYBARA_INTEGRATE_REVIEW=#4136 from stellaraccident:main-to-google e84d1c6
PiperOrigin-RevId: 346456015
ScottTodd added a commit that referenced this pull request Dec 9, 2020
Missed this on #4130 since I wasn't building all targets (not tested on CI).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hal/vulkan Runtime Vulkan GPU HAL backend infrastructure Relating to build systems, CI, or testing runtime/api IREE's public C runtime API and iree-run-module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Drop SDL2 and dear_imgui from repo

2 participants