meson: make it possible to set the path for eet

Follow the approach of edje_cc and eldbus-codegen which detecting the
eet binary.
devs/bu5hm4n/sandbox_fix
Stefan Schmidt 5 years ago
parent ff9831e2e4
commit c1afa0a05b
  1. 2
      config/default/meson.build
  2. 11
      config/meson.build
  3. 2
      config/mobile/meson.build
  4. 2
      config/standard/meson.build
  5. 2
      config/tiling/meson.build
  6. 4
      meson_options.txt

@ -10,7 +10,7 @@ foreach cd: src
custom_target(' '.join(['config_dist', dir, cd]),
input : cd + '.src',
output : cd + '.cfg',
command : [eet, '-e', '@OUTPUT@', 'config', '@INPUT@', '1'],
command : [eet_cmd, '-e', '@OUTPUT@', 'config', '@INPUT@', '1'],
install : true,
install_dir: join_paths(dir_config, dir)
)

@ -1,13 +1,14 @@
dir_config = join_paths(dir_data, 'enlightenment/data/config')
eet = find_program('eet')
gen_eet = generator(eet,
output : '@BASENAME@.cfg',
arguments: ['-e', '@OUTPUT@', 'config', '@INPUT@', '1'])
eet_cmd = get_option('eet')
if eet_cmd == ''
eet_cmd = join_paths(dep_eet.get_pkgconfig_variable('prefix'),
'bin', 'eet')
endif
custom_target('profile.src',
input : 'profile.src',
command : [eet, '-i', '@OUTPUT@', 'config', '@INPUT@', '1'],
command : [eet_cmd, '-i', '@OUTPUT@', 'config', '@INPUT@', '1'],
output : ['profile.cfg'],
install : true,
install_dir: dir_config

@ -12,7 +12,7 @@ foreach cd: src
custom_target(' '.join(['config_dist', dir, cd]),
input : cd + '.src',
output : cd + '.cfg',
command : [eet, '-e', '@OUTPUT@', 'config', '@INPUT@', '1'],
command : [eet_cmd, '-e', '@OUTPUT@', 'config', '@INPUT@', '1'],
install : true,
install_dir: join_paths(dir_config, dir)
)

@ -18,7 +18,7 @@ foreach cd: src
custom_target(' '.join(['config_dist', dir, cd]),
input : cd + '.src',
output : cd + '.cfg',
command : [eet, '-e', '@OUTPUT@', 'config', '@INPUT@', '1'],
command : [eet_cmd, '-e', '@OUTPUT@', 'config', '@INPUT@', '1'],
install : true,
install_dir: join_paths(dir_config, dir)
)

@ -19,7 +19,7 @@ foreach cd: src
custom_target(' '.join(['config_dist', dir, cd]),
input : cd + '.src',
output : cd + '.cfg',
command : [eet, '-e', '@OUTPUT@', 'config', '@INPUT@', '1'],
command : [eet_cmd, '-e', '@OUTPUT@', 'config', '@INPUT@', '1'],
install : true,
install_dir: join_paths(dir_config, dir)
)

@ -23,6 +23,10 @@ option('eldbus-codegen',
type : 'string',
description: 'A path to a eldbus-codegen. Defaults to system eldbus-codegen')
option('eet',
type : 'string',
description: 'A path to a eet. Defaults to system eet')
option('pam',
type: 'boolean',
value: true,

Loading…
Cancel
Save