File tree Expand file tree Collapse file tree 4 files changed +30
-22
lines changed Expand file tree Collapse file tree 4 files changed +30
-22
lines changed Original file line number Diff line number Diff line change 1
1
unity_inc += include_directories (' .' )
2
2
unity_src += files (' unity_fixture.c' )
3
3
4
- install_headers (
5
- ' unity_fixture.h' ,
6
- ' unity_fixture_internals.h' ,
7
- subdir : meson .project_name()
8
- )
4
+ if not meson .is_subproject()
5
+ install_headers (
6
+ ' unity_fixture.h' ,
7
+ ' unity_fixture_internals.h' ,
8
+ subdir : meson .project_name()
9
+ )
10
+ endif
Original file line number Diff line number Diff line change 1
1
unity_inc += include_directories (' .' )
2
2
unity_src += files (' unity_memory.c' )
3
3
4
- install_headers (
5
- ' unity_memory.h' ,
6
- subdir : meson .project_name()
7
- )
4
+ if not meson .is_subproject()
5
+ install_headers (
6
+ ' unity_memory.h' ,
7
+ subdir : meson .project_name()
8
+ )
9
+ endif
Original file line number Diff line number Diff line change 45
45
unity_lib = static_library (meson .project_name(),
46
46
sources : unity_src,
47
47
include_directories : unity_inc,
48
- install : true
48
+ install : not meson .is_subproject(),
49
49
)
50
50
51
51
unity_dep = declare_dependency (
@@ -54,13 +54,15 @@ unity_dep = declare_dependency(
54
54
)
55
55
56
56
# Generate pkg-config file.
57
- pkg = import (' pkgconfig' )
58
- pkg.generate(
59
- name : meson .project_name(),
60
- version : meson .project_version(),
61
- libraries : [ unity_lib ],
62
- description : ' C Unit testing framework.'
63
- )
57
+ if not meson .is_subproject()
58
+ pkg = import (' pkgconfig' )
59
+ pkg.generate(
60
+ name : meson .project_name(),
61
+ version : meson .project_version(),
62
+ libraries : [ unity_lib ],
63
+ description : ' C Unit testing framework.'
64
+ )
65
+ endif
64
66
65
67
# Create a generator that can be used by consumers of our build system to generate
66
68
# test runners.
Original file line number Diff line number Diff line change 8
8
unity_inc += include_directories (' .' )
9
9
unity_src += files (' unity.c' )
10
10
11
- install_headers (
12
- ' unity.h' ,
13
- ' unity_internals.h' ,
14
- subdir : meson .project_name()
15
- )
11
+ if not meson .is_subproject()
12
+ install_headers (
13
+ ' unity.h' ,
14
+ ' unity_internals.h' ,
15
+ subdir : meson .project_name()
16
+ )
17
+ endif
You can’t perform that action at this time.
0 commit comments