fix: noconfirm auto-selects first AUR match
This commit is contained in:
+1
@@ -0,0 +1 @@
|
||||
Hello World
|
||||
+1
@@ -0,0 +1 @@
|
||||
Excluded
|
||||
+1
@@ -0,0 +1 @@
|
||||
Placeholder
|
||||
+1
@@ -0,0 +1 @@
|
||||
Installed
|
||||
@@ -0,0 +1,9 @@
|
||||
#if defined _WIN32 || defined __CYGWIN__
|
||||
#define DLL_PUBLIC __declspec(dllexport)
|
||||
#else
|
||||
#define DLL_PUBLIC
|
||||
#endif
|
||||
|
||||
int DLL_PUBLIC foo(void) {
|
||||
return 0;
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
int main(int argc, char *argv[]) {
|
||||
return 0;
|
||||
}
|
||||
@@ -0,0 +1,116 @@
|
||||
project('install tag', 'c')
|
||||
|
||||
subproject('subproject')
|
||||
|
||||
subdir('subdir')
|
||||
|
||||
# Those files should not be tagged
|
||||
configure_file(input: 'foo.in', output: 'foo-notag.h',
|
||||
configuration: {'foo': 'bar'},
|
||||
install_dir: get_option('datadir'),
|
||||
install: true,
|
||||
)
|
||||
install_data('bar-notag.txt',
|
||||
install_dir: get_option('datadir')
|
||||
)
|
||||
custom_target('ct1',
|
||||
output: ['out1-notag.txt', 'out2-notag.txt'],
|
||||
command: ['script.py', '@OUTPUT@'],
|
||||
install_dir: get_option('datadir'),
|
||||
install: true,
|
||||
)
|
||||
|
||||
# Those files should be tagged as devel
|
||||
install_headers('foo1-devel.h')
|
||||
install_data('bar-devel.h',
|
||||
install_dir: get_option('includedir'),
|
||||
)
|
||||
configure_file(input: 'foo.in', output: 'foo2-devel.h',
|
||||
configuration: {'foo': 'bar'},
|
||||
install_dir: get_option('includedir'),
|
||||
install: true,
|
||||
)
|
||||
static_library('static', 'lib.c',
|
||||
install: true,
|
||||
)
|
||||
custom_target('ct-header1',
|
||||
output: ['ct-header1.h'],
|
||||
command: ['script.py', '@OUTPUT@'],
|
||||
install_dir: get_option('includedir'),
|
||||
install: true,
|
||||
)
|
||||
custom_target('ct-header2',
|
||||
output: ['ct-header2.h', 'ct-header3.h'],
|
||||
command: ['script.py', '@OUTPUT@'],
|
||||
install_dir: [false, get_option('includedir')],
|
||||
install: true,
|
||||
)
|
||||
install_emptydir(get_option('includedir') / 'subdir-devel')
|
||||
install_subdir('custom_files',
|
||||
install_dir: get_option('includedir'),
|
||||
)
|
||||
|
||||
# Those files should have 'runtime' tag
|
||||
executable('app', 'main.c',
|
||||
install: true,
|
||||
)
|
||||
executable('app-otherdir', 'main.c',
|
||||
install: true,
|
||||
install_dir: 'otherbin',
|
||||
)
|
||||
shared_library('shared', 'lib.c',
|
||||
install: true,
|
||||
)
|
||||
both_libraries('both', 'lib.c',
|
||||
install: true,
|
||||
)
|
||||
|
||||
# Unversioned .so file should have 'devel' tag, others should have 'runtime' tag
|
||||
shared_library('versioned_shared', 'lib.c',
|
||||
install: true,
|
||||
version: '1.2.3',
|
||||
)
|
||||
|
||||
# Those files should have custom tag
|
||||
install_data('bar-custom.txt',
|
||||
install_dir: get_option('datadir'),
|
||||
install_tag: 'custom')
|
||||
configure_file(input: 'foo.in', output: 'foo-custom.h',
|
||||
configuration: {'foo': 'bar'},
|
||||
install_dir: get_option('datadir'),
|
||||
install_tag: 'custom',
|
||||
install: true,
|
||||
)
|
||||
both_libraries('bothcustom', 'lib.c',
|
||||
install_tag: 'custom',
|
||||
install: true,
|
||||
)
|
||||
custom_target('ct2',
|
||||
output: ['out1-custom.txt', 'out2-custom.txt'],
|
||||
command: ['script.py', '@OUTPUT@'],
|
||||
install_dir: get_option('datadir'),
|
||||
install_tag: 'custom',
|
||||
install: true,
|
||||
)
|
||||
install_subdir('custom_files',
|
||||
install_dir: get_option('datadir'),
|
||||
install_tag: 'custom',
|
||||
)
|
||||
install_subdir('excludes',
|
||||
install_dir: get_option('datadir'),
|
||||
install_tag: 'custom',
|
||||
exclude_directories: 'excluded',
|
||||
exclude_files: 'excluded.txt',
|
||||
)
|
||||
|
||||
# First is custom, 2nd is devel, 3rd has no tag
|
||||
custom_target('ct3',
|
||||
output: ['out3-custom.txt', 'out-devel.h', 'out3-notag.txt'],
|
||||
command: ['script.py', '@OUTPUT@'],
|
||||
install_dir: [get_option('datadir'), get_option('includedir'), get_option('datadir')],
|
||||
install_tag: ['custom', 'devel', false],
|
||||
install: true,
|
||||
)
|
||||
|
||||
meson.add_install_script('script.py', install_tag: 'custom')
|
||||
meson.add_install_script('script.py')
|
||||
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import sys
|
||||
|
||||
for f in sys.argv[1:]:
|
||||
with open(f, 'w') as f:
|
||||
pass
|
||||
@@ -0,0 +1,9 @@
|
||||
#if defined _WIN32 || defined __CYGWIN__
|
||||
#define DLL_PUBLIC __declspec(dllexport)
|
||||
#else
|
||||
#define DLL_PUBLIC
|
||||
#endif
|
||||
|
||||
int DLL_PUBLIC foo(void) {
|
||||
return 0;
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
int main(int argc, char *argv[]) {
|
||||
return 0;
|
||||
}
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
configure_file(input: 'foo2.in', output: 'foo2.h',
|
||||
configuration: {'foo': 'bar'},
|
||||
install_dir: get_option('datadir'),
|
||||
install: true,
|
||||
)
|
||||
custom_target('ct4',
|
||||
output: ['out1.txt', 'out2.txt'],
|
||||
command: ['script.py', '@OUTPUT@'],
|
||||
install_dir: get_option('datadir'),
|
||||
install: true,
|
||||
)
|
||||
install_headers('foo3-devel.h')
|
||||
install_data('bar2-devel.h',
|
||||
install_dir: get_option('includedir'),
|
||||
)
|
||||
executable('app2', 'main.c',
|
||||
install: true,
|
||||
)
|
||||
both_libraries('both2', 'lib.c',
|
||||
install: true,
|
||||
)
|
||||
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import sys
|
||||
|
||||
for f in sys.argv[1:]:
|
||||
with open(f, 'w') as f:
|
||||
pass
|
||||
+1
@@ -0,0 +1 @@
|
||||
AAA
|
||||
+1
@@ -0,0 +1 @@
|
||||
BBB
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
project('subproject')
|
||||
|
||||
install_data('aaa.txt')
|
||||
|
||||
install_data('bbb.txt', install_tag: 'data')
|
||||
Reference in New Issue
Block a user