build: Move building of squeekboard-test-layout to tools
This commit is contained in:
@ -40,6 +40,7 @@ else
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
prefix = get_option('prefix')
|
prefix = get_option('prefix')
|
||||||
|
bindir = join_paths(prefix, get_option('bindir'))
|
||||||
datadir = join_paths(prefix, get_option('datadir'))
|
datadir = join_paths(prefix, get_option('datadir'))
|
||||||
pkgdatadir = join_paths(datadir, meson.project_name())
|
pkgdatadir = join_paths(datadir, meson.project_name())
|
||||||
if get_option('depdatadir') == ''
|
if get_option('depdatadir') == ''
|
||||||
@ -67,4 +68,5 @@ subdir('data')
|
|||||||
subdir('protocols')
|
subdir('protocols')
|
||||||
subdir('eek')
|
subdir('eek')
|
||||||
subdir('src')
|
subdir('src')
|
||||||
|
subdir('tools')
|
||||||
subdir('tests')
|
subdir('tests')
|
||||||
|
|||||||
@ -112,16 +112,3 @@ squeekboard = executable('squeekboard',
|
|||||||
'-DEEK_COMPILATION=1'],
|
'-DEEK_COMPILATION=1'],
|
||||||
)
|
)
|
||||||
|
|
||||||
bindir = join_paths(prefix, get_option('bindir'))
|
|
||||||
|
|
||||||
test_layout = custom_target('squeekboard-test-layout',
|
|
||||||
build_by_default: true,
|
|
||||||
# meson doesn't track all inputs, cargo does
|
|
||||||
build_always_stale: true,
|
|
||||||
output: ['squeekboard-test-layout'],
|
|
||||||
console: true,
|
|
||||||
command: [cargo_build] + cargo_build_flags
|
|
||||||
+ ['--rename', 'test_layout', '@OUTPUT@', '--bin', 'test_layout'],
|
|
||||||
install: true,
|
|
||||||
install_dir: bindir,
|
|
||||||
)
|
|
||||||
|
|||||||
11
tools/meson.build
Normal file
11
tools/meson.build
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
test_layout = custom_target('squeekboard-test-layout',
|
||||||
|
build_by_default: true,
|
||||||
|
# meson doesn't track all inputs, cargo does
|
||||||
|
build_always_stale: true,
|
||||||
|
output: ['squeekboard-test-layout'],
|
||||||
|
console: true,
|
||||||
|
command: [cargo_build] + cargo_build_flags
|
||||||
|
+ ['--rename', 'test_layout', '@OUTPUT@', '--bin', 'test_layout'],
|
||||||
|
install: true,
|
||||||
|
install_dir: bindir,
|
||||||
|
)
|
||||||
Reference in New Issue
Block a user