mirror of
https://github.com/NationalSecurityAgency/ghidra
synced 2024-08-28 13:30:21 +00:00
58 lines
2.3 KiB
Groovy
58 lines
2.3 KiB
Groovy
/* ###
|
|
* IP: GHIDRA
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* 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.
|
|
*/
|
|
defaultTasks ':usage'
|
|
|
|
task usage {
|
|
doLast {
|
|
println """
|
|
|
|
*******************************************************************************************
|
|
|
|
GHIDRA GRADLE
|
|
|
|
Note: Most tasks can can be used to affect all modules or can
|
|
be run against a specific module. For example:
|
|
|
|
from root project, "gradle buildHelp" builds help for all modules.
|
|
from root project, "gradle :Base:buildHelp" builds help for the "Base" module
|
|
from the Base project dir, "gradle buildHelp" builds help for the "Base" module
|
|
|
|
Primary gradle tasks for Ghidra
|
|
|
|
usage Displays this text [root/usage.gradle]
|
|
prepDev Prepares development environment [root/prepDev.gradle]
|
|
eclipse Create eclipse projects [root/eclipse.gradle]
|
|
buildHelp Builds help [root/buildHelp.gradle]
|
|
buildGhidra Builds Ghidra for the current platform [root/distribution.gradle]
|
|
buildGhidra -PallPlatforms Builds Ghidra for all platforms (assumes natives [root/distribution.gradle]
|
|
for other platforms are already built into
|
|
appropriate os dirs)
|
|
|
|
Task rules:
|
|
buildNatives[_platform] Builds the native executables and libraries for the [GPL/nativeBuildProperties.gradle]
|
|
current or specified platform (win_x86_64,
|
|
linux_arm_64, mac_x86_64, etc.)
|
|
|
|
"""
|
|
}
|
|
}
|
|
|
|
|
|
tasks['tasks'].doLast {
|
|
// usage.execute()
|
|
|
|
}
|