Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

Commit 77e0cce

Browse files
committed
Add matio, glew and glfw3 to the installers
Add script to automatically generate installers
1 parent df9a884 commit 77e0cce

File tree

5 files changed

+68
-0
lines changed

5 files changed

+68
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
build
2+
artifacts

config/common.cmake

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
set(CPACK_PACKAGE_NAME "robotology-additional-dependencies" CACHE STRING "")
2+
set(CPACK_PACKAGE_VENDOR "iCub Facility, Istituto Italiano di Tecnologia (IIT)" CACHE STRING "")
3+
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Robotology Additional Dependencies" CACHE STRING "")
4+
set(CPACK_PACKAGE_VERSION_MAJOR "0" CACHE STRING "")
5+
set(CPACK_PACKAGE_VERSION_MINOR "2" CACHE STRING "")
6+
set(CPACK_PACKAGE_VERSION_PATCH "0" CACHE STRING "")
7+
set(CPACK_GENERATOR "IFW;ZIP" CACHE STRING "")
8+
set(VCPKG_CPACK_TARGET_PORTS "libxml2;matio;winpcap;glew;glfw3" CACHE STRING "")
9+
set(VCPKG_GIT_REPOSITORY "https://github.com/Microsoft/vcpkg.git" CACHE STRING "")
10+
set(VCPKG_GIT_TAG "61e2cac730cc8b16c9373c6c463a335a21a1496a" CACHE STRING "")

config/x64-windows.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
include(${CMAKE_CURRENT_LIST_DIR}/common.cmake)
2+
set(VCPKG_CPACK_TARGET_TRIPLETS "x64-windows" CACHE STRING "")

config/x86-windows.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
include(${CMAKE_CURRENT_LIST_DIR}/common.cmake)
2+
set(VCPKG_CPACK_TARGET_TRIPLETS "x86-windows" CACHE STRING "")

generate-installers.sh

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
#! /bin/bash
2+
# This bash script has been tested under Windows with Git Bash
3+
4+
# Make sure that QtIFW is on the path before running this script
5+
if ! [ -x "$(command -v repogen.exe)" ]; then
6+
echo 'Error: QtIFW is not in the PATH. Plese install it and add it to the path.' >&2
7+
exit 1
8+
fi
9+
10+
# Add default CMake location to PATH, if you install CMake in a non-standard location change this line
11+
export PATH=$PATH:/c/Program\ Files/CMake/bin/
12+
13+
# Create a build directory and an artefacts directory
14+
rm -rf build
15+
mkdir build
16+
17+
# Copy the appropriate version of vcpkg-cpack
18+
cd build
19+
git clone https://github.com/robotology-playground/vcpkg-cpack -b add-internal-vcpkg
20+
cd ..
21+
22+
# Create x86-windows installers
23+
cd build
24+
rm -rf x86-windows
25+
mkdir x86-windows
26+
cd x86-windows
27+
cmake -A Win32 -C ../../config/x86-windows.cmake ../vcpkg-cpack
28+
cmake --build . --config Release --target PACKAGE
29+
cd ../..
30+
31+
# Create x64-windows installers
32+
cd build
33+
rm -rf x64-windows
34+
mkdir x64-windows
35+
cd x64-windows
36+
cmake -A x64 -C ../../config/x64-windows.cmake ../vcpkg-cpack
37+
cmake --build . --config Release --target PACKAGE
38+
cd ../..
39+
40+
# Copy installer in artifacts
41+
echo "Copying installers in artifacts directory"
42+
rm -rf artifacts
43+
mkdir artifacts
44+
RAD_VERSION="0.2.0"
45+
cp ./build/x86-windows/robotology-additional-dependencies-${RAD_VERSION}-x86.exe ./artifacts/robotology-additional-dependencies-${RAD_VERSION}-v141-x86.exe
46+
cp ./build/x86-windows/robotology-additional-dependencies-${RAD_VERSION}-x86.zip ./artifacts/robotology-additional-dependencies-${RAD_VERSION}-v141-x86.zip
47+
cp ./build/x64-windows/robotology-additional-dependencies-${RAD_VERSION}-x86_amd64.exe ./artifacts/robotology-additional-dependencies-${RAD_VERSION}-v141-x86_amd64.exe
48+
cp ./build/x64-windows/robotology-additional-dependencies-${RAD_VERSION}-x86_amd64.zip ./artifacts/robotology-additional-dependencies-${RAD_VERSION}-v141-x86_amd64.zip
49+
50+
echo "robotology-additional-installers correctly generated and copies in artefacts"
51+
exit 0
52+

0 commit comments

Comments
 (0)