Skip to content
Snippets Groups Projects
Commit 59be4a6f authored by Ammar Nejati's avatar Ammar Nejati
Browse files

Move deployment scripts to their dedicated folders (Minor change)

Deployment shell scripts for Linux and Mac are separated in different folders
under `devtools/deploy`.

The extension `zsh` is used consistently for all zsh scripts.

All build-phase scripts are stored in the build `var` folder.
parent 7b4da2da
No related branches found
No related tags found
1 merge request!804Add proper RPATHs on Linux + Minor changes
Pipeline #63186 passed
......@@ -19,7 +19,7 @@ native_Debian_clang:
- make -j6
- xvfb-run -a ctest -j6 --output-on-failure
- make package_source
- bash mk_pypack_linux.sh
- bash var/mk_pypack_linux.sh
artifacts:
paths:
- build/*gz
......@@ -45,7 +45,7 @@ mac10_15:
- make -j3
- ctest -j3 --output-on-failure
- cpack .
- zsh mk_pypack_macos.sh
- zsh var/mk_pypack_macos.zsh
artifacts:
paths:
- build/*dmg
......@@ -74,7 +74,7 @@ mac12_2:
- make -j12
- ctest -j3 --output-on-failure
- cpack .
- zsh mk_pypack_macos.sh
- zsh var/mk_pypack_macos.zsh
artifacts:
paths:
- build/*dmg
......
......@@ -141,9 +141,9 @@ if(BA_APPLE_BUNDLE)
configure_file(
${CMAKE_SOURCE_DIR}/cmake/configurables/FixAppleBundle.cmake.in
${BUILD_VAR_DIR}/FixAppleBundle.cmake @ONLY)
configure_file("${CMAKE_SOURCE_DIR}/devtools/deploy/shutils.zsh"
configure_file("${CMAKE_SOURCE_DIR}/devtools/deploy/mac/shutils.zsh"
"${BUILD_VAR_DIR}/shutils.zsh" @ONLY)
configure_file("${CMAKE_SOURCE_DIR}/devtools/deploy/adjust_mac_bundle.zsh"
configure_file("${CMAKE_SOURCE_DIR}/devtools/deploy/mac/adjust_mac_bundle.zsh"
"${BUILD_VAR_DIR}/adjust_mac_bundle.zsh" @ONLY)
set(CPACK_PRE_BUILD_SCRIPTS "${BUILD_VAR_DIR}/FixAppleBundle.cmake")
......
......@@ -37,21 +37,21 @@ function(make_python_wheel)
# On MacOS, building the Python packages needs further effort
# which is performed in a dedicated shell script which
# should be executed after build process is done (like CPack).
configure_file("${CMAKE_SOURCE_DIR}/devtools/deploy/mk_pypack_macos.sh"
${CMAKE_BINARY_DIR}/mk_pypack_macos.sh @ONLY)
configure_file("${CMAKE_SOURCE_DIR}/devtools/deploy/mac/mk_pypack_macos.zsh"
${BUILD_VAR_DIR}/mk_pypack_macos.zsh @ONLY)
add_custom_target(BAPyWheel ALL
COMMENT "${header} Script to build the Python wheel: "
"'${${CMAKE_BINARY_DIR}/mk_pypack_macos.sh}'"
"'${${BUILD_VAR_DIR}/mk_pypack_macos.zsh}'"
)
elseif(LINUX)
# On Linux, building the Python packages needs further effort
# which is performed in a dedicated shell script which
# should be executed after build process is done (like CPack).
configure_file("${CMAKE_SOURCE_DIR}/devtools/deploy/mk_pypack_linux.sh"
${CMAKE_BINARY_DIR}/mk_pypack_linux.sh @ONLY)
configure_file("${CMAKE_SOURCE_DIR}/devtools/deploy/linux/mk_pypack_linux.sh"
${BUILD_VAR_DIR}/mk_pypack_linux.sh @ONLY)
add_custom_target(BAPyWheel ALL
COMMENT "${header} Script to build the Python wheel: "
"'${${CMAKE_BINARY_DIR}/mk_pypack_linux.sh}'"
"'${${BUILD_VAR_DIR}/mk_pypack_linux.sh}'"
)
else()
# MS-Windows
......
......@@ -27,7 +27,7 @@
# |
# +--lib {main libraries, like `_libBornAgainBase.so`}
# |
# +-- bin {not used}
# +--bin {not used}
# |
# +--Library {extra libraries, like `libformfactor`}
# |
......
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment