Skip to content

Wrong Vala typelib example #2296

@inigomartinez

Description

@inigomartinez
g_ir_compiler = find_program('g-ir-compiler')
custom_target('foo typelib', command: [g_ir_compiler, '--output', '@OUTPUT@', '@INPUT@'],
              input: join_paths(meson.current_build_dir(), 'Foo-1.0.gir'),
              output: 'Foo-1.0.typelib',
              depends: foo_lib,
              install: true,
              install_dir: join_paths(get_option('libdir'), 'girepository-1.0'))

This example, located at Vala Reference, doesn't work and produces the following error message:

ninja: Entering directory `_build/'
ninja: error: '../meson/_build/Foo-1.0.gir', needed by 'Foo-1.0.typelib', missing and no known rule to make it

The same example it's used in the vala gir example, althougth it's slightly modified and that makes it to work. This error doesn't happen when install and install_diroptions are not present.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions