-
-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathARM64-environment.bat
More file actions
40 lines (40 loc) · 1.59 KB
/
Copy pathARM64-environment.bat
File metadata and controls
40 lines (40 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
@echo off
rem =============================================================================
rem Copyright (c) 2016-present Allan CORNET (Nelson)
rem =============================================================================
rem This file is part of Nelson.
rem =============================================================================
rem # LICENCE_BLOCK_BEGIN
rem # SPDX-License-Identifier: LGPL-3.0-or-later
rem # LICENCE_BLOCK_END
rem =============================================================================
rem Save the current directory
set ORIGINAL_DIR=%CD%
rem =============================================================================
rem Set the script's directory as the root path
set BAT_PATH=%~dp0
rem Remove trailing backslash if present
set BAT_PATH=%BAT_PATH:~0,-1%
rem =============================================================================
if not defined QTDIR64 (
for %%i in ("%BAT_PATH%\..\qt_woa64\6.11.0\msvc2022_arm64") do set QTDIR64=%%~fi
)
rem =============================================================================
if not exist "%QTDIR64%" (
echo %QTDIR64% not found.
exit /b 1
)
set QTDIR=%QTDIR64%
rem =============================================================================
if "%~1"=="" (
echo Starting NelSon.sln...
start NelSon.sln
exit /b 0
)
rem =============================================================================
rem Check for the "env-only" parameter
if /i "%~1"=="env-only" (
echo Environment initialized only (QTDIR=%QTDIR%)
exit /b 0
)
rem =============================================================================