kopia lustrzana https://github.com/OpenRTX/OpenRTX
Fix meson setup for windows
cp does not exist on windows but xcopy does.pull/231/head
rodzic
dbe7ff4700
commit
7b48d2bc28
13
meson.build
13
meson.build
|
@ -707,6 +707,8 @@ foreach t : targets
|
|||
# ttwrplus is a Zephyr target, we compile it using west and package it in uf2 format
|
||||
if name == 'openrtx_ttwrplus'
|
||||
|
||||
if build_machine.system() == 'linux'
|
||||
|
||||
txt = custom_target('Copy CMakeLists.txt',
|
||||
input : 'CMakeLists.txt',
|
||||
output : 'CMakeLists.txt',
|
||||
|
@ -714,6 +716,17 @@ foreach t : targets
|
|||
install : false,
|
||||
build_by_default : true)
|
||||
|
||||
elif build_machine.system() == 'windows'
|
||||
|
||||
txt = custom_target('Copy CMakeLists.txt',
|
||||
input : 'CMakeLists.txt',
|
||||
output : 'CMakeLists.txt',
|
||||
command : ['xcopy', '@INPUT@', '@OUTPUT@'],
|
||||
install : false,
|
||||
build_by_default : true)
|
||||
endif
|
||||
|
||||
|
||||
bin = custom_target(name,
|
||||
input : txt,
|
||||
output : name+'_bin',
|
||||
|
|
Ładowanie…
Reference in New Issue