From 9ce2c32dada1e1fcb90f2c9bab2568895db719f5 Mon Sep 17 00:00:00 2001 From: sonoro1234 Date: Thu, 6 Oct 2022 11:11:50 +0200 Subject: [PATCH] add info about comments generation --- README.md | 2 +- generator/generator.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index cafac11..6a21550 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ Notes: * you will need LuaJIT (https://github.com/LuaJIT/LuaJIT.git better 2.1 branch) or precompiled for linux/macOS/windows in https://luapower.com/luajit/download * you need to use also a C++ compiler for doing preprocessing: gcc (In windows MinGW-W64-builds for example), clang or cl (MSVC). (this repo was done with gcc) * update `imgui` folder to the version you desire. -* edit `generator/generator.bat` on windows, or `generator/generator.sh` on linux, to choose between gcc, clang, or cl and to choose desired backends and whether imgui_internal is generated or not and Freetype2 is used or not. +* edit `generator/generator.bat` on windows, or `generator/generator.sh` on linux, to choose between gcc, clang, or cl and to choose desired backends and whether imgui_internal is generated or not, Freetype2 is used or not and comments are generated or not * the defaults of generator are gcc as compiler, imgui_internal included and sdl, glfw, vulkan, opengl2 and opengl3 as backends. * edit config_generator.lua for adding includes needed by your chosen backends (vulkan needs that). * Run generator.bat or generator.sh with gcc, clang or cl and LuaJIT on your PATH. diff --git a/generator/generator.sh b/generator/generator.sh index 2fb7a4d..3152fe1 100755 --- a/generator/generator.sh +++ b/generator/generator.sh @@ -13,7 +13,7 @@ #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[2] options as words in one string: internal for imgui_internal generation, freetype for freetype generation, comments for comments generation +# examples: "" "internal" "internal freetype" "comments internal" # arg[3..n] name of implementations to generate and/or CLFLAGS (e.g. -DIMGUI_USER_CONFIG or -DIMGUI_USE_WCHAR32) luajit ./generator.lua gcc "internal" glfw opengl3 opengl2 sdl