mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-29 18:50:05 +00:00
Update setup script naming convention
This commit is contained in:
parent
b89938b48a
commit
76c6ac2ccd
14 changed files with 91 additions and 1 deletions
|
|
@ -1,11 +1,12 @@
|
|||
#!/bin/bash
|
||||
script_dir="$(dirname "$(readlink -f "$0")")"
|
||||
|
||||
export build_dir="$(readlink -f "${1:-${script_dir}/../build-debug}")"
|
||||
export build_dir="$(readlink -f "${1:-${script_dir}/../build-multi}")"
|
||||
export conan_profile=${2:-scwx-linux_gcc-11}
|
||||
export generator="Ninja Multi-Config"
|
||||
export qt_base=/opt/Qt
|
||||
export qt_arch=gcc_64
|
||||
export address_sanitizer=${4:-disabled}
|
||||
|
||||
# Assign user-specified Python Virtual Environment
|
||||
[ "${3:-}" = "none" ] && unset venv_path || export venv_path="$(readlink -f "${3:-${script_dir}/../.venv}")"
|
||||
30
tools/setup-macos-xcode-debug.sh
Executable file
30
tools/setup-macos-xcode-debug.sh
Executable file
|
|
@ -0,0 +1,30 @@
|
|||
#!/bin/bash
|
||||
script_source="${BASH_SOURCE[0]:-$0}"
|
||||
script_dir="$(cd "$(dirname "${script_source}")" && pwd)"
|
||||
|
||||
export build_dir="$(python3 -c 'import os,sys;print(os.path.realpath(sys.argv[1]))' "${1:-${script_dir}/../build-xcode-debug}")"
|
||||
export build_type=Debug
|
||||
export conan_profile=${2:-scwx-macos_clang-18_armv8}
|
||||
export generator=Xcode
|
||||
export qt_base="/Users/${USER}/Qt"
|
||||
export qt_arch=macos
|
||||
export address_sanitizer=${4:-disabled}
|
||||
|
||||
# Set explicit compiler paths
|
||||
export CC=$(brew --prefix llvm@18)/bin/clang
|
||||
export CXX=$(brew --prefix llvm@18)/bin/clang++
|
||||
export PATH="$(brew --prefix llvm@18)/bin:$PATH"
|
||||
|
||||
export LDFLAGS="-L$(brew --prefix llvm@18)/lib -L$(brew --prefix llvm@18)/lib/c++"
|
||||
export CPPFLAGS="-I$(brew --prefix llvm@18)/include"
|
||||
|
||||
# Assign user-specified Python Virtual Environment
|
||||
if [ "${3:-}" = "none" ]; then
|
||||
unset venv_path
|
||||
else
|
||||
# macOS does not have 'readlink -f', use python for realpath
|
||||
export venv_path="$(python3 -c 'import os,sys;print(os.path.realpath(sys.argv[1]))' "${3:-${script_dir}/../.venv}")"
|
||||
fi
|
||||
|
||||
# Perform common setup
|
||||
"${script_dir}/lib/setup-common.sh"
|
||||
29
tools/setup-macos-xcode-multi.sh
Executable file
29
tools/setup-macos-xcode-multi.sh
Executable file
|
|
@ -0,0 +1,29 @@
|
|||
#!/bin/bash
|
||||
script_source="${BASH_SOURCE[0]:-$0}"
|
||||
script_dir="$(cd "$(dirname "${script_source}")" && pwd)"
|
||||
|
||||
export build_dir="$(python3 -c 'import os,sys;print(os.path.realpath(sys.argv[1]))' "${1:-${script_dir}/../build-xcode}")"
|
||||
export conan_profile=${2:-scwx-macos_clang-18_armv8}
|
||||
export generator=Xcode
|
||||
export qt_base=/opt/Qt
|
||||
export qt_arch=gcc_64
|
||||
export address_sanitizer=${4:-disabled}
|
||||
|
||||
# Set explicit compiler paths
|
||||
export CC=$(brew --prefix llvm@18)/bin/clang
|
||||
export CXX=$(brew --prefix llvm@18)/bin/clang++
|
||||
export PATH="$(brew --prefix llvm@18)/bin:$PATH"
|
||||
|
||||
export LDFLAGS="-L$(brew --prefix llvm@18)/lib -L$(brew --prefix llvm@18)/lib/c++"
|
||||
export CPPFLAGS="-I$(brew --prefix llvm@18)/include"
|
||||
|
||||
# Assign user-specified Python Virtual Environment
|
||||
if [ "${3:-}" = "none" ]; then
|
||||
unset venv_path
|
||||
else
|
||||
# macOS does not have 'readlink -f', use python for realpath
|
||||
export venv_path="$(python3 -c 'import os,sys;print(os.path.realpath(sys.argv[1]))' "${3:-${script_dir}/../.venv}")"
|
||||
fi
|
||||
|
||||
# Perform common setup
|
||||
"${script_dir}/lib/setup-common.sh"
|
||||
30
tools/setup-macos-xcode-release.sh
Executable file
30
tools/setup-macos-xcode-release.sh
Executable file
|
|
@ -0,0 +1,30 @@
|
|||
#!/bin/bash
|
||||
script_source="${BASH_SOURCE[0]:-$0}"
|
||||
script_dir="$(cd "$(dirname "${script_source}")" && pwd)"
|
||||
|
||||
export build_dir="$(python3 -c 'import os,sys;print(os.path.realpath(sys.argv[1]))' "${1:-${script_dir}/../build-xcode-release}")"
|
||||
export build_type=Release
|
||||
export conan_profile=${2:-scwx-macos_clang-18_armv8}
|
||||
export generator=Xcode
|
||||
export qt_base="/Users/${USER}/Qt"
|
||||
export qt_arch=macos
|
||||
export address_sanitizer=${4:-disabled}
|
||||
|
||||
# Set explicit compiler paths
|
||||
export CC=$(brew --prefix llvm@18)/bin/clang
|
||||
export CXX=$(brew --prefix llvm@18)/bin/clang++
|
||||
export PATH="$(brew --prefix llvm@18)/bin:$PATH"
|
||||
|
||||
export LDFLAGS="-L$(brew --prefix llvm@18)/lib -L$(brew --prefix llvm@18)/lib/c++"
|
||||
export CPPFLAGS="-I$(brew --prefix llvm@18)/include"
|
||||
|
||||
# Assign user-specified Python Virtual Environment
|
||||
if [ "${3:-}" = "none" ]; then
|
||||
unset venv_path
|
||||
else
|
||||
# macOS does not have 'readlink -f', use python for realpath
|
||||
export venv_path="$(python3 -c 'import os,sys;print(os.path.realpath(sys.argv[1]))' "${3:-${script_dir}/../.venv}")"
|
||||
fi
|
||||
|
||||
# Perform common setup
|
||||
"${script_dir}/lib/setup-common.sh"
|
||||
Loading…
Add table
Add a link
Reference in a new issue