mesonbuild/meson

Allow specifying dependency information in the cross-info file

开放

#1,524 创建于 2017年3月27日

 (5 条评论) (0 个反应) (0 位负责人)Python (1,465 个派生)batch import
crossenhancementhelp wantedmesa/wayland/xorg

仓库指标

星标
 (4,978 个星标)
PR 合并指标
 (平均合并 139天 13小时) (30 天内合并 51 个 PR)

描述

Ref. https://cgit.freedesktop.org/mesa/demos/commit/?h=meson&id=5671d1975c4c4a8457fc1664a188bbee22968d5a

pkg-config isn't always available, so we want a way to specify it in the cross-info file. A new field in the properties section makes sense:

[properties]
has_function_printf = true
dependency_glew_libs = ['-L/path/to/glew/lib/', '-lglew32']
dependency_glew_cflags = ['-I/path/to/glew/include']

This has exactly the same semantics as pkg-config Libs: and Cflags: fields.

We would, as always, automatically translate this to per-compiler arguments.

@TingPing had the idea of also being able to specify this dependency information in the form of a dependency-file which would put all this into a separate file 'template' which would allow it to be shared across cross-info files, and would also allow it to be used for native builds. Let's discuss that in a different issue.

贡献者指南