2018-06-27 15:21:48 +02:00
|
|
|
:: this script must be executed in this directory
|
2018-10-08 11:56:49 +02:00
|
|
|
:: all the output goes to generator/output folder
|
2018-06-27 15:21:48 +02:00
|
|
|
:: .cpp and .h files:
|
2018-10-05 18:04:58 +02:00
|
|
|
:: cimgui.h and cimgui.cpp with gcc preprocess
|
2018-10-08 11:56:49 +02:00
|
|
|
:: cimgui_nopreprocess.h and cimgui_nopreprocess.cpp generated without preprocess
|
2018-06-27 15:21:48 +02:00
|
|
|
:: cimgui_impl.h with implementation function cdefs
|
|
|
|
:: lua and json files:
|
2018-06-25 15:52:55 +02:00
|
|
|
:: definitions.lua for function definitions
|
|
|
|
:: structs_and_enums.lua with struct and enum information-definitions
|
|
|
|
:: impl_definitions.lua for implementation function definitions
|
2018-06-20 11:42:19 +02:00
|
|
|
|
2018-06-26 10:51:55 +02:00
|
|
|
:: set your PATH if necessary for LuaJIT or Lua5.1 or luajit with: (for example)
|
2020-03-27 12:18:47 +01:00
|
|
|
set PATH=%PATH%;C:\anima;C:\mingws\i686-7.2.0-release-posix-dwarf-rt_v5-rev1\mingw32\bin;
|
2018-10-05 12:56:02 +02:00
|
|
|
:: set PATH=%PATH%;C:\luaGL;C:\i686-7.2.0-release-posix-dwarf-rt_v5-rev1\mingw32\bin;
|
2018-10-08 11:37:20 +02:00
|
|
|
:: set PATH=%PATH%;C:\luaGL\sources\luajit-master\luajit-master\bin\mingw32;C:\mingw32\bin;
|
2018-06-25 15:52:55 +02:00
|
|
|
::process files
|
2018-10-10 10:59:51 +02:00
|
|
|
:: arg[1] compiler name gcc, clang, cl or nocompiler
|
2020-03-24 19:05:57 +01:00
|
|
|
:: arg[2] imgui_internal functions generation: true or false
|
|
|
|
:: arg[3..n] name of implementations to generate
|
2020-04-13 09:45:35 +02:00
|
|
|
luajit ./generator.lua gcc true glfw opengl3 opengl2 sdl
|
2018-06-17 12:26:40 +02:00
|
|
|
|
2018-06-20 11:42:19 +02:00
|
|
|
::leave console open
|
2018-04-26 19:51:47 +02:00
|
|
|
cmd /k
|
|
|
|
|