summaryrefslogtreecommitdiff
path: root/cmakeconfig/meson.build
blob: 2261a4ff12b792918fabb7d537c1ff3c9c419b69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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
)