summaryrefslogtreecommitdiff
path: root/cmakeconfig
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2019-01-04 15:09:32 +0100
committerCedric BAIL <cedric.bail@free.fr>2019-01-04 11:03:36 -0800
commit9c256beb2ef838049843d91376e2a4fe34ac789c (patch)
tree08c09a51c3b75ea102a7fc60b92ad6ab8995a9af /cmakeconfig
parenta8e23cc4005b45343f8902e25626a9e4116a66c9 (diff)
downloadefl-9c256beb2ef838049843d91376e2a4fe34ac789c.tar.gz
meson: support cmakeconfigs
this was forgotten, but its required from Ecrire Clouseau etc. fixes T7540. Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D7541
Diffstat (limited to 'cmakeconfig')
-rw-r--r--cmakeconfig/meson.build61
1 files changed, 61 insertions, 0 deletions
diff --git a/cmakeconfig/meson.build b/cmakeconfig/meson.build
new file mode 100644
index 0000000000..2261a4ff12
--- /dev/null
+++ b/cmakeconfig/meson.build
@@ -0,0 +1,61 @@
+
+cmake_src = [
+ 'Ecore',
+ 'EcoreCxx',
+ 'Edje',
+ 'Eet',
+ 'EetCxx',
+ 'Eeze',
+ 'Efl',
+ 'Efreet',
+ 'Eina',
+ 'EinaCxx',
+ 'Eio',
+ 'Eldbus',
+ 'Elementary',
+ 'Elua',
+ 'Emile',
+ 'Emotion',
+ 'Eo',
+ 'EoCxx',
+ 'Eolian',
+ 'EolianCxx',
+ 'EthumbClient',
+ 'Ethumb',
+ 'Evas',
+ 'EvasCxx',
+]
+
+cmake_version_src = [
+ 'EFL',
+ 'Elementary',
+]
+
+foreach cmake_file : cmake_src
+ configure_file(
+ input: cmake_file+'Config.cmake.in',
+ output: cmake_file+'Config.cmake',
+ install_dir: join_paths(dir_lib, 'cmake', cmake_file),
+ copy: true,
+ )
+endforeach
+
+conf = configuration_data()
+
+conf.set('VERSION', meson.version())
+
+foreach cmake_version_file : cmake_version_src
+ configure_file(
+ input: cmake_version_file+'ConfigVersion.cmake.in',
+ output: cmake_version_file+'ConfigVersion.cmake',
+ install_dir: join_paths(dir_lib, 'cmake', cmake_version_file),
+ configuration : conf,
+ )
+endforeach
+
+configure_file(
+ input: 'EolianHelper.cmake.in',
+ output: 'EolianHelper.cmake',
+ install_dir: join_paths(dir_lib, 'cmake', 'Eolian'),
+ copy: true
+)