aboutsummaryrefslogtreecommitdiffstats
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
parentefl-mono: Add efl_mono.dll.config file to run tests from within tree (diff)
downloadefl-9c256beb2ef838049843d91376e2a4fe34ac789c.tar.gz
meson: support cmakeconfigs
this was forgotten, but its required from Ecrire Clouseau etc. fixes https://phab.enlightenment.org/T7540. Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D7541
-rw-r--r--cmakeconfig/meson.build61
-rw-r--r--meson.build1
2 files changed, 62 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
+)
diff --git a/meson.build b/meson.build
index a814d9dfee..cee0c1bc3b 100644
--- a/meson.build
+++ b/meson.build
@@ -404,6 +404,7 @@ subdir(join_paths('src', 'bin', 'efl'))
subdir(join_paths('src', 'generic', 'evas'))
subdir(join_paths('src', 'generic', 'emotion'))
+subdir('cmakeconfig')
bindings = ['luajit', 'cxx', 'mono']