2018-12-02 08:21:42 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
DEST=${PWD}/../stage2/01-sys-tweaks/extfiles
|
|
|
|
|
|
|
|
mkdir -p ${DEST}
|
|
|
|
|
2018-12-08 08:41:12 +00:00
|
|
|
#
|
|
|
|
# examples
|
|
|
|
#
|
|
|
|
mkdir -p examples/java-multiCameraServer/src/main/java
|
|
|
|
cp allwpilib/cameraserver/multiCameraServer/src/main/java/Main.java examples/java-multiCameraServer/src/main/java/
|
|
|
|
cp allwpilib/cameraserver/multiCameraServer/src/main/native/cpp/main.cpp examples/cpp-multiCameraServer/
|
|
|
|
|
|
|
|
sh -c 'cd examples && zip -r - java-multiCameraServer' > ${DEST}/java-multiCameraServer.zip
|
|
|
|
sh -c 'cd examples && zip -r - cpp-multiCameraServer' > ${DEST}/cpp-multiCameraServer.zip
|
|
|
|
sh -c 'cd examples && zip -r - python-multiCameraServer' > ${DEST}/python-multiCameraServer.zip
|
|
|
|
|
2018-12-02 08:21:42 +00:00
|
|
|
#
|
|
|
|
# tools
|
|
|
|
#
|
|
|
|
|
|
|
|
cp tools/setuidgids ${DEST}/
|
|
|
|
cp tools/_cscore.so ${DEST}/_cscore.cpython-35m-arm-linux-gnueabihf.so
|
2018-12-08 08:41:12 +00:00
|
|
|
cp tools/rpiConfigServer ${DEST}/
|
2018-12-02 08:21:42 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# openjdk
|
|
|
|
#
|
|
|
|
|
|
|
|
cp 01-download/jdk_11.0.1-strip.tar.gz ${DEST}/
|
|
|
|
|
|
|
|
#
|
|
|
|
# thirdparty-opencv
|
|
|
|
#
|
|
|
|
|
|
|
|
sh -c 'cd 03-build/opencv-build/install/lib && tar czf - libopencv*' > ${DEST}/libopencv.tar.gz
|
|
|
|
|
|
|
|
sh -c 'cd 03-build/opencv-build/install/include && tar czf - .' > ${DEST}/opencv-include.tar.gz
|
|
|
|
|
|
|
|
cp 03-build/opencv-build/install/share/OpenCV/java/opencv-*.jar ${DEST}/
|
|
|
|
|
|
|
|
# the opencv build names the python .so with the build platform name instead
|
|
|
|
# of the target platform, so rename it
|
|
|
|
cp 03-build/opencv-build/install/python/cv2/python-*/cv2.*.so ${DEST}/cv2.cpython-35m-arm-linux-gnueabihf.so
|
|
|
|
|
|
|
|
#
|
|
|
|
# robotpy-cscore
|
|
|
|
#
|
|
|
|
|
|
|
|
sh -c 'cd robotpy-cscore && tar czf - cscore' > ${DEST}/robotpy-cscore.tar.gz
|
|
|
|
|
|
|
|
#
|
|
|
|
# pynetworktables
|
|
|
|
#
|
|
|
|
|
|
|
|
sh -c 'cd pynetworktables && tar czf - networktables ntcore' > ${DEST}/pynetworktables.tar.gz
|
|
|
|
|
|
|
|
#
|
|
|
|
# allwpilib
|
|
|
|
#
|
|
|
|
|
|
|
|
cp \
|
|
|
|
allwpilib/wpiutil/build/libs/wpiutil/shared/release/libwpiutil.so* \
|
|
|
|
allwpilib/wpiutil/build/libs/wpiutil/shared/debug/libwpiutild.so* \
|
|
|
|
allwpilib/wpiutil/build/libs/wpiutil.jar \
|
|
|
|
allwpilib/cscore/build/libs/cscore/shared/release/libcscore.so* \
|
|
|
|
allwpilib/cscore/build/libs/cscore/shared/debug/libcscored.so* \
|
|
|
|
allwpilib/cscore/build/libs/cscoreJNIShared/shared/release/libcscorejni.so* \
|
|
|
|
allwpilib/cscore/build/libs/cscore.jar \
|
|
|
|
allwpilib/ntcore/build/libs/ntcore/shared/release/libntcore.so* \
|
|
|
|
allwpilib/ntcore/build/libs/ntcore/shared/debug/libntcored.so* \
|
|
|
|
allwpilib/ntcore/build/libs/ntcoreJNIShared/shared/release/libntcorejni.so* \
|
|
|
|
allwpilib/ntcore/build/libs/ntcore.jar \
|
|
|
|
allwpilib/cameraserver/build/libs/cameraserver/shared/release/libcameraserver.so* \
|
|
|
|
allwpilib/cameraserver/build/libs/cameraserver/shared/debug/libcameraserverd.so* \
|
|
|
|
allwpilib/cameraserver/build/libs/cameraserver.jar \
|
|
|
|
${DEST}/
|
|
|
|
|
|
|
|
sh -c 'cd allwpilib/wpiutil/src/main/native/include && tar czf - uv.h uv wpi' > ${DEST}/wpiutil-include.tar.gz
|
|
|
|
sh -c 'cd allwpilib/cscore/src/main/native/include && tar czf - .' > ${DEST}/cscore-include.tar.gz
|
|
|
|
sh -c 'cd allwpilib/ntcore/src/main/native/include && tar czf - .' > ${DEST}/ntcore-include.tar.gz
|
|
|
|
sh -c 'cd allwpilib/cameraserver/src/main/native/include && tar czf - cameraserver vision' > ${DEST}/cameraserver-include.tar.gz
|
|
|
|
|
|
|
|
cp \
|
2018-12-08 08:41:12 +00:00
|
|
|
allwpilib/cameraserver/multiCameraServer/build/exe/multiCameraServerCpp/multiCameraServerCpp \
|
|
|
|
${DEST}/multiCameraServer
|
|
|
|
|
|
|
|
cp \
|
2018-12-02 08:21:42 +00:00
|
|
|
allwpilib/wpiutil/build/exe/netconsoleTee/netconsoleTee \
|
|
|
|
${DEST}/
|