23
23
# some constants
24
24
#
25
25
xmake_sh_projectdir=$( X= cd -- " $( dirname -- " $0 " ) " && pwd -P)
26
- xmake_sh_buildir =" build"
26
+ xmake_sh_builddir =" build"
27
27
xmake_sh_version=" 1.0.5"
28
28
xmake_sh_verbose=false
29
29
xmake_sh_diagnosis=false
30
30
xmake_sh_copyright=" Copyright (C) 2022-present Ruki Wang, tboox.org, xmake.io."
31
- xmake_sh_makefile=" ${xmake_sh_projectdir} /makefile "
31
+ xmake_sh_makefile=" ${xmake_sh_projectdir} /Makefile "
32
32
33
33
# -----------------------------------------------------------------------------
34
34
# some helper functions
@@ -1499,7 +1499,7 @@ _get_targetdir() {
1499
1499
local name=" ${1} "
1500
1500
_get_target_item " ${name} " " targetdir" ; local targetdir=" ${_ret} "
1501
1501
if test_z " ${targetdir} " ; then
1502
- targetdir=" ${xmake_sh_buildir } /${_target_plat} /${_target_arch} /${_target_mode} "
1502
+ targetdir=" ${xmake_sh_builddir } /${_target_plat} /${_target_arch} /${_target_mode} "
1503
1503
fi
1504
1504
_ret=" ${targetdir} "
1505
1505
}
@@ -1509,7 +1509,7 @@ _get_target_objectdir() {
1509
1509
local name=" ${1} "
1510
1510
_get_target_item " ${name} " " objectdir" ; local objectdir=" ${_ret} "
1511
1511
if test_z " ${objectdir} " ; then
1512
- objectdir=" ${xmake_sh_buildir } /.objs/${name} /${_target_plat} /${_target_arch} /${_target_mode} "
1512
+ objectdir=" ${xmake_sh_builddir } /.objs/${name} /${_target_plat} /${_target_arch} /${_target_mode} "
1513
1513
fi
1514
1514
_ret=" ${objectdir} "
1515
1515
}
@@ -2786,7 +2786,7 @@ Common options:
2786
2786
- emcc
2787
2787
- tinycc
2788
2788
- cosmocc
2789
- --buildir =DIR Set build directory. (default: ' " ${xmake_sh_buildir } " ' )
2789
+ --builddir =DIR Set build directory. (default: ' " ${xmake_sh_builddir } " ' )
2790
2790
2791
2791
Autoconf options:
2792
2792
--build=BUILD Configure for building on BUILD [guessed]
@@ -2882,8 +2882,8 @@ _handle_option() {
2882
2882
elif test_eq " ${name} " " includedir" ; then
2883
2883
_install_includedir_default=" ${value} "
2884
2884
return 0
2885
- elif test_eq " ${name} " " buildir" ; then
2886
- xmake_sh_buildir =" ${value} "
2885
+ elif test_eq " ${name} " " builddir " || test_eq " ${name} " " buildir" ; then
2886
+ xmake_sh_builddir =" ${value} "
2887
2887
return 0
2888
2888
elif test_eq " ${name} " " build" ; then
2889
2889
_autoconf_build_type=" ${value} "
@@ -3780,14 +3780,15 @@ _check_all() {
3780
3780
_check_all
3781
3781
3782
3782
# -----------------------------------------------------------------------------
3783
- # init builtin variables, e.g. add_headerfiles "${buildir }/config.h"
3783
+ # init builtin variables, e.g. add_headerfiles "${builddir }/config.h"
3784
3784
#
3785
3785
projectdir=" ${xmake_sh_projectdir} "
3786
- if path_is_absolute " ${xmake_sh_buildir } " ; then
3787
- buildir =" ${xmake_sh_buildir } "
3786
+ if path_is_absolute " ${xmake_sh_builddir } " ; then
3787
+ builddir =" ${xmake_sh_builddir } "
3788
3788
else
3789
- buildir =" ${xmake_sh_projectdir} /${xmake_sh_buildir } "
3789
+ builddir =" ${xmake_sh_projectdir} /${xmake_sh_builddir } "
3790
3790
fi
3791
+ buildir=${builddir} # deprecated
3791
3792
plat=" ${_target_plat} "
3792
3793
arch=" ${_target_arch} "
3793
3794
mode=" ${_target_mode} "
0 commit comments