diff --git a/generator/generator.sh b/generator/generator.sh index e2840c5..bafb063 100755 --- a/generator/generator.sh +++ b/generator/generator.sh @@ -1,4 +1,4 @@ -#!/usr/bin/sh +#!/bin/bash # this script must be executed in this directory # all the output goes to generator/output folder @@ -16,10 +16,62 @@ # arg[2] options as words in one string: internal for imgui_internal generation, freetype for freetype generation, comments for comments generation, nochar to skip char* function version, noimstrv to skip imstrv # 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) +# + +# parse command line arguments +# ref: https://stackoverflow.com/questions/192249/how-do-i-parse-command-line-arguments-in-bash +POSITIONAL_ARGS=() + +TARGETS="internal noimstrv" +CFLAGS="glfw opengl3 opengl2 sdl2" + +help() { + cat <