Add common tde_setup_dbus macro #22

Слито
SlavekB слито 1 коммит(ов) из feat/add-test-dbus в master 5 лет назад
SlavekB прокомментировал(а) 5 лет назад
Владелец

The macro is primarily used for modules that create some D-Bus services.

It can be called without a parameter – only dbus-1 will be tested and the paths to the dbus files will be searched. Alternatively, the name of the TQt dbus module – usually dbus-1-tqt – can be entered as a parameter. If the parameter is entered, the TQt dbus module will also be tested.

Note: Macro in this form can also be used for the R14.0.x branch.

The macro is primarily used for modules that create some D-Bus services. It can be called without a parameter – only dbus-1 will be tested and the paths to the dbus files will be searched. Alternatively, the name of the TQt dbus module – usually dbus-1-tqt – can be entered as a parameter. If the parameter is entered, the TQt dbus module will also be tested. Note: Macro in this form can also be used for the R14.0.x branch.
SlavekB добавлен PR/rfc с меткой 5 лет назад
MicheleC одобрил(а) эти изменения 5 лет назад
MicheleC оставил комментарий
Владелец

Great work, just need to fix the two points I mentioned

Great work, just need to fix the two points I mentioned
modules/TDEMacros.cmake Устаревшее
if( NOT "${ARGV}" STREQUAL "" AND NOT DBUS_TQT_FOUND )
pkg_search_module( DBUS_TQT ${ARGV} )
if( NOT DBUS_FOUND )
MicheleC прокомментировал(а) 5 лет назад
Владелец

Should be:

if( NOT DBUS_TQT_FOUND )
Should be: ``` if( NOT DBUS_TQT_FOUND ) ```
SlavekB прокомментировал(а) 5 лет назад
Автор
Владелец

The macro is ready to allow two ways to call:

  1. without argument:
tde_setup_dbus( )
  1. with argument:
tde_setup_dbus( dbus-1-tqt )

Therefore, there is a condition if the argument was or was not entered.

The macro is ready to allow two ways to call: 1. without argument: ``` tde_setup_dbus( ) ``` 2. with argument: ``` tde_setup_dbus( dbus-1-tqt ) ``` Therefore, there is a condition if the argument was or was not entered.
SlavekB прокомментировал(а) 5 лет назад
Автор
Владелец

Now I understand - the mistake fixed.

Now I understand - the mistake fixed.
modules/TDEMacros.cmake Устаревшее
if( NOT DBUS_FOUND )
tde_message_fatal( "${ARGV} is required, but not found on your system" )
endif( )
if( "${ARGV}" STREQUAL "dbus-1-tqt" )
MicheleC прокомментировал(а) 5 лет назад
Владелец

Only check if dbus-1-tqt was found

if( DBUS_TQT_FOUND AND "${ARGV}" STREQUAL "dbus-1-tqt" )
Only check if dbus-1-tqt was found ``` if( DBUS_TQT_FOUND AND "${ARGV}" STREQUAL "dbus-1-tqt" ) ```
SlavekB прокомментировал(а) 5 лет назад
Автор
Владелец

Here are two independent conditions. If an argument was entered, but the requested module was not found then here is tde_message_fatal.

A separate condition is if the required module was dbus-1-tqt, then the path to the binary will be searched.

Therefore, it seems to me appropriate not to mix these conditions into one.

Here are two independent conditions. If an argument was entered, but the requested module was not found then here is `tde_message_fatal`. A separate condition is if the required module was dbus-1-tqt, then the path to the binary will be searched. Therefore, it seems to me appropriate not to mix these conditions into one.
MicheleC одобрил(а) эти изменения 5 лет назад
MicheleC оставил комментарий
Владелец

LGTM 👍

LGTM :+1:
SlavekB удалён PR/rfc с меткой 5 лет назад
MicheleC прокомментировал(а) 5 лет назад
Владелец

Related to issue #20

Related to issue #20
MicheleC добавил(а) к этапу R14.0.6 release 5 лет назад
SlavekB закрыл этот запрос на слияние 5 лет назад
SlavekB удалил(а) ветку feat/add-test-dbus 5 лет назад
Запрос на слияние был объединен как ac342e63c6.
Войдите, чтобы присоединиться к обсуждению.
Нет рецензентов
Нет этапа
Нет назначенных лиц
2 участников
Уведомления
Срок выполнения

Срок выполнения не установлен.

Зависимости

Зависимостей нет.

Reference: TDE/tde-cmake#22
Загрузка…
Пока нет содержимого.