[Kde-hardware-devel] Review Request 117936: Port daemon from KDELibs4Support
Àlex Fiestas
afiestas at kde.org
Sun May 4 22:39:48 UTC 2014
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/117936/#review57277
-----------------------------------------------------------
Ship it!
You probably want to create a config_h.cmake file where you add the define plus the cmake variable, and then use configure_file to replace that variable with the content.
Something like config_h.cmake:
#define HELPER_INSTALL_PATH ${CMAKE_INSTALL_PREFIX}....
and then in the CMakeLists.txt
configure_file(config.h.cmake config.h)
The syntax's is not exact but it will give you an idea of what to do.
The rest of the patch is good to go.
- Àlex Fiestas
On May 2, 2014, 1:45 p.m., David Rosca wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/117936/
> -----------------------------------------------------------
>
> (Updated May 2, 2014, 1:45 p.m.)
>
>
> Review request for Bluedevil and Àlex Fiestas.
>
>
> Repository: bluedevil
>
>
> Description
> -------
>
> This patch removes all usage of KDELibs4Support in daemon (src/daemon).
> All string literals are also wrapped in QLatin1String/QStringLiteral.
>
> There is still one thing that needs to be done - KStandardDirs::findExe is used in BluezAgent to find executables in LIBEXEC dir.
> From the porting guide: QStandardPaths::findExecutable should be used in this case with hardcoded path = CMAKE_INSTALL_PREFIX "/" LIBEXEC_INSTALL_DIR.
>
> I am not sure what is the best way to do this.
> Add a new compiler -D define flag (probably not), create the define in a generated .h file (which one?) or is there any other way?
>
>
> Diffs
> -----
>
> CMakeLists.txt ec07744
> src/daemon/helpers/authorize/CMakeLists.txt e50985a
> src/daemon/helpers/authorize/authorize.cpp 25b317a
> src/daemon/helpers/authorize/main.cpp 930ed58
> src/daemon/helpers/confirmmodechange/CMakeLists.txt ea3b334
> src/daemon/helpers/confirmmodechange/confirmmodechange.cpp 5f5afed
> src/daemon/helpers/confirmmodechange/main.cpp c598aab
> src/daemon/helpers/requestconfirmation/CMakeLists.txt c12da2c
> src/daemon/helpers/requestconfirmation/main.cpp ffd88ac
> src/daemon/helpers/requestconfirmation/requestconfirmation.cpp c9b4cbb
> src/daemon/helpers/requestpin/CMakeLists.txt 742ba01
> src/daemon/helpers/requestpin/dialogWidget.ui 1714e78
> src/daemon/helpers/requestpin/main.cpp 49ac215
> src/daemon/helpers/requestpin/requestpin.h 2a7ff78
> src/daemon/helpers/requestpin/requestpin.cpp 69549c7
> src/daemon/kded/BlueDevilDaemon.h fffc21d
> src/daemon/kded/BlueDevilDaemon.cpp 7a20b5a
> src/daemon/kded/CMakeLists.txt 9555d44
> src/daemon/kded/bluezagent.h 6c32688
> src/daemon/kded/bluezagent.cpp d19375d
> src/daemon/kded/filereceiver/filereceiver.h 9ac6b6f
> src/daemon/kded/filereceiver/filereceiver.cpp 67db6aa
> src/daemon/kded/filereceiver/obexagent.h 0edff42
> src/daemon/kded/filereceiver/obexagent.cpp 91ade7d
> src/daemon/kded/filereceiver/receivefilejob.h 655be8d
> src/daemon/kded/filereceiver/receivefilejob.cpp 0324aa5
>
> Diff: https://git.reviewboard.kde.org/r/117936/diff/
>
>
> Testing
> -------
>
>
> Thanks,
>
> David Rosca
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-hardware-devel/attachments/20140504/932c788b/attachment.html>
More information about the Kde-hardware-devel
mailing list