|
|
@ -18,7 +18,7 @@ becomes a transparent part of the project. The basic idiom goes |
|
|
|
something like this. |
|
|
|
something like this. |
|
|
|
|
|
|
|
|
|
|
|
```meson |
|
|
|
```meson |
|
|
|
dep = dependency('foo', fallback : [subproject_name, variable_name] |
|
|
|
dep = dependency('foo', fallback : [subproject_name, variable_name]) |
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
As an example, suppose we have a simple project that provides a shared |
|
|
|
As an example, suppose we have a simple project that provides a shared |
|
|
@ -40,7 +40,7 @@ this. |
|
|
|
|
|
|
|
|
|
|
|
```meson |
|
|
|
```meson |
|
|
|
project('master', 'c') |
|
|
|
project('master', 'c') |
|
|
|
dep = dependency('simple', fallback : ['simple', 'simple_dep'] |
|
|
|
dep = dependency('simple', fallback : ['simple', 'simple_dep']) |
|
|
|
exe = executable('prog', 'prog.c', |
|
|
|
exe = executable('prog', 'prog.c', |
|
|
|
dependencies : dep, install : true) |
|
|
|
dependencies : dep, install : true) |
|
|
|
``` |
|
|
|
``` |
|
|
|