cbuild 2.3.5
This commit is contained in:
36
dependencies/cimgui.project.config
vendored
36
dependencies/cimgui.project.config
vendored
@@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
CBUILD_VERSION=2.2.1
|
||||
CBUILD_VERSION=2.3.5
|
||||
CONFIG_VERSION=1
|
||||
|
||||
PROJECT="cimgui"
|
||||
@@ -7,8 +7,8 @@ CMP_C="gcc"
|
||||
CMP_CPP="g++"
|
||||
STD_C="c11"
|
||||
STD_CPP="c++11"
|
||||
WARN_C="-Wall -Wno-discarded-qualifiers -Wno-unused-parameter"
|
||||
WARN_CPP="-Wall -Wno-unused-parameter"
|
||||
WARN_C=""
|
||||
WARN_CPP=""
|
||||
SRC_C=""
|
||||
SRC_CPP="imgui/imgui.cpp
|
||||
imgui/imgui_demo.cpp
|
||||
@@ -42,12 +42,12 @@ case "$OS" in
|
||||
WINDOWS)
|
||||
SHARED_LIB_FILE="$PROJECT.dll"
|
||||
LINKER_LIBS="-L../precompiled/$OS-$ARCH -l:SDL2.dll"
|
||||
DEFINE="-DIMGUI_API=__declspec(dllexport)"
|
||||
DEFINES="-DIMGUI_API=__declspec(dllexport)"
|
||||
;;
|
||||
LINUX)
|
||||
SHARED_LIB_FILE="$PROJECT.so"
|
||||
LINKER_LIBS="-lSDL2"
|
||||
DEFINE="-DIMGUI_API=__attribute__((__visibility__(\"default\")))"
|
||||
DEFINES="-DIMGUI_API=__attribute__((__visibility__(\"default\")))"
|
||||
;;
|
||||
*)
|
||||
error "operating system $OS has no configuration variants"
|
||||
@@ -58,41 +58,33 @@ esac
|
||||
case "$TASK" in
|
||||
# creates shared library
|
||||
build_shared_lib)
|
||||
C_ARGS="-O2 -fpic -shared $DEFINE"
|
||||
C_ARGS="-O2 -fpic -shared $DEFINES"
|
||||
CPP_ARGS="$C_ARGS"
|
||||
LINKER_ARGS="$CPP_ARGS $LINKER_LIBS -Wl,-soname,$SHARED_LIB_FILE"
|
||||
PRE_TASK_SCRIPT=
|
||||
TASK_SCRIPT=cbuild/default_tasks/build_shared_lib.sh
|
||||
POST_TASK_SCRIPT=
|
||||
TASK_SCRIPT="@cbuild/default_tasks/build_shared_lib.sh"
|
||||
;;
|
||||
# creates shared library with debug symbols and no optimizations
|
||||
build_shared_lib_dbg)
|
||||
C_ARGS="-O0 -g3 -fpic -shared $DEFINE"
|
||||
C_ARGS="-O0 -g3 -fpic -shared $DEFINES"
|
||||
CPP_ARGS="$C_ARGS"
|
||||
LINKER_ARGS="$CPP_ARGS $LINKER_LIBS -Wl,-soname,$SHARED_LIB_FILE"
|
||||
PRE_TASK_SCRIPT=
|
||||
TASK_SCRIPT=cbuild/default_tasks/build_shared_lib.sh
|
||||
POST_TASK_SCRIPT=
|
||||
TASK_SCRIPT="@cbuild/default_tasks/build_shared_lib.sh"
|
||||
;;
|
||||
# creates static library
|
||||
build_static_lib)
|
||||
C_ARGS="-O2 $DEFINE"
|
||||
C_ARGS="-O2 $DEFINES"
|
||||
CPP_ARGS="$C_ARGS"
|
||||
PRE_TASK_SCRIPT=
|
||||
TASK_SCRIPT=cbuild/default_tasks/build_static_lib.sh
|
||||
POST_TASK_SCRIPT=
|
||||
TASK_SCRIPT="@cbuild/default_tasks/build_static_lib.sh"
|
||||
;;
|
||||
# creates static library with debug symbols and no optimizations
|
||||
build_static_lib_dbg)
|
||||
C_ARGS="-O0 -g3 $DEFINE"
|
||||
C_ARGS="-O0 -g3 $DEFINES"
|
||||
CPP_ARGS="$C_ARGS"
|
||||
PRE_TASK_SCRIPT=
|
||||
TASK_SCRIPT=cbuild/default_tasks/build_static_lib.sh
|
||||
POST_TASK_SCRIPT=
|
||||
TASK_SCRIPT="@cbuild/default_tasks/build_static_lib.sh"
|
||||
;;
|
||||
# deletes generated files
|
||||
clean)
|
||||
TASK_SCRIPT=cbuild/default_tasks/clean.sh
|
||||
TASK_SCRIPT="@cbuild/default_tasks/clean.sh"
|
||||
;;
|
||||
# nothing to do
|
||||
"" | no_task)
|
||||
|
||||
Reference in New Issue
Block a user