forked from enlightenment/efl
meson: fix cmake generation
Summary: there were missing Version files. These are generated now. Tested and verified with ecrire. Reviewers: zmike, segfaultxavi Reviewed By: zmike Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9054
This commit is contained in:
parent
24a7682ab0
commit
55eeac0604
|
@ -31,6 +31,9 @@ cmake_version_src = [
|
||||||
'Elementary',
|
'Elementary',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
conf = configuration_data()
|
||||||
|
conf.set('VERSION', meson.project_version())
|
||||||
|
|
||||||
foreach cmake_file : cmake_src
|
foreach cmake_file : cmake_src
|
||||||
configure_file(
|
configure_file(
|
||||||
input: cmake_file+'Config.cmake.in',
|
input: cmake_file+'Config.cmake.in',
|
||||||
|
@ -38,19 +41,21 @@ foreach cmake_file : cmake_src
|
||||||
install_dir: join_paths(dir_lib, 'cmake', cmake_file),
|
install_dir: join_paths(dir_lib, 'cmake', cmake_file),
|
||||||
copy: true,
|
copy: true,
|
||||||
)
|
)
|
||||||
endforeach
|
if cmake_version_src.contains(cmake_src)
|
||||||
|
configure_file(
|
||||||
conf = configuration_data()
|
input: cmake_version_file+'ConfigVersion.cmake.in',
|
||||||
|
output: cmake_version_file+'ConfigVersion.cmake',
|
||||||
conf.set('VERSION', meson.version())
|
install_dir: join_paths(dir_lib, 'cmake', cmake_version_file),
|
||||||
|
configuration : conf,
|
||||||
foreach cmake_version_file : cmake_version_src
|
)
|
||||||
configure_file(
|
else
|
||||||
input: cmake_version_file+'ConfigVersion.cmake.in',
|
configure_file(
|
||||||
output: cmake_version_file+'ConfigVersion.cmake',
|
input: 'EflConfigVersion.cmake.in',
|
||||||
install_dir: join_paths(dir_lib, 'cmake', cmake_version_file),
|
output: cmake_file+'ConfigVersion.cmake',
|
||||||
configuration : conf,
|
install_dir: join_paths(dir_lib, 'cmake', cmake_file),
|
||||||
)
|
configuration : conf,
|
||||||
|
)
|
||||||
|
endif
|
||||||
endforeach
|
endforeach
|
||||||
|
|
||||||
configure_file(
|
configure_file(
|
||||||
|
|
Loading…
Reference in New Issue