summaryrefslogtreecommitdiff
path: root/src/android/gradlew.bat
diff options
context:
space:
mode:
Diffstat (limited to 'src/android/gradlew.bat')
-rw-r--r--src/android/gradlew.bat87
1 files changed, 87 insertions, 0 deletions
diff --git a/src/android/gradlew.bat b/src/android/gradlew.bat
new file mode 100644
index 000000000..be152d108
--- /dev/null
+++ b/src/android/gradlew.bat
@@ -0,0 +1,87 @@
1@rem SPDX-FileCopyrightText: 2023 yuzu Emulator Project
2@rem SPDX-License-Identifier: GPL-3.0-or-later
3
4@if "%DEBUG%" == "" @echo off
5@rem ##########################################################################
6@rem
7@rem Gradle startup script for Windows
8@rem
9@rem ##########################################################################
10
11@rem Set local scope for the variables with windows NT shell
12if "%OS%"=="Windows_NT" setlocal
13
14set DIRNAME=%~dp0
15if "%DIRNAME%" == "" set DIRNAME=.
16set APP_BASE_NAME=%~n0
17set APP_HOME=%DIRNAME%
18
19@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
20set DEFAULT_JVM_OPTS=
21
22@rem Find java.exe
23if defined JAVA_HOME goto findJavaFromJavaHome
24
25set JAVA_EXE=java.exe
26%JAVA_EXE% -version >NUL 2>&1
27if "%ERRORLEVEL%" == "0" goto init
28
29echo.
30echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
31echo.
32echo Please set the JAVA_HOME variable in your environment to match the
33echo location of your Java installation.
34
35goto fail
36
37:findJavaFromJavaHome
38set JAVA_HOME=%JAVA_HOME:"=%
39set JAVA_EXE=%JAVA_HOME%/bin/java.exe
40
41if exist "%JAVA_EXE%" goto init
42
43echo.
44echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
45echo.
46echo Please set the JAVA_HOME variable in your environment to match the
47echo location of your Java installation.
48
49goto fail
50
51:init
52@rem Get command-line arguments, handling Windows variants
53
54if not "%OS%" == "Windows_NT" goto win9xME_args
55
56:win9xME_args
57@rem Slurp the command line arguments.
58set CMD_LINE_ARGS=
59set _SKIP=2
60
61:win9xME_args_slurp
62if "x%~1" == "x" goto execute
63
64set CMD_LINE_ARGS=%*
65
66:execute
67@rem Setup the command line
68
69set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
70
71@rem Execute Gradle
72"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
73
74:end
75@rem End local scope for the variables with windows NT shell
76if "%ERRORLEVEL%"=="0" goto mainEnd
77
78:fail
79rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
80rem the _cmd.exe /c_ return code!
81if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
82exit /b 1
83
84:mainEnd
85if "%OS%"=="Windows_NT" endlocal
86
87:omega