Skip to content

Drop SDL2 and dear_imgui from repo #3842

Closed

Description

@benvanik

These submodules should be removed. Either we fetch them as needed (in the WORKSPACE for bazel) or we find them as any other project does (find_package(SDL2 REQUIRED)).

Having things like this as direct dependencies makes it really difficult to integrate into other projects as if the versions differ things go haywire. We also need to fight the Google tendency towards monorepo: a google/iree-samples-vulkan repository is where things like the gui demo belong.

  • remove third_party/sdl2 and replace with WORKSPACE fetch and find_package
  • remove third_party/dear_imgui
  • create a new google/iree-samples-vulkan repo
    • move the vulkan gui demo into that

(this ~1000 lines of build config and not robust today, and there's no need to make it robust as it's not part of the core and shouldn't be inflicted upon people just trying to build/install)

Activity

  1. added
    infrastructure
    hal/vulkan
    on Nov 14, 2020
  2. added this to the milestone on Nov 14, 2020
  3. benvanik commented on Nov 17, 2020

    @benvanik
    CollaboratorAuthor

    I think we can probably kill the bazel versions of these and go cmake only - we have vulkan+bazel coverage for those people who would use it (headless stuff, tools, etc) and I doubt anyone writing GUI apps/games uses bazel. cmake only with sdl2 and dear_imgui fetched from find_package (which we can just say is vcpkg) would let us drop a lot of this. I can start by stripping the bazel files and submodule for sdl2.

    I really don't like it, but sdl2 is listed as a "core dependency" here: https://github.com/google/iree/blob/f941efb95dafb3ef4ba5cf6fbff0e247318b39de/build_tools%2Fdocker%2Fbase%2FDockerfile#L28 - so at least the bots will have it installed (until we get vcpkg setup).

  4. added
    runtime/api
    ew 🤮
    on Nov 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

ew 🤮hal/vulkaninfrastructureruntime/api

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions