mesonbuild/meson

Add subdir argument to gnome.mkenums_simple() to match install_headers()

开放

#2,969 创建于 2018年1月24日

 (0 条评论) (0 个反应) (0 位负责人)Python (1,465 个派生)batch import
enhancementgnomegood first issuehelp wanted

仓库指标

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

描述

Currently, to install my public headers and generated enums.h, I have to do something like:

includedir = join_paths(prefix, get_option('includedir'))
libblah_include_subdir = join_paths(libblah_api_name, 'libblah')
libblah_enums = gnome.mkenums_simple('enums',
  sources: libblah_headers,
  install_header: true,
  install_dir: join_paths(includedir, libblah_include_subdir),
)

# Public library bits.
install_headers(libblah_headers,
  subdir: libblah_include_subdir,
)

It would be good if gnome.mkenums_simple() took a subdir argument like install_headers, so that dealing with includedir directly was not necessary.

贡献者指南