INNER CODE UNIT · Ruby

install

mosra/magnum-integration · package/homebrew/magnum-integration.rb:17

  def install
    # Bundle ImGui
    system "curl", "-L", "https://github.com/ocornut/imgui/archive/v1.91.0.tar.gz", "-o", "src/MagnumExternal/imgui.tar.gz"
    cd "src/MagnumExternal" do
      system "mkdir", "ImGui"
      system "tar", "xzvf", "imgui.tar.gz", "-C", "ImGui", "--strip-components=1"
    end

    system "mkdir build"
    cd "build" do
      system "cmake",
        *std_cmake_args,
        # Without this, ARM builds will try to look for dependencies in
        # /usr/local/lib and /usr/lib (which are the default locations) instead
        # of /opt/homebrew/lib which is dedicated for ARM binaries. Please
        # complain to Homebrew about this insane non-obvious filesystem layout.
        "-DCMAKE_INSTALL_NAME_DIR:STRING=#{lib}",
        "-DMAGNUM_WITH_BULLETINTEGRATION=#{(build.with? 'bullet') ? 'ON' : 'OFF'}",

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…