diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2017-11-21 21:20:04 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2018-03-10 19:05:19 +0530 |
commit | f1464c12f920ac9bf0b873a8fea4e721dbc3a636 (patch) | |
tree | 1c999accc768d2a71842fdbea9da21474003c949 /meson.build | |
parent | 7a42b2a852d9219ba402d3c6c3bb6f113e4c7680 (diff) | |
download | gobject-introspection-f1464c12f920ac9bf0b873a8fea4e721dbc3a636.tar.gz |
meson: Set EXEEXT for pkg-config files
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/meson.build b/meson.build index ba888e36..bf76da49 100644 --- a/meson.build +++ b/meson.build @@ -7,6 +7,8 @@ project('gobject-introspection', 'c', ], ) +host_system = host_machine.system() + py3 = import('python3') cc = meson.get_compiler('c') @@ -77,7 +79,11 @@ pkgconfig_conf.set('libdir', join_paths(prefix, get_option('libdir'))) pkgconfig_conf.set('datarootdir', join_paths(prefix, get_option('datadir'))) pkgconfig_conf.set('datadir', '${datarootdir}') pkgconfig_conf.set('includedir', join_paths(prefix, get_option('includedir'))) -pkgconfig_conf.set('EXEEXT', '') # TODO? +if host_system == 'windows' or host_system == 'cygwin' + pkgconfig_conf.set('EXEEXT', '.exe') +else + pkgconfig_conf.set('EXEEXT', '') +endif pkgconfig_conf.set('VERSION', meson.project_version()) pkgconfig_conf.set('FFI_PC_CFLAGS', libffi_dep.get_pkgconfig_variable('Cflags')) pkgconfig_conf.set('FFI_PC_PACKAGES', 'libffi') |