2017-10-03 09:52:45 -07:00
|
|
|
tar = find_program('tar')
|
2017-10-13 14:03:20 -07:00
|
|
|
edje_cc = find_program('edje_cc')
|
2017-10-03 09:52:45 -07:00
|
|
|
|
|
|
|
skeleton_names = ['eflproject', 'eflproject_python']
|
|
|
|
|
|
|
|
foreach skeleton_name : skeleton_names
|
|
|
|
|
|
|
|
custom_target('skeleton ' + skeleton_name,
|
2022-02-23 07:14:37 -08:00
|
|
|
command : [tar, 'zcf', '@OUTPUT@', '-C',
|
2018-05-15 07:39:26 -07:00
|
|
|
join_paths(meson.source_root(), 'data', 'extra', 'templates', 'skeletons'),
|
|
|
|
skeleton_name],
|
|
|
|
output : skeleton_name + '.tar.gz',
|
|
|
|
install_dir: join_paths(get_option('prefix'), get_option('datadir'), 'edi', 'templates'),
|
|
|
|
install : true,
|
2017-10-03 09:52:45 -07:00
|
|
|
)
|
|
|
|
|
|
|
|
endforeach
|
2017-10-13 14:03:20 -07:00
|
|
|
|
|
|
|
cmd = [ edje_cc,
|
2017-10-15 08:29:06 -07:00
|
|
|
'-id', join_paths(meson.source_root(), 'data' , 'extra', 'templates', 'images'),
|
2017-10-13 14:03:20 -07:00
|
|
|
'@INPUT@', '@OUTPUT@'
|
|
|
|
]
|
|
|
|
|
2017-11-24 03:01:03 -08:00
|
|
|
template_dir = join_paths(get_option('datadir'), 'edi', 'templates')
|
2018-01-06 05:42:24 -08:00
|
|
|
custom_target('templates_meta',
|
|
|
|
input : 'templates.edc',
|
|
|
|
output : 'templates.edj',
|
|
|
|
command : cmd,
|
|
|
|
install_dir: template_dir,
|
|
|
|
install: true,
|
|
|
|
)
|
|
|
|
out = join_paths(get_option('prefix'), template_dir, 'templates.edj')
|
|
|
|
meson.add_install_script('../../../scripts/world_read.sh', out)
|
2017-10-13 14:03:20 -07:00
|
|
|
|