cbuild updated
This commit is contained in:
parent
a0a35b30a6
commit
3b00d60907
2
.gitignore
vendored
2
.gitignore
vendored
@ -9,4 +9,4 @@ obj/
|
|||||||
.editorconfig
|
.editorconfig
|
||||||
*.user
|
*.user
|
||||||
*.vcxproj.filters
|
*.vcxproj.filters
|
||||||
.config
|
current.config
|
||||||
|
|||||||
2
cbuild
2
cbuild
@ -1 +1 @@
|
|||||||
Subproject commit b514eda08d1db643ec5025be5819e0dfeaf1ef6c
|
Subproject commit bad865d76c8daf9055d0e82fcd96b5d9c7628cce
|
||||||
@ -1,5 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
CONFIG_VER=2
|
CONFIG_VERSION=2
|
||||||
|
CBUILD_VERSION=2
|
||||||
|
|
||||||
PROJECT=kerep
|
PROJECT=kerep
|
||||||
CMP_C=gcc
|
CMP_C=gcc
|
||||||
@ -19,42 +20,52 @@ EXEC_FILE=$PROJECT.com
|
|||||||
SHARED_LIB_FILE=$PROJECT.so
|
SHARED_LIB_FILE=$PROJECT.so
|
||||||
STATIC_LIB_FILE=$PROJECT.a
|
STATIC_LIB_FILE=$PROJECT.a
|
||||||
|
|
||||||
PRE_BUILD_SCRIPT=tasks/pre_build.sh
|
|
||||||
|
|
||||||
case $TASK in
|
case $TASK in
|
||||||
build_exec)
|
build_exec)
|
||||||
C_ARGS="-O2"
|
C_ARGS="-O2"
|
||||||
CPP_ARGS="$C_ARGS"
|
CPP_ARGS="$C_ARGS"
|
||||||
LINKER_ARGS=""
|
LINKER_ARGS=""
|
||||||
TASK_SCRIPT=cbuild/default_tasks/build_exec.sh
|
TASK_SCRIPT=cbuild/default_tasks/build_exec.sh
|
||||||
|
PRE_TASK_SCRIPT=tasks/pre_build.sh
|
||||||
|
POST_TASK_SCRIPT=
|
||||||
;;
|
;;
|
||||||
build_exec_dbg)
|
build_exec_dbg)
|
||||||
C_ARGS="-O0 -g"
|
C_ARGS="-O0 -g"
|
||||||
CPP_ARGS="$C_ARGS"
|
CPP_ARGS="$C_ARGS"
|
||||||
LINKER_ARGS=""
|
LINKER_ARGS=""
|
||||||
TASK_SCRIPT=cbuild/default_tasks/build_exec.sh
|
TASK_SCRIPT=cbuild/default_tasks/build_exec.sh
|
||||||
|
PRE_TASK_SCRIPT=tasks/pre_build.sh
|
||||||
|
POST_TASK_SCRIPT=
|
||||||
;;
|
;;
|
||||||
build_shared_lib)
|
build_shared_lib)
|
||||||
C_ARGS="-O2 -fpic -flto -shared"
|
C_ARGS="-O2 -fpic -flto -shared"
|
||||||
CPP_ARGS="$C_ARGS"
|
CPP_ARGS="$C_ARGS"
|
||||||
LINKER_ARGS="-Wl,-soname,$SHARED_LIB_FILE"
|
LINKER_ARGS="-Wl,-soname,$SHARED_LIB_FILE"
|
||||||
TASK_SCRIPT=cbuild/default_tasks/build_shared_lib.sh
|
TASK_SCRIPT=cbuild/default_tasks/build_shared_lib.sh
|
||||||
|
PRE_TASK_SCRIPT=tasks/pre_build.sh
|
||||||
|
POST_TASK_SCRIPT=
|
||||||
;;
|
;;
|
||||||
build_shared_lib_dbg)
|
build_shared_lib_dbg)
|
||||||
C_ARGS="-O0 -g -fpic -shared"
|
C_ARGS="-O0 -g -fpic -shared"
|
||||||
CPP_ARGS="$C_ARGS"
|
CPP_ARGS="$C_ARGS"
|
||||||
LINKER_ARGS="-Wl,-soname,$SHARED_LIB_FILE"
|
LINKER_ARGS="-Wl,-soname,$SHARED_LIB_FILE"
|
||||||
TASK_SCRIPT=cbuild/default_tasks/build_shared_lib.sh
|
TASK_SCRIPT=cbuild/default_tasks/build_shared_lib.sh
|
||||||
|
PRE_TASK_SCRIPT=tasks/pre_build.sh
|
||||||
|
POST_TASK_SCRIPT=
|
||||||
;;
|
;;
|
||||||
build_static_lib)
|
build_static_lib)
|
||||||
C_ARGS="-O2 -fpic"
|
C_ARGS="-O2 -fpic"
|
||||||
CPP_ARGS="$C_ARGS"
|
CPP_ARGS="$C_ARGS"
|
||||||
TASK_SCRIPT=cbuild/default_tasks/build_static_lib.sh
|
TASK_SCRIPT=cbuild/default_tasks/build_static_lib.sh
|
||||||
|
PRE_TASK_SCRIPT=tasks/pre_build.sh
|
||||||
|
POST_TASK_SCRIPT=
|
||||||
;;
|
;;
|
||||||
build_static_lib_dbg)
|
build_static_lib_dbg)
|
||||||
C_ARGS="-O0 -g"
|
C_ARGS="-O0 -g"
|
||||||
CPP_ARGS="$C_ARGS"
|
CPP_ARGS="$C_ARGS"
|
||||||
TASK_SCRIPT=cbuild/default_tasks/build_static_lib.sh
|
TASK_SCRIPT=cbuild/default_tasks/build_static_lib.sh
|
||||||
|
PRE_TASK_SCRIPT=tasks/pre_build.sh
|
||||||
|
POST_TASK_SCRIPT=
|
||||||
;;
|
;;
|
||||||
exec)
|
exec)
|
||||||
TASK_SCRIPT=cbuild/default_tasks/exec.sh
|
TASK_SCRIPT=cbuild/default_tasks/exec.sh
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user