mesonbuild/meson

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

Aperta

#2969 aperta il 24 gen 2018

 (0 commenti) (0 reazioni) (0 assegnatari)Python (1465 fork)batch import
enhancementgnomegood first issuehelp wanted

Metriche repository

Star
 (4978 stelle)
Metriche merge PR
 (Merge medio 139g 13h) (51 PR mergiate in 30 g)

Descrizione

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.

Guida contributor