fix: noconfirm auto-selects first AUR match
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
project('valastatic', 'vala', 'c')
|
||||
|
||||
valadeps = [dependency('glib-2.0'), dependency('gobject-2.0')]
|
||||
|
||||
l = static_library('valalib', 'mylib.vala', dependencies : valadeps)
|
||||
# NOTE: This static library is not usable from Vala because it does not carry
|
||||
# forward the .vapi and .h files generated by Valac to the next BuildTarget.
|
||||
# Will have to be fixed with https://github.com/mesonbuild/meson/issues/891
|
||||
m = static_library('extractedlib',
|
||||
objects : l.extract_all_objects(),
|
||||
install : true)
|
||||
|
||||
e = executable('valaprog', 'prog.vala',
|
||||
link_with : l,
|
||||
dependencies : valadeps)
|
||||
|
||||
test('valastatictest', e)
|
||||
@@ -0,0 +1,5 @@
|
||||
public class LibraryObject : Object {
|
||||
public void func() {
|
||||
stdout.printf("Method in library called.");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
class MainApp : Object {
|
||||
public static int main(string[] args) {
|
||||
var l = new LibraryObject();
|
||||
l.func();
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"installed": [
|
||||
{"type": "file", "file": "usr/lib/libextractedlib.a"}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user