parent
576b0f26dd
commit
cdee05082b
5 changed files with 60 additions and 0 deletions
@ -0,0 +1,7 @@ |
||||
class Class1 : GLib.Object { |
||||
|
||||
public void hello() { |
||||
var c2 = new Class2(); |
||||
c2.hello(); |
||||
} |
||||
} |
@ -0,0 +1,6 @@ |
||||
class Class2 : GLib.Object { |
||||
|
||||
public void hello() { |
||||
stdout.printf("Multiple file Vala project is working.\n"); |
||||
} |
||||
} |
@ -0,0 +1,8 @@ |
||||
class MainProg : GLib.Object { |
||||
|
||||
public static int main(string[] args) { |
||||
var c1 = new Class1(); |
||||
c1.hello(); |
||||
return 0; |
||||
} |
||||
} |
@ -0,0 +1,8 @@ |
||||
project('multiple files', 'vala', 'c') |
||||
|
||||
glib = dependency('glib-2.0') |
||||
gobject = dependency('gobject-2.0') |
||||
|
||||
e = executable('prog', 'main.vala', 'class1.vala', 'class2.vala', |
||||
deps : [glib, gobject]) |
||||
test('multiple file test', e) |
Loading…
Reference in new issue