Commit fab8f5e
Martin Belanger
libnvme/meson: rearrange the config.h dependencies
Explicitly add 'config_dep' to 'deps' to ensure that config.h
is generated before building libnvme.
When defining 'c_args', use the '-include' option directly
instead of hiding it in 'config_h_arg'. This makes the
meson.build file clearer. Since '-include' is used to include
config.h, there is no need to add 'internal_incdir' to the
include path via '-I' (i.e. with 'include_directories' argument).
Note: using '-include' is the Meson-recommended way to include
generated headers. The '-I' option (via 'include_directories')
should be reserved for static headers.
Signed-off-by: Martin Belanger <[email protected]>1 parent 7daa1e9 commit fab8f5e
2 files changed
Lines changed: 14 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
49 | | - | |
50 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
51 | 54 | | |
52 | 55 | | |
53 | 56 | | |
| |||
75 | 78 | | |
76 | 79 | | |
77 | 80 | | |
78 | | - | |
79 | | - | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
80 | 85 | | |
81 | 86 | | |
82 | 87 | | |
| |||
0 commit comments