mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-29 18:00:05 +00:00
Add user-setup script overrides for Linux
This commit is contained in:
parent
c36144bab3
commit
c9d1e4cd08
3 changed files with 18 additions and 0 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -19,3 +19,6 @@ _deps
|
||||||
|
|
||||||
# Python Virtual Environment
|
# Python Virtual Environment
|
||||||
.venv/
|
.venv/
|
||||||
|
|
||||||
|
# Specific excludes for Supercell Wx
|
||||||
|
tools/lib/user-setup.sh
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,11 @@ script_dir="$(dirname "$(readlink -f "$0")")"
|
||||||
# Import common paths
|
# Import common paths
|
||||||
source "${script_dir}/common-paths.sh"
|
source "${script_dir}/common-paths.sh"
|
||||||
|
|
||||||
|
# Load custom build settings
|
||||||
|
if [ -f "${script_dir}/user-setup.sh" ]; then
|
||||||
|
source "${script_dir}/user-setup.sh"
|
||||||
|
fi
|
||||||
|
|
||||||
# Activate Python Virtual Environment
|
# Activate Python Virtual Environment
|
||||||
if [ -n "${venv_path:-}" ]; then
|
if [ -n "${venv_path:-}" ]; then
|
||||||
python -m venv "${venv_path}"
|
python -m venv "${venv_path}"
|
||||||
|
|
|
||||||
10
tools/lib/user-setup.example.sh
Normal file
10
tools/lib/user-setup.example.sh
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Example user setup script. Copy as user-setup.sh and modify as required.
|
||||||
|
|
||||||
|
# gcc-13 is not the default gcc version
|
||||||
|
export CC=/usr/bin/gcc-13
|
||||||
|
export CXX=/usr/bin/c++-13
|
||||||
|
|
||||||
|
# Override conan profile to be gcc-13
|
||||||
|
export conan_profile=scwx-linux_gcc-13
|
||||||
Loading…
Add table
Add a link
Reference in a new issue