Use cmake option -DEXIV2_TEAM_PACKAGING

v0.27.3
Robin Mills 7 years ago committed by Luis Díaz Más
parent d20b88674f
commit 4bb18a32ff

@ -3,7 +3,7 @@ set(CPACK_PACKAGE_CONTACT "Luis Díaz Más <piponazo@gmail.com>")
set(CPACK_PACKAGE_VERSION ${PROJECT_VERSION}) set(CPACK_PACKAGE_VERSION ${PROJECT_VERSION})
set(CPACK_SOURCE_GENERATOR TGZ) set(CPACK_SOURCE_GENERATOR TGZ)
set(CPACK_SOURCE_IGNORE_FILES "build.*;\.git/;\.DS_Store;") set(CPACK_SOURCE_IGNORE_FILES "\.git/;\.DS_Store;")
if ( MINGW OR MSYS ) if ( MINGW OR MSYS )
if ( CMAKE_SIZEOF_VOID_P EQUAL 8 ) if ( CMAKE_SIZEOF_VOID_P EQUAL 8 )

@ -71,7 +71,7 @@ git pull --rebase
git status git status
mkdir -p build mkdir -p build
cd build cd build
cmake .. -G "Unix Makefiles" cmake .. -G "Unix Makefiles" -DEXIV2_TEAM_PACKAGING=On
make make
make package make package
make tests make tests
@ -109,10 +109,11 @@ git status
if NOT EXIST build mkdir build if NOT EXIST build mkdir build
cd build cd build
conan install .. --profile ${profile} --build missing conan install .. --profile ${profile} --build missing
cmake .. -G ${generator} -DCMAKE_BUILD_TYPE=${config} -DCMAKE_INSTALL_PREFIX=..\\dist\\${profile} cmake .. -G ${generator} -DCMAKE_BUILD_TYPE=${config} -DEXIV2_TEAM_PACKAGING=On -DCMAKE_INSTALL_PREFIX=..\\dist\\${profile}
cmake --build . --config ${config} --target install cmake --build . --config ${config} --target install
cmake --build . --config ${config} --target package cmake --build . --config ${config} --target package
ls -alt *.zip ls -alt *.zip
rmdir/s/q ..\\dist
EOF EOF
writeTag $1 msys64 ${cd}buildserver\\\\build\\\\tag writeTag $1 msys64 ${cd}buildserver\\\\build\\\\tag
fi fi
@ -208,11 +209,10 @@ if [ $publish == 1 ]; then
publishBundle $server-w7 /c/cygwin64/home/$user/gnu/github/exiv2/buildserver/build '.tar.gz' publishBundle $server-w7 /c/cygwin64/home/$user/gnu/github/exiv2/buildserver/build '.tar.gz'
publishBundle $server-w7 /c/users/$user/gnu/github/exiv2/buildserver/build '.zip' publishBundle $server-w7 /c/users/$user/gnu/github/exiv2/buildserver/build '.zip'
echo "+++++++++++++++++++++++++++++++++++++++++" echo "+++++++++++++++++++++++++++++++++++++++++"
echo "+++ build Source in exiv2/exiv2 +++" echo "+++ build Source in exiv2/buildserver +++"
pushd ~/gnu/github/exiv2/exiv2/build >/dev/null pushd ~/gnu/github/exiv2/buildserver/build >/dev/null
make package_source make package_source
ls -alt *Source.tar.gz|sed -E -e 's/\+ / /g' ls -alt *Source.tar.gz|sed -E -e 's/\+ / /g'
cp *Source.tar.gz ~/gnu/github/exiv2/buildserver/build
popd >/dev/null popd >/dev/null
echo "+++++++++++++++++++++++++++++++++++++++++" echo "+++++++++++++++++++++++++++++++++++++++++"
publishBundle $server /Users/$user/gnu/github/exiv2/buildserver/build '.tar.gz' publishBundle $server /Users/$user/gnu/github/exiv2/buildserver/build '.tar.gz'
@ -253,7 +253,7 @@ if [ $mingw32 == 1 ]; then
fi fi
if [ $msvc == 1 ]; then if [ $msvc == 1 ]; then
command='bash' command='cmd'
msvcBuild ${server}-w7 msvcBuild ${server}-w7
fi fi

Loading…
Cancel
Save