parent
58d7db4a6c
commit
d6b2053146
6 changed files with 42 additions and 9 deletions
@ -0,0 +1 @@ |
||||
l = shared_library('valalib', 'mylib.vala', dependencies : valadeps) |
@ -0,0 +1,5 @@ |
||||
public class LibraryObject : Object { |
||||
public void func() { |
||||
stdout.printf("Method in library called."); |
||||
} |
||||
} |
@ -0,0 +1,10 @@ |
||||
project('shared library', 'vala', 'c') |
||||
|
||||
valadeps = [dependency('glib-2.0'), dependency('gobject-2.0')] |
||||
|
||||
libinc = include_directories('lib') |
||||
|
||||
subdir('lib') |
||||
subdir('prog') |
||||
|
||||
test('valasharedtest', e) |
@ -0,0 +1,4 @@ |
||||
e = executable('valaprog', 'prog.vala', |
||||
link_with : l, |
||||
include_directories : libinc, |
||||
dependencies : valadeps) |
@ -0,0 +1,7 @@ |
||||
class MainApp : Object { |
||||
public static int main(string[] args) { |
||||
var l = new LibraryObject(); |
||||
l.func(); |
||||
return 0; |
||||
} |
||||
} |
Loading…
Reference in new issue