diff options
| author | Dylan Baker <dylan@pnwbakers.com> | 2025-01-06 15:48:33 -0800 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2025-01-08 10:04:43 -0800 |
| commit | d1422509fc00450928e7a8c40b4fbacc05464f68 (patch) | |
| tree | 9facaef6e4fa094cf679766cf427144cd19dbab3 /mesonbuild/templates | |
| parent | 9f0ac314ba0c54cc18c2499845324efc14c1849e (diff) | |
| download | meson-d1422509fc00450928e7a8c40b4fbacc05464f68.tar.gz | |
templates: add meson.override_dependency()
Diffstat (limited to 'mesonbuild/templates')
| -rw-r--r-- | mesonbuild/templates/cpptemplates.py | 1 | ||||
| -rw-r--r-- | mesonbuild/templates/cstemplates.py | 1 | ||||
| -rw-r--r-- | mesonbuild/templates/ctemplates.py | 1 | ||||
| -rw-r--r-- | mesonbuild/templates/cudatemplates.py | 1 | ||||
| -rw-r--r-- | mesonbuild/templates/dlangtemplates.py | 1 | ||||
| -rw-r--r-- | mesonbuild/templates/fortrantemplates.py | 1 | ||||
| -rw-r--r-- | mesonbuild/templates/javatemplates.py | 1 | ||||
| -rw-r--r-- | mesonbuild/templates/objcpptemplates.py | 1 | ||||
| -rw-r--r-- | mesonbuild/templates/objctemplates.py | 1 | ||||
| -rw-r--r-- | mesonbuild/templates/rusttemplates.py | 1 | ||||
| -rw-r--r-- | mesonbuild/templates/valatemplates.py | 1 |
11 files changed, 11 insertions, 0 deletions
diff --git a/mesonbuild/templates/cpptemplates.py b/mesonbuild/templates/cpptemplates.py index 2e16f8d0d..bb09bcb09 100644 --- a/mesonbuild/templates/cpptemplates.py +++ b/mesonbuild/templates/cpptemplates.py @@ -141,6 +141,7 @@ test('{test_name}', test_exe) dependencies : dependencies, link_with : shlib, ) +meson.override_dependency('{project_name}', {ltoken}_dep) # Make this library usable from the system's # package manager. diff --git a/mesonbuild/templates/cstemplates.py b/mesonbuild/templates/cstemplates.py index 040debc15..59c718953 100644 --- a/mesonbuild/templates/cstemplates.py +++ b/mesonbuild/templates/cstemplates.py @@ -104,6 +104,7 @@ test('{test_name}', test_exe) dependencies : dependencies, link_with : stlib, ) +meson.override_dependency('{project_name}', {ltoken}_dep) ''' diff --git a/mesonbuild/templates/ctemplates.py b/mesonbuild/templates/ctemplates.py index 5772dc2eb..7cb2de551 100644 --- a/mesonbuild/templates/ctemplates.py +++ b/mesonbuild/templates/ctemplates.py @@ -90,6 +90,7 @@ test('{test_name}', test_exe) dependencies : dependencies, link_with : shlib, ) +meson.override_dependency('{project_name}', {ltoken}_dep) # Make this library usable from the system's # package manager. diff --git a/mesonbuild/templates/cudatemplates.py b/mesonbuild/templates/cudatemplates.py index 80b72c750..7db1e0bc6 100644 --- a/mesonbuild/templates/cudatemplates.py +++ b/mesonbuild/templates/cudatemplates.py @@ -141,6 +141,7 @@ test('{test_name}', test_exe) dependencies : dependencies, link_with : shlib, ) +meson.override_dependency('{project_name}', {ltoken}_dep) # Make this library usable from the system's # package manager. diff --git a/mesonbuild/templates/dlangtemplates.py b/mesonbuild/templates/dlangtemplates.py index 00ac3bcc3..db3bdbf16 100644 --- a/mesonbuild/templates/dlangtemplates.py +++ b/mesonbuild/templates/dlangtemplates.py @@ -107,6 +107,7 @@ test('{test_name}', test_exe) dependencies : dependencies, link_with : stlib, ) +meson.override_dependency('{project_name}', {ltoken}_dep) # Make this library usable from the Dlang # build system. diff --git a/mesonbuild/templates/fortrantemplates.py b/mesonbuild/templates/fortrantemplates.py index 3d139612a..a6fd2ef31 100644 --- a/mesonbuild/templates/fortrantemplates.py +++ b/mesonbuild/templates/fortrantemplates.py @@ -75,6 +75,7 @@ test('{test_name}', test_exe) dependencies : dependencies, link_with : shlib, ) +meson.override_dependency('{project_name}', {ltoken}_dep) pkg_mod = import('pkgconfig') pkg_mod.generate( diff --git a/mesonbuild/templates/javatemplates.py b/mesonbuild/templates/javatemplates.py index c79a8e751..a2b3ec4dc 100644 --- a/mesonbuild/templates/javatemplates.py +++ b/mesonbuild/templates/javatemplates.py @@ -109,6 +109,7 @@ test('{test_name}', test_jar) dependencies : dependencies, link_with : jarlib, ) +meson.override_dependency('{project_name}', {ltoken}_dep) ''' diff --git a/mesonbuild/templates/objcpptemplates.py b/mesonbuild/templates/objcpptemplates.py index dd67c3748..be6c1fde0 100644 --- a/mesonbuild/templates/objcpptemplates.py +++ b/mesonbuild/templates/objcpptemplates.py @@ -90,6 +90,7 @@ test('{test_name}', test_exe) dependencies : dependencies, link_with : shlib, ) +meson.override_dependency('{project_name}', {ltoken}_dep) # Make this library usable from the system's # package manager. diff --git a/mesonbuild/templates/objctemplates.py b/mesonbuild/templates/objctemplates.py index 30f480424..ff3aba10c 100644 --- a/mesonbuild/templates/objctemplates.py +++ b/mesonbuild/templates/objctemplates.py @@ -89,6 +89,7 @@ test('{test_name}', test_exe) dependencies : dependencies, link_with : shlib, ) +meson.override_dependency('{project_name}', {ltoken}_dep) # Make this library usable from the system's # package manager. diff --git a/mesonbuild/templates/rusttemplates.py b/mesonbuild/templates/rusttemplates.py index 7eab663bb..2f2d94012 100644 --- a/mesonbuild/templates/rusttemplates.py +++ b/mesonbuild/templates/rusttemplates.py @@ -65,6 +65,7 @@ rust.test('{test_name}', shlib) dependencies : dependencies, link_with : shlib, ) +meson.override_dependency('{project_name}', {ltoken}_dep) ''' hello_rust_template = ''' diff --git a/mesonbuild/templates/valatemplates.py b/mesonbuild/templates/valatemplates.py index 41cee2925..3720c3cb3 100644 --- a/mesonbuild/templates/valatemplates.py +++ b/mesonbuild/templates/valatemplates.py @@ -91,6 +91,7 @@ test('{test_name}', test_exe) dependencies : dependencies, link_with : shlib, ) +meson.override_dependency('{project_name}', {ltoken}_dep) ''' |
