-
Notifications
You must be signed in to change notification settings - Fork 1
/
justfile
20 lines (15 loc) · 705 Bytes
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
init:
git submodule update --recursive --init --depth 1
generate-cimgui: init
cd ./cimgui/generator && ./generator.sh --target "noimstrv" --cflags ""
# original: "glfw opengl3 opengl2 sdl2"
# all possible flags: "allegro5 android dx10 dx11 dx12 dx9 glfw glut opengl2 opengl3 sdl2 sdl3 sdlrenderer2 sdlrenderer3 vulkan wgpu win32"
build-cimgui: generate-cimgui
make static -C cimgui CXXFLAGS='-DIMGUI_DISABLE_OBSOLETE_KEYIO -DIMGUI_DISABLE_OBSOLETE_FUNCTIONS'
# see 'c3c --list-targets' for available targets
build TARGET: build-cimgui
mkdir -p ./{{TARGET}} && cp -vf ./cimgui/libcimgui.a ./{{TARGET}}/libcimgui.a
generate-build: build-cimgui
c3c run generator
generate:
c3c run generator