all output to generated folder and test HAVE_GCC.

cimgui and cimgui_auto versions
This commit is contained in:
sonoro1234
2018-06-27 15:21:48 +02:00
parent 1ee766c0e1
commit 1e5ce71257
6 changed files with 1093 additions and 1088 deletions

View File

@@ -1,20 +1,24 @@
:: this is used to rebuild cimgui.h and cimgui.cpp and must be executed in this directory
:: this script must be executed in this directory
:: all the output goes to generated folder
:: .cpp and .h files:
:: cimgui.h and cimgui.cpp generated without preprocess
:: cimgui_auto.h and cimgui_auto.cpp with gcc 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
:: cimgui_impl.h with implementation function cdefs
:: set your PATH if necessary for LuaJIT or Lua5.1 or luajit with: (for example)
:: set PATH=%PATH%;C:\luaGL;
set PATH=%PATH%;C:\luaGL;C:\mingw32\bin;
::process files
:: arg[1] true=use gcc false=dont use gcc
:: arg[2..] name of implementation to generate
luajit.exe ./generator.lua false glfw opengl3 opengl2 sdl
:: arg[1..n] name of implementations to generate
luajit.exe ./generator.lua glfw opengl3 opengl2 sdl
::copy cimgui.h and cimgui.cpp
copy .\cimgui.h ..\cimgui.h
copy .\cimgui.cpp ..\cimgui.cpp
copy .\generated\cimgui.h ..\cimgui.h
copy .\generated\cimgui.cpp ..\cimgui.cpp
::leave console open
cmd /k