kopia lustrzana https://github.com/OpenRTX/OpenRTX
Removed unnecessary build dependencies when project is being configured for linux target
rodzic
dea0ecbf29
commit
073440ef1a
21
meson.build
21
meson.build
|
@ -98,9 +98,14 @@ else
|
||||||
codec2_dep = dependency('codec2')
|
codec2_dep = dependency('codec2')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# tinyusb, An open source cross-platform USB stack for embedded system
|
# tinyusb, open source cross-platform USB stack for embedded system.
|
||||||
tinyusb_proj = subproject('tinyusb')
|
# Subproject included only for embedded targets
|
||||||
tinyusb_dep = tinyusb_proj.get_variable('tinyusb_dep')
|
if meson.is_cross_build()
|
||||||
|
tinyusb_proj = subproject('tinyusb')
|
||||||
|
tinyusb_dep = tinyusb_proj.get_variable('tinyusb_dep')
|
||||||
|
else
|
||||||
|
tinyusb_dep = [ ]
|
||||||
|
endif
|
||||||
|
|
||||||
##
|
##
|
||||||
## RTOS
|
## RTOS
|
||||||
|
@ -111,10 +116,14 @@ rtos_inc = ['lib/miosix-kernel',
|
||||||
'lib/miosix-kernel/arch/cortexM4_stm32f4/M4_openrtx',
|
'lib/miosix-kernel/arch/cortexM4_stm32f4/M4_openrtx',
|
||||||
'lib/miosix-kernel/config/arch/cortexM4_stm32f4/M4_openrtx']
|
'lib/miosix-kernel/config/arch/cortexM4_stm32f4/M4_openrtx']
|
||||||
|
|
||||||
|
|
||||||
src = openrtx_src + main_src + minmea_src
|
src = openrtx_src + main_src + minmea_src
|
||||||
inc = openrtx_inc + rtos_inc + minmea_inc + qdec_inc
|
inc = openrtx_inc + minmea_inc + qdec_inc
|
||||||
def = def + {'DONT_USE_CMSIS_INIT': ''}
|
|
||||||
|
# Include RTOS only for embedded targets
|
||||||
|
if meson.is_cross_build()
|
||||||
|
inc = inc + rtos_inc
|
||||||
|
def = def + {'DONT_USE_CMSIS_INIT': ''}
|
||||||
|
endif
|
||||||
|
|
||||||
## Add git commit or tag to print in OpenRTX
|
## Add git commit or tag to print in OpenRTX
|
||||||
r = run_command('git', 'describe', '--tags', '--dirty')
|
r = run_command('git', 'describe', '--tags', '--dirty')
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <board_settings.h>
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The following enum provides a set of flags to be used to check which buttons
|
* The following enum provides a set of flags to be used to check which buttons
|
||||||
|
|
Ładowanie…
Reference in New Issue