Skip to content

Commit

Permalink
Update main build to build object detector example.
Browse files Browse the repository at this point in the history
  • Loading branch information
dokeeffe committed Jul 14, 2020
1 parent 21ecc6c commit 49fbe59
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions frontier-bld.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,34 @@ fi

pushd seep-system/examples/acita_demo_2015 ; ant clean ; popd
pushd seep-system/examples/stateless-simple-query ; ant clean ; popd
pushd seep-system/examples/object_detector; ant clean ; popd
#mvn -Djavacpp.platform=linux-armhf clean compile assembly:single

mkdir -p seep-system/examples/acita_demo_2015/lib
mkdir -p seep-system/examples/stateless-simple-query/lib
rm -f seep-system/examples/acita_demo_2015/lib/*.jar
rm -rf seep-system/examples/object_detector/src/main/resources/images/detections/*.jpg # TODO: move this.

if [[ "$1" = "core" ]]
then
cp seep-system/pom.xml.core seep-system/pom.xml
cp seep-system/examples/object_detector/build.xml.core seep-system/examples/object_detector/build.xml
else
cp seep-system/pom.xml.pi seep-system/pom.xml
cp seep-system/examples/acita_demo_2015/lib.arm/*.jar seep-system/examples/acita_demo_2015/lib
cp seep-system/examples/object_detector/build.xml.pi seep-system/examples/object_detector/build.xml.pi
fi

mvn install:install-file -DgroupId=soot -DartifactId=soot-framework -Dversion=2.5.0 -Dpackaging=jar -Dfile=libs/soot/soot-framework/2.5.0/soot-2.5.0.jar
mvn clean compile assembly:single

cp seep-system/target/seep-system-0.0.1-SNAPSHOT.jar seep-system/examples/acita_demo_2015/lib
cp seep-system/target/seep-system-0.0.1-SNAPSHOT.jar seep-system/examples/stateless-simple-query/lib
cp seep-system/target/seep-system-0.0.1-SNAPSHOT.jar seep-system/examples/object_detector/lib

mkdir -p seep-system/examples/acita_demo_2015/tmp
mkdir -p seep-system/examples/object_detector/tmp
rm seep-system/examples/object_detector/tmp/*

if [[ "$1" = "core" ]]
then
Expand All @@ -38,4 +45,5 @@ else
fi

pushd seep-system/examples/stateless-simple-query ; ant ; popd
pushd seep-system/examples/object_detector ; ant dist ; ant ; popd
#./gradlew build -x test

0 comments on commit 49fbe59

Please sign in to comment.