mirror of
https://github.com/nsacyber/HIRS.git
synced 2024-12-20 05:28:22 +00:00
This commit is contained in:
parent
f769da4b15
commit
f8b9dfe582
@ -1,10 +1,5 @@
|
||||
task cleanup() {
|
||||
delete 'build'
|
||||
}
|
||||
|
||||
task prep(type: Exec) {
|
||||
workingDir './'
|
||||
commandLine 'mkdir', 'build'
|
||||
task cleanup(type: Delete) {
|
||||
delete fileTree(dir: 'build', exclude: 'lib/')
|
||||
}
|
||||
|
||||
task cmake(type: Exec) {
|
||||
@ -18,7 +13,7 @@ task make(type: Exec) {
|
||||
}
|
||||
|
||||
task fullBuild(type: GradleBuild) {
|
||||
tasks = ['cleanup', 'prep', 'cmake', 'make']
|
||||
tasks = ['cleanup', 'cmake', 'make']
|
||||
}
|
||||
|
||||
build.dependsOn tasks.fullBuild
|
@ -12,8 +12,15 @@ fi
|
||||
cd $( dirname "${BASH_SOURCE[0]}" )
|
||||
|
||||
# Ensure clean build environment
|
||||
rm -rf BUILD
|
||||
mkdir BUILD
|
||||
shopt -s extglob
|
||||
# Delete everything but downloaded dependencies
|
||||
rm -rf BUILD/!(lib)
|
||||
shopt -u extglob
|
||||
|
||||
# Make BUILD directory if it doesn't already exist
|
||||
if [ ! -d "BUILD" ]; then
|
||||
mkdir BUILD
|
||||
fi
|
||||
|
||||
# Navigate to build directory
|
||||
cd BUILD
|
||||
|
@ -12,8 +12,15 @@ fi
|
||||
cd $( dirname "${BASH_SOURCE[0]}" )
|
||||
|
||||
# Ensure clean build environment
|
||||
rm -rf BUILD
|
||||
mkdir BUILD
|
||||
shopt -s extglob
|
||||
# Delete everything but downloaded dependencies
|
||||
rm -rf BUILD/!(lib)
|
||||
shopt -u extglob
|
||||
|
||||
# Make BUILD directory if it doesn't already exist
|
||||
if [ ! -d "BUILD" ]; then
|
||||
mkdir BUILD
|
||||
fi
|
||||
|
||||
# Navigate to build directory
|
||||
cd BUILD
|
||||
|
Loading…
Reference in New Issue
Block a user