diff options
author | Jose Dapena Paz <jose.dapena@lge.com> | 2018-05-04 15:39:19 +0200 |
---|---|---|
committer | Jose Dapena Paz <jose.dapena@lge.com> | 2018-05-04 15:39:19 +0200 |
commit | c2cf2b7ce09e2283c5e75b39072d68d75477a1a2 (patch) | |
tree | b35d59e2167a76b17c11ca8eb7006a10d2dfdfb7 /CMakeLists.txt | |
parent | 7a6d373adbca65e4e740d00560a0b5f196b9e02c (diff) |
Add local runxdg script that invokes system script.
Just adding directly the system path for runxdg does not work as
wgt installer was trying to find it in the package filesystem. So
add a wrapper script that forwards to the main runxdg script.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index e608543..9bc11c5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -26,3 +26,11 @@ add_custom_command(OUTPUT ${PROJECT_PKG_BUILD_DIR}/runxdg.toml add_custom_target(runxdg_toml DEPENDS ${PROJECT_PKG_BUILD_DIR}/runxdg.toml) add_dependencies(widget runxdg_toml) + +add_custom_command(OUTPUT ${PACKAGE_BINDIR}/runxdg + COMMAND cp ${CMAKE_CURRENT_SOURCE_DIR}/runxdg.sh ${PACKAGE_BINDIR}/runxdg + COMMAND chmod +x ${PACKAGE_BINDIR}/runxdg +) + +add_custom_target(runxdg_script DEPENDS ${PACKAGE_BINDIR}/runxdg) +add_dependencies(widget runxdg_script) |