mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-28 17:11:11 -09:00
Merge remote-tracking branch
'origin/GP-4486_ryanmkurtz_gradle-wrapper--SQUASHED' (Closes #455)
This commit is contained in:
BIN
Ghidra/RuntimeScripts/Common/support/gradle/gradle-wrapper.jar
Normal file
BIN
Ghidra/RuntimeScripts/Common/support/gradle/gradle-wrapper.jar
Normal file
Binary file not shown.
@@ -0,0 +1,7 @@
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
|
||||
networkTimeout=10000
|
||||
validateDistributionUrl=true
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
12
Ghidra/RuntimeScripts/Common/support/gradle/settings.gradle
Normal file
12
Ghidra/RuntimeScripts/Common/support/gradle/settings.gradle
Normal file
@@ -0,0 +1,12 @@
|
||||
/* ###
|
||||
* IP: Public Domain
|
||||
*/
|
||||
// Recurse root project subdirectories and include all discovered projects
|
||||
// (directories containing a build.gradle file)
|
||||
fileTree(rootProject.projectDir.parentFile.parentFile) {
|
||||
exclude 'build.gradle' // exclude root project
|
||||
include '**/build.gradle'
|
||||
}.each {
|
||||
include it.parentFile.name;
|
||||
project(":$it.parentFile.name").projectDir = it.parentFile;
|
||||
}
|
||||
@@ -1,41 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
#----------------------------------------
|
||||
# Build Native Binaries
|
||||
#
|
||||
# args: forwarded to gradle (-i, -s, etc)
|
||||
#----------------------------------------
|
||||
|
||||
# Make sure gradle is on the path
|
||||
if ! [ -x "$(command -v gradle)" ] ; then
|
||||
echo "Gradle not found on the PATH."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Resolve symbolic link if present and get the directory this script lives in.
|
||||
# NOTE: "readlink -f" is best but works on Linux only, "readlink" will only work if your PWD
|
||||
# contains the link you are calling (which is the best we can do on macOS), and the "echo" is the
|
||||
# fallback, which doesn't attempt to do anything with links.
|
||||
SCRIPT_FILE="$(readlink -f "$0" 2>/dev/null || readlink "$0" 2>/dev/null || echo "$0")"
|
||||
SCRIPT_DIR="${SCRIPT_FILE%/*}"
|
||||
|
||||
buildGhidraNatives () {
|
||||
echo "Building natives in Ghidra..."
|
||||
pushd ${SCRIPT_DIR}/../Ghidra &>/dev/null
|
||||
gradle "$@" buildNatives
|
||||
result=$?
|
||||
popd &>/dev/null
|
||||
return $result
|
||||
}
|
||||
|
||||
buildGplNatives () {
|
||||
echo "Building natives in GPL..."
|
||||
pushd ${SCRIPT_DIR}/../GPL &>/dev/null
|
||||
gradle "$@" buildNatives
|
||||
result=$?
|
||||
popd &>/dev/null
|
||||
return $result
|
||||
}
|
||||
|
||||
buildGhidraNatives "$@" && buildGplNatives "$@"
|
||||
|
||||
@@ -1,39 +0,0 @@
|
||||
:: Build Native Binaries
|
||||
::
|
||||
:: args: forwarded to gradle (-i, -s, etc)
|
||||
|
||||
@echo off
|
||||
|
||||
:: See if we were doubled clicked or run from a command prompt
|
||||
set DOUBLE_CLICKED=n
|
||||
for /f "tokens=2" %%# in ("%cmdcmdline%") do if /i "%%#" equ "/c" set DOUBLE_CLICKED=y
|
||||
|
||||
:: Make sure gradle is on the path
|
||||
call gradle -h >nul 2>nul
|
||||
if not %ERRORLEVEL% == 0 (
|
||||
echo Gradle not found on the PATH
|
||||
goto exit
|
||||
)
|
||||
|
||||
echo Building natives in Ghidra...
|
||||
pushd "%~dp0..\Ghidra"
|
||||
call gradle %* buildNatives
|
||||
popd
|
||||
if not %ERRORLEVEL% == 0 (
|
||||
goto exit
|
||||
)
|
||||
|
||||
echo Building natives in GPL...
|
||||
pushd "%~dp0..\GPL"
|
||||
call gradle %* buildNatives
|
||||
popd
|
||||
if not %ERRORLEVEL% == 0 (
|
||||
goto exit
|
||||
)
|
||||
|
||||
:exit
|
||||
if "%DOUBLE_CLICKED%"=="y" (
|
||||
pause
|
||||
)
|
||||
|
||||
exit /B %ERRORLEVEL%
|
||||
@@ -1,5 +1,7 @@
|
||||
##VERSION: 2.0
|
||||
##MODULE IP: Apache License 2.0
|
||||
##MODULE IP: Copyright Distribution Permitted
|
||||
##MODULE IP: Public Domain
|
||||
Common/server/jaas.conf||GHIDRA||||END|
|
||||
Common/server/server.conf||GHIDRA||||END|
|
||||
Common/server/svrREADME.html||GHIDRA||||END|
|
||||
@@ -7,6 +9,8 @@ Common/support/GhidraGo/ghidraGoREADME.html||GHIDRA||||END|
|
||||
Common/support/analyzeHeadlessREADME.html||GHIDRA||||END|
|
||||
Common/support/buildGhidraJarREADME.txt||GHIDRA||||END|
|
||||
Common/support/debug.log4j.xml||GHIDRA||||END|
|
||||
Common/support/gradle/gradle-wrapper.jar||Apache License 2.0||||END|
|
||||
Common/support/gradle/gradle-wrapper.properties||Apache License 2.0||||END|
|
||||
Common/support/launch.properties||GHIDRA||||END|
|
||||
Linux/ghidraRun||GHIDRA||||END|
|
||||
Linux/server/ghidraSvr||GHIDRA||||END|
|
||||
|
||||
Reference in New Issue
Block a user