| 1 |
# SPDX-License-Identifier: Apache-2.0 |
| 2 |
# Copyright © 2025 Intel Corporation |
| 3 |
|
| 4 |
project('foo', 'c', 'vala') |
| 5 |
|
| 6 |
glib = dependency('glib-2.0') |
| 7 |
gobject = dependency('gobject-2.0') |
| 8 |
g_ir_compiler = find_program('g-ir-compiler') |
| 9 |
|
| 10 |
foo = shared_library('foo', 'foo.vala', |
| 11 |
install : true, |
| 12 |
install_dir : [true, false, false, true], |
| 13 |
vala_gir: 'Foo-1.0.gir', |
| 14 |
dependencies: [glib, gobject]) |
| 15 |
|
| 16 |
custom_target('foo-typelib', |
| 17 |
command: [g_ir_compiler, '--output', '@OUTPUT@', '@INPUT@'], |
| 18 |
input: foo.vala_gir(), |
| 19 |
output: 'Foo-1.0.typelib', |
| 20 |
build_by_default : true) |