pthom / imgui_manual

https://pthom.github.io/imgui_manual_online - an interactive manual for ImGui
MIT License
304 stars 23 forks source link

Include a simplified build systèm into imgui_manual #7

Closed jrynkiew closed 1 year ago

jrynkiew commented 2 years ago

Hi Pascal,

I added a buid system to avoid having to install dependencies on my host machine which might clutter up my OS. I like my system clean, so I designed this docker-based build system which will install docker, docker-compose, build a build container, and create a "bin" folder, and compile all your code in the container, and make it available in the "bin" folder, so all you have to do is code the program, not worry about building

jrynkiew commented 1 year ago

@pthom foo While I agree with closing this PR now, as my repo has divered from yours, I think that you should look into including a Dockerfile build system for your imgui_manual repository, as if you are just starting out, it is very frustrating setting up the necessary dependencies. With this solution, you can just build the source with 1 click of a button straight after cloning the repo :)

pthom commented 1 year ago

Yes, this PR has diverged; and I felt that the Dockerfile is a bit out of scope.

FYI, I just retried following the readme instructions, and it worked perfectly on macOS (I did not take time to test them again on linux).

# clone
git clone https://github.com/pthom/imgui_manual.git
cd imgui_manual
git submodule update --init --recursive

# Install third parties
python  external/hello_imgui/tools/vcpkg_install_third_parties.py

# Build
mkdir build
cd build
cmake .. -DCMAKE_TOOLCHAIN_FILE=../external/hello_imgui/vcpkg/scripts/buildsystems/vcpkg.cmake
make -j 4

Concerning a Dockerfile, maybe in the future.