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() {
|
task cleanup(type: Delete) {
|
||||||
delete 'build'
|
delete fileTree(dir: 'build', exclude: 'lib/')
|
||||||
}
|
|
||||||
|
|
||||||
task prep(type: Exec) {
|
|
||||||
workingDir './'
|
|
||||||
commandLine 'mkdir', 'build'
|
|
||||||
}
|
}
|
||||||
|
|
||||||
task cmake(type: Exec) {
|
task cmake(type: Exec) {
|
||||||
@ -18,7 +13,7 @@ task make(type: Exec) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
task fullBuild(type: GradleBuild) {
|
task fullBuild(type: GradleBuild) {
|
||||||
tasks = ['cleanup', 'prep', 'cmake', 'make']
|
tasks = ['cleanup', 'cmake', 'make']
|
||||||
}
|
}
|
||||||
|
|
||||||
build.dependsOn tasks.fullBuild
|
build.dependsOn tasks.fullBuild
|
@ -12,8 +12,15 @@ fi
|
|||||||
cd $( dirname "${BASH_SOURCE[0]}" )
|
cd $( dirname "${BASH_SOURCE[0]}" )
|
||||||
|
|
||||||
# Ensure clean build environment
|
# Ensure clean build environment
|
||||||
rm -rf BUILD
|
shopt -s extglob
|
||||||
mkdir BUILD
|
# 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
|
# Navigate to build directory
|
||||||
cd BUILD
|
cd BUILD
|
||||||
|
@ -12,8 +12,15 @@ fi
|
|||||||
cd $( dirname "${BASH_SOURCE[0]}" )
|
cd $( dirname "${BASH_SOURCE[0]}" )
|
||||||
|
|
||||||
# Ensure clean build environment
|
# Ensure clean build environment
|
||||||
rm -rf BUILD
|
shopt -s extglob
|
||||||
mkdir BUILD
|
# 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
|
# Navigate to build directory
|
||||||
cd BUILD
|
cd BUILD
|
||||||
|
Loading…
Reference in New Issue
Block a user