ghidra/gradle/root/prepDev.gradle
2025-01-13 13:52:50 -05:00

40 lines
1.7 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.
*/
/******************************************************************************************
* PrepDev - task to prepare a development environment for Ghidra. It needs to be run
* whenever the Ghidra git repos are first cloned or after a 'clean'. It also
* needs to be run after a change to the sleigh ANTLR grammar files.
*******************************************************************************************/
task prepDev {
group = rootProject.GHIDRA_GROUP
description= " Prepares a fresh clone of Ghidra for developing in eclipse. [gradle/root/prepDev.gradle]\n"
// the GhidraLauncher depends on this file to build the classpath in dev mode
dependsOn { generateLibraryDependencyMapping }
}
/******************************************************************************************
* TASK generateLibraryDependencyMapping
*
* Summary: Creates a file that lists the libraries used by each module.
******************************************************************************************/
task generateLibraryDependencyMapping {
doFirst{
generateLibraryDependencyMapping()
}
}