2015-06-30 04:35:31 +00:00
|
|
|
function generate()
|
|
|
|
{
|
|
|
|
cmake -G "Unix Makefiles" -DASSIMP_ENABLE_BOOST_WORKAROUND=YES -DASSIMP_NO_EXPORT=$TRAVIS_NO_EXPORT -DBUILD_SHARED_LIBS=$SHARED_BUILD
|
|
|
|
}
|
|
|
|
|
2015-12-20 19:23:16 +00:00
|
|
|
if [ $ANDROID ]; then
|
2015-06-30 04:35:31 +00:00
|
|
|
ant -v -Dmy.dir=${TRAVIS_BUILD_DIR} -f ${TRAVIS_BUILD_DIR}/port/jassimp/build.xml ndk-jni
|
|
|
|
else
|
|
|
|
generate \
|
2016-11-10 09:33:07 +00:00
|
|
|
&& make -j4 \
|
2015-06-30 04:35:31 +00:00
|
|
|
&& sudo make install \
|
|
|
|
&& sudo ldconfig \
|
|
|
|
&& (cd test/unit; ../../bin/unit) \
|
2016-06-14 18:27:16 +00:00
|
|
|
#&& (cd test/regression; chmod 755 run.py; ./run.py ../../bin/assimp; \
|
|
|
|
# chmod 755 result_checker.py; ./result_checker.py)
|
2015-06-30 04:35:31 +00:00
|
|
|
fi
|