meson: introduce to meson build system
[platform/upstream/efl.git] / cmakeconfig / meson.build
1
2 cmake_src = [
3   'Ecore',
4   'EcoreCxx',
5   'Edje',
6   'Eet',
7   'EetCxx',
8   'Eeze',
9   'Efl',
10   'Efreet',
11   'Eina',
12   'EinaCxx',
13   'Eio',
14   'Eldbus',
15   'Elementary',
16   'Emile',
17   'Emotion',
18   'Eo',
19   'EoCxx',
20   'Eolian',
21   'EolianCxx',
22   'EthumbClient',
23   'Ethumb',
24   'Evas',
25   'EvasCxx',
26 ]
27
28 if get_option('elua') == true
29   cmake_src += 'Elua'
30 endif
31
32 cmake_version_src = [
33   'Efl',
34   'Elementary',
35 ]
36
37 foreach cmake_file : cmake_src
38   configure_file(
39     input: cmake_file+'Config.cmake.in',
40     output: cmake_file+'Config.cmake',
41     install_dir: join_paths(dir_lib, 'cmake', cmake_file),
42     copy: true,
43   )
44 endforeach
45
46 conf = configuration_data()
47
48 conf.set('VERSION', meson.version())
49
50 foreach cmake_version_file : cmake_version_src
51   configure_file(
52     input: cmake_version_file+'ConfigVersion.cmake.in',
53     output: cmake_version_file+'ConfigVersion.cmake',
54     install_dir: join_paths(dir_lib, 'cmake', cmake_version_file),
55     configuration : conf,
56   )
57 endforeach
58
59 configure_file(
60   input: 'EolianHelper.cmake.in',
61   output: 'EolianHelper.cmake',
62   install_dir: join_paths(dir_lib, 'cmake', 'Eolian'),
63   copy: true
64 )