parent
ae532c807c
commit
ac8d5f2156
5 changed files with 38 additions and 2 deletions
@ -0,0 +1,5 @@ |
||||
public class Subdir.Test : GLib.Object { |
||||
construct { |
||||
stdout.printf("Test from subdir.\n"); |
||||
} |
||||
} |
@ -0,0 +1,5 @@ |
||||
public class Test : GLib.Object { |
||||
construct { |
||||
stdout.printf("Test from main directory.\n"); |
||||
} |
||||
} |
@ -0,0 +1,11 @@ |
||||
project('valatest', 'vala', 'c') |
||||
|
||||
valadeps = [dependency('glib-2.0'), dependency('gobject-2.0')] |
||||
valafiles = files([ |
||||
'prog.vala', |
||||
'Test.vala', |
||||
'Subdir/Test.vala' |
||||
]) |
||||
|
||||
e = executable('multidir_prog', valafiles, dependencies : valadeps) |
||||
test('valatest', e) |
@ -0,0 +1,9 @@ |
||||
class MainProg : GLib.Object { |
||||
|
||||
public static int main(string[] args) { |
||||
var test1 = new Test (); |
||||
var test2 = new Subdir.Test (); |
||||
stdout.printf("Vala is working.\n"); |
||||
return 0; |
||||
} |
||||
} |
Loading…
Reference in new issue