mirror of
https://github.com/cimgui/cimgui.git
synced 2025-08-10 20:08:31 +01:00
20 lines
838 B
Bash
Executable File
20 lines
838 B
Bash
Executable File
#!/usr/bin/sh
|
|
|
|
# this script must be executed in this directory
|
|
# all the output goes to generator/output folder
|
|
# .cpp and .h files:
|
|
# cimgui.h and cimgui.cpp with gcc preprocess
|
|
# cimgui_nopreprocess.h and cimgui_nopreprocess.cpp generated without preprocess
|
|
# cimgui_impl.h with implementation function cdefs
|
|
# lua and json files:
|
|
# definitions.lua for function definitions
|
|
# structs_and_enums.lua with struct and enum information-definitions
|
|
# impl_definitions.lua for implementation function definitions
|
|
|
|
#process files
|
|
# arg[1] compiler name gcc, clang, or cl
|
|
# arg[2] options as words in one string: internal for imgui_internal generation, freetype for freetype generation
|
|
# examples: "" "internal" "internal freetype"
|
|
# arg[3..n] name of implementations to generate
|
|
luajit ./generator.lua gcc "internal" glfw opengl3 opengl2 sdl
|