diff --git a/tools/env.cmd b/tools/env.cmd new file mode 100644 index 0000000..e855467 --- /dev/null +++ b/tools/env.cmd @@ -0,0 +1,26 @@ +:: +:: Licensed under the GNU General Public License v. 3 (the "License"); +:: You may not use this file except in compliance with the License. +:: You may obtain a copy of the License at +:: +:: https://www.gnu.org/licenses/gpl-3.0.html +:: +:: Unless required by applicable law or agreed to in writing, software +:: distributed under the License is distributed on an "AS IS" BASIS, +:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +:: See the License for the specific language governing permissions and +:: limitations under the License. +:: +:: Copyright (C) 2023-2024 xqyjlj +:: +:: @author xqyjlj +:: @file env.cmd +:: +:: Change Logs: +:: Date Author Notes +:: ------------ ---------- ----------------------------------------------- +:: 2024-01-19 xqyjlj initial version +:: +@echo off + +set XMAKE_RCFILES=%~dp0scripts\xmake.lua diff --git a/tools/env.ps1 b/tools/env.ps1 new file mode 100644 index 0000000..4f84b0d --- /dev/null +++ b/tools/env.ps1 @@ -0,0 +1,26 @@ +# +# Licensed under the GNU General Public License v. 3 (the "License"); +# You may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.gnu.org/licenses/gpl-3.0.html +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Copyright (C) 2023-2024 xqyjlj +# +# @author xqyjlj +# @file env.ps1 +# +# Change Logs: +# Date Author Notes +# ------------ ---------- ----------------------------------------------- +# 2024-01-19 xqyjlj initial version +# +$script_dir = Split-Path -Parent $MyInvocation.MyCommand.Definition + +$env:XMAKE_RCFILES=${script_dir}+"\scripts\xmake.lua" diff --git a/tools/env.sh b/tools/env.sh new file mode 100755 index 0000000..3cf2b1c --- /dev/null +++ b/tools/env.sh @@ -0,0 +1,28 @@ +#!/bin/bash + +# +# Licensed under the GNU General Public License v. 3 (the "License"); +# You may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.gnu.org/licenses/gpl-3.0.html +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Copyright (C) 2023-2024 xqyjlj +# +# @author xqyjlj +# @file env.sh +# +# Change Logs: +# Date Author Notes +# ------------ ---------- ----------------------------------------------- +# 2024-01-19 xqyjlj initial version +# +script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" + +export XMAKE_RCFILES=${script_dir}/scripts/xmake.lua