@micro-os-plus/micro-test-plus 2.1.1 → 3.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/meson.build CHANGED
@@ -1,7 +1,7 @@
1
-
1
+ # -----------------------------------------------------------------------------
2
2
  #
3
3
  # This file is part of the µOS++ distribution.
4
- # (https://github.com/micro-os-plus)
4
+ # (https://github.com/micro-os-plus/)
5
5
  # Copyright (c) 2022 Liviu Ionescu
6
6
  #
7
7
  # Permission to use, copy, modify, and/or distribute this software
@@ -16,7 +16,7 @@
16
16
  #
17
17
  # `subdir('xpacks/micro-os-plus-micro-test-plus')`
18
18
  #
19
- # The result is a dependency that can be refered as:
19
+ # The result is a library and a dependency that can be refered as:
20
20
  #
21
21
  # `dependencies: [micro_os_plus_micro_test_plus_dependency],`
22
22
 
@@ -27,18 +27,42 @@
27
27
 
28
28
  message('Processing xPack @micro-os-plus/micro-test-plus...')
29
29
 
30
+ # -----------------------------------------------------------------------------
31
+
32
+ xpack_common_args = []
33
+ xpack_c_args = []
34
+ xpack_cpp_args = []
35
+ xpack_include_directories = []
36
+ xpack_sources = []
37
+ xpack_compile_definitions = []
38
+
39
+ xpack_include_directories += [
40
+ 'include',
41
+ ]
42
+
43
+ xpack_sources += [
44
+ 'src/micro-test-plus.cpp',
45
+ 'src/test-runner.cpp',
46
+ 'src/test-reporter.cpp',
47
+ 'src/test-suite.cpp',
48
+ ]
49
+
30
50
  # https://mesonbuild.com/Reference-manual_functions.html#declare_dependency
31
51
  micro_os_plus_micro_test_plus_dependency = declare_dependency(
32
- include_directories: include_directories(
33
- 'include',
34
- ),
35
- sources: files(
36
- 'src/micro-test-plus.cpp',
37
- ),
52
+ include_directories: include_directories(xpack_include_directories),
53
+ compile_args: xpack_common_args,
54
+ sources: files(xpack_sources),
38
55
  )
39
56
 
40
- message('+ -I include')
41
- message('+ src/micro-test-plus.cpp')
57
+ # micro_os_plus_micro_test_plus_dependency_c_args = xpack_c_args
58
+ # micro_os_plus_micro_test_plus_dependency_cpp_args = xpack_cpp_args
59
+
60
+ foreach name : xpack_include_directories
61
+ message('+ -I ' + name)
62
+ endforeach
63
+ foreach name : xpack_sources + xpack_common_args
64
+ message('+ ' + name)
65
+ endforeach
42
66
  message('> micro_os_plus_micro_test_plus_dependency')
43
67
 
44
68
  # -----------------------------------------------------------------------------