forked from enlightenment/enlightenment
meson - use install_mode
This commit is contained in:
parent
c16034bcc8
commit
9568b29e64
|
@ -8,15 +8,12 @@ src = [
|
|||
i = 0
|
||||
foreach cd: src
|
||||
custom_target(' '.join(['config_dist', dir, cd]),
|
||||
input : cd + '.src',
|
||||
output : cd + '.cfg',
|
||||
command : [eet_cmd, '-e', '@OUTPUT@', 'config', '@INPUT@', '1'],
|
||||
install : true,
|
||||
install_dir: join_paths(dir_config, dir)
|
||||
input : cd + '.src',
|
||||
output : cd + '.cfg',
|
||||
command : [eet_cmd, '-e', '@OUTPUT@', 'config', '@INPUT@', '1'],
|
||||
install : true,
|
||||
install_dir : join_paths(dir_config, dir),
|
||||
install_mode : 'rw-r--r--'
|
||||
)
|
||||
i += 1
|
||||
endforeach
|
||||
foreach cd: src
|
||||
o = join_paths(dir_config, dir, cd + '.cfg')
|
||||
meson.add_install_script(chmod, 'a+r', o)
|
||||
endforeach
|
||||
|
|
|
@ -7,14 +7,13 @@ if eet_cmd == ''
|
|||
endif
|
||||
|
||||
custom_target('profile.src',
|
||||
input : 'profile.src',
|
||||
command : [eet_cmd, '-i', '@OUTPUT@', 'config', '@INPUT@', '1'],
|
||||
output : ['profile.cfg'],
|
||||
install : true,
|
||||
install_dir: dir_config
|
||||
input : 'profile.src',
|
||||
command : [eet_cmd, '-i', '@OUTPUT@', 'config', '@INPUT@', '1'],
|
||||
output : ['profile.cfg'],
|
||||
install : true,
|
||||
install_dir : dir_config,
|
||||
install_mode : 'rw-r--r--'
|
||||
)
|
||||
out = join_paths(dir_config, 'profile.cfg')
|
||||
meson.add_install_script(chmod, 'a+r', out)
|
||||
|
||||
subdir('default')
|
||||
subdir('mobile')
|
||||
|
|
|
@ -10,20 +10,18 @@ src = [
|
|||
i = 0
|
||||
foreach cd: src
|
||||
custom_target(' '.join(['config_dist', dir, cd]),
|
||||
input : cd + '.src',
|
||||
output : cd + '.cfg',
|
||||
command : [eet_cmd, '-e', '@OUTPUT@', 'config', '@INPUT@', '1'],
|
||||
install : true,
|
||||
install_dir: join_paths(dir_config, dir)
|
||||
input : cd + '.src',
|
||||
output : cd + '.cfg',
|
||||
command : [eet_cmd, '-e', '@OUTPUT@', 'config', '@INPUT@', '1'],
|
||||
install : true,
|
||||
install_dir : join_paths(dir_config, dir),
|
||||
install_mode : 'rw-r--r--'
|
||||
)
|
||||
i += 1
|
||||
endforeach
|
||||
install_data([ 'enlightenment-' + dir + '.png',
|
||||
'profile.desktop'
|
||||
],
|
||||
install_dir: join_paths(dir_config, dir)
|
||||
install_dir : join_paths(dir_config, dir),
|
||||
install_mode : 'rw-r--r--'
|
||||
)
|
||||
foreach cd: src
|
||||
o = join_paths(dir_config, dir, cd + '.cfg')
|
||||
meson.add_install_script(chmod, 'a+r', o)
|
||||
endforeach
|
||||
|
|
|
@ -16,20 +16,18 @@ src = [
|
|||
i = 0
|
||||
foreach cd: src
|
||||
custom_target(' '.join(['config_dist', dir, cd]),
|
||||
input : cd + '.src',
|
||||
output : cd + '.cfg',
|
||||
command : [eet_cmd, '-e', '@OUTPUT@', 'config', '@INPUT@', '1'],
|
||||
install : true,
|
||||
install_dir: join_paths(dir_config, dir)
|
||||
input : cd + '.src',
|
||||
output : cd + '.cfg',
|
||||
command : [eet_cmd, '-e', '@OUTPUT@', 'config', '@INPUT@', '1'],
|
||||
install : true,
|
||||
install_dir : join_paths(dir_config, dir),
|
||||
install_mode : 'rw-r--r--'
|
||||
)
|
||||
i += 1
|
||||
endforeach
|
||||
install_data([ 'enlightenment-' + dir + '.png',
|
||||
'profile.desktop'
|
||||
],
|
||||
install_dir: join_paths(dir_config, dir)
|
||||
install_dir : join_paths(dir_config, dir),
|
||||
install_mode : 'rw-r--r--'
|
||||
)
|
||||
foreach cd: src
|
||||
o = join_paths(dir_config, dir, cd + '.cfg')
|
||||
meson.add_install_script(chmod, 'a+r', o)
|
||||
endforeach
|
||||
|
|
|
@ -17,20 +17,18 @@ src = [
|
|||
i = 0
|
||||
foreach cd: src
|
||||
custom_target(' '.join(['config_dist', dir, cd]),
|
||||
input : cd + '.src',
|
||||
output : cd + '.cfg',
|
||||
command : [eet_cmd, '-e', '@OUTPUT@', 'config', '@INPUT@', '1'],
|
||||
install : true,
|
||||
install_dir: join_paths(dir_config, dir)
|
||||
input : cd + '.src',
|
||||
output : cd + '.cfg',
|
||||
command : [eet_cmd, '-e', '@OUTPUT@', 'config', '@INPUT@', '1'],
|
||||
install : true,
|
||||
install_dir : join_paths(dir_config, dir),
|
||||
install_mode : 'rw-r--r--'
|
||||
)
|
||||
i += 1
|
||||
endforeach
|
||||
install_data([ 'enlightenment-' + dir + '.png',
|
||||
'profile.desktop'
|
||||
],
|
||||
install_dir: join_paths(dir_config, dir)
|
||||
install_dir : join_paths(dir_config, dir),
|
||||
install_mode : 'rw-r--r--'
|
||||
)
|
||||
foreach cd: src
|
||||
o = join_paths(dir_config, dir, cd + '.cfg')
|
||||
meson.add_install_script(chmod, 'a+r', o)
|
||||
endforeach
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
install_data('enlightenment_remote',
|
||||
install_dir: dir_bin
|
||||
install_dir : dir_bin,
|
||||
install_mode : 'rwxr-xr-x'
|
||||
)
|
||||
o = join_paths(dir_bin, 'enlightenment_remote')
|
||||
meson.add_install_script(chmod, 'a+r+x', o)
|
||||
|
|
|
@ -8,7 +8,6 @@ project('enlightenment', 'c',
|
|||
##### convenience variables for later
|
||||
proj = meson.project_name()
|
||||
ver = meson.project_version()
|
||||
chmod = join_paths(meson.source_root(), 'meson/meson-chmod.sh')
|
||||
|
||||
#### check for mixed autofoo and meson build tree mess
|
||||
clean_check = run_command('meson/clean_check.sh')
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
#!/bin/sh
|
||||
chmod "$1" "${DESTDIR}/$2" && touch "${DESTDIR}/$2"
|
|
@ -32,18 +32,20 @@ if get_option(m) == true
|
|||
]
|
||||
edc = 'theme'
|
||||
custom_target(edc + '.edj',
|
||||
input : edc + '.edc',
|
||||
output : edc + '.edj',
|
||||
command : cmd,
|
||||
install_dir: _dir,
|
||||
install : true
|
||||
input : edc + '.edc',
|
||||
output : edc + '.edj',
|
||||
command : cmd,
|
||||
install_dir : _dir,
|
||||
install_mode : 'rw-r--r--',
|
||||
install : true
|
||||
)
|
||||
out = join_paths(_dir, edc + '.edj')
|
||||
meson.add_install_script(chmod, 'a+r', out)
|
||||
|
||||
install_data(['dicts/English_US_Small.dic',
|
||||
'dicts/English_US.dic'],
|
||||
install_dir: join_paths(_dir, 'dicts'))
|
||||
install_dir : join_paths(_dir, 'dicts'),
|
||||
install_mode : 'rw-r--r--'
|
||||
)
|
||||
install_data(['keyboards/Default.kbd',
|
||||
'keyboards/Numbers.kbd',
|
||||
'keyboards/Terminal.kbd',
|
||||
|
@ -59,5 +61,6 @@ if get_option(m) == true
|
|||
'keyboards/spanner.png',
|
||||
'keyboards/tab.png',
|
||||
'keyboards/up.png'],
|
||||
install_dir: join_paths(_dir, 'keyboards'))
|
||||
install_dir : join_paths(_dir, 'keyboards'),
|
||||
install_mode : 'rw-r--r--')
|
||||
endif
|
||||
|
|
Loading…
Reference in New Issue