You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

96 lines
5.4 KiB

  1. --- a/plugins/meson.build
  2. +++ b/plugins/meson.build
  3. @@ -88,7 +88,7 @@ if plugins_shared['icera']
  4. plugins += {'shared-icera': {
  5. 'plugin': false,
  6. 'helper': {'sources': files('icera/mm-modem-helpers-icera.c'), 'include_directories': plugins_incs, 'c_args': common_c_args},
  7. - 'module': {'sources': sources, 'include_directories': plugins_incs, 'c_args': common_c_args},
  8. + 'module': {'sources': sources + daemon_enums_sources, 'include_directories': plugins_incs, 'c_args': common_c_args},
  9. 'test': {'sources': files('icera/tests/test-modem-helpers-icera.c'), 'include_directories': plugins_incs + [icera_inc], 'dependencies': libhelpers_dep},
  10. }}
  11. endif
  12. @@ -185,7 +185,7 @@ if plugins_shared['telit']
  13. plugins += {'shared-telit': {
  14. 'plugin': false,
  15. 'helper': {'sources': files('telit/mm-modem-helpers-telit.c'), 'include_directories': plugins_incs, 'c_args': common_c_args},
  16. - 'module': {'sources': sources, 'include_directories': plugins_incs + [telit_inc], 'c_args': common_c_args},
  17. + 'module': {'sources': sources + daemon_enums_sources, 'include_directories': plugins_incs + [telit_inc], 'c_args': common_c_args},
  18. 'test': {'sources': files('telit/tests/test-mm-modem-helpers-telit.c'), 'include_directories': telit_inc, 'dependencies': libmm_test_common_dep},
  19. }}
  20. endif
  21. @@ -285,7 +285,7 @@ if plugins_options['cinterion']
  22. plugins += {'plugin-cinterion': {
  23. 'plugin': true,
  24. 'helper': {'sources': files('cinterion/mm-modem-helpers-cinterion.c'), 'include_directories': plugins_incs, 'c_args': common_c_args},
  25. - 'module': {'sources': sources, 'include_directories': plugins_incs, 'c_args': common_c_args},
  26. + 'module': {'sources': sources + daemon_enums_sources, 'include_directories': plugins_incs, 'c_args': common_c_args},
  27. 'test': {'sources': files('cinterion/tests/test-modem-helpers-cinterion.c'), 'include_directories': plugins_incs + [include_directories('cinterion')], 'dependencies': libport_dep},
  28. }}
  29. @@ -460,8 +460,8 @@ if plugins_options['huawei']
  30. plugins += {'plugin-huawei': {
  31. 'plugin': true,
  32. - 'helper': {'sources': files('huawei/mm-modem-helpers-huawei.c'), 'include_directories': plugins_incs + [huawei_inc], 'c_args': common_c_args + ['-DMM_MODULE_NAME="huawei"']},
  33. - 'module': {'sources': sources + enums_sources + port_enums_sources, 'include_directories': plugins_incs + [huawei_inc], 'c_args': common_c_args + ['-DMM_MODULE_NAME="huawei"']},
  34. + 'helper': {'sources': files('huawei/mm-modem-helpers-huawei.c') + daemon_enums_sources, 'include_directories': plugins_incs + [huawei_inc], 'c_args': common_c_args + ['-DMM_MODULE_NAME="huawei"']},
  35. + 'module': {'sources': sources + enums_sources + port_enums_sources + daemon_enums_sources, 'include_directories': plugins_incs + [huawei_inc], 'c_args': common_c_args + ['-DMM_MODULE_NAME="huawei"']},
  36. 'test': {'sources': files('huawei/tests/test-modem-helpers-huawei.c') + enums_sources, 'include_directories': huawei_inc, 'dependencies': libhelpers_dep},
  37. }}
  38. @@ -534,7 +534,7 @@ if plugins_options['mbm']
  39. plugins += {'plugin-ericsson-mbm': {
  40. 'plugin': true,
  41. 'helper': {'sources': files('mbm/mm-modem-helpers-mbm.c'), 'include_directories': plugins_incs, 'c_args': common_c_args + ['-DMM_MODULE_NAME="ericsson-mbm"']},
  42. - 'module': {'sources': sources, 'include_directories': plugins_incs, 'c_args': common_c_args + ['-DMM_MODULE_NAME="ericsson-mbm"']},
  43. + 'module': {'sources': sources + daemon_enums_sources, 'include_directories': plugins_incs, 'c_args': common_c_args + ['-DMM_MODULE_NAME="ericsson-mbm"']},
  44. 'test': {'sources': files('mbm/tests/test-modem-helpers-mbm.c'), 'include_directories': plugins_incs + [include_directories('mbm')], 'dependencies': libhelpers_dep},
  45. }}
  46. @@ -644,7 +644,7 @@ if plugins_options['option-hso']
  47. plugins += {'plugin-option-hso': {
  48. 'plugin': true,
  49. - 'module': {'sources': sources, 'include_directories': plugins_incs, 'c_args': '-DMM_MODULE_NAME="option-hso"'},
  50. + 'module': {'sources': sources + daemon_enums_sources, 'include_directories': plugins_incs, 'c_args': '-DMM_MODULE_NAME="option-hso"'},
  51. }}
  52. endif
  53. @@ -852,7 +852,7 @@ if plugins_options['ublox']
  54. plugins += {'plugin-ublox': {
  55. 'plugin': true,
  56. 'helper': {'sources': files('ublox/mm-modem-helpers-ublox.c'), 'include_directories': plugins_incs, 'c_args': common_c_args},
  57. - 'module': {'sources': sources, 'include_directories': plugins_incs + [ublox_inc], 'c_args': common_c_args},
  58. + 'module': {'sources': sources + daemon_enums_sources, 'include_directories': plugins_incs + [ublox_inc], 'c_args': common_c_args},
  59. 'test': {'sources': files('ublox/tests/test-modem-helpers-ublox.c'), 'include_directories': ublox_inc, 'dependencies': libmm_test_common_dep},
  60. }}
  61. --- a/src/meson.build
  62. +++ b/src/meson.build
  63. @@ -225,14 +225,15 @@ sources = files(
  64. enums_types = 'mm-daemon-enums-types'
  65. -sources += gnome.mkenums(
  66. +daemon_enums_sources = []
  67. +daemon_enums_sources += gnome.mkenums(
  68. enums_types + '.c',
  69. sources: headers,
  70. c_template: build_aux_dir / enums_types + '.c.template',
  71. fhead: '#include "mm-daemon-enums-types.h"',
  72. )
  73. -sources += gnome.mkenums(
  74. +daemon_enums_sources += gnome.mkenums(
  75. enums_types + '.h',
  76. sources: headers,
  77. h_template: build_aux_dir / enums_types + '.h.template',
  78. @@ -296,7 +297,7 @@ endif
  79. executable(
  80. 'ModemManager',
  81. - sources: sources,
  82. + sources: sources + daemon_enums_sources,
  83. include_directories: top_inc,
  84. dependencies: deps,
  85. c_args: c_args,