kopia lustrzana https://github.com/OpenRTX/OpenRTX
Include the correct graphics implementation
Now meson chooses the correct graphics implementation according to the selected keyword in the defines array.replace/4e08ed1f2111022a26098775c2d0b517502aeace
rodzic
1ee4744cb7
commit
d8c81dcabb
|
@ -142,13 +142,18 @@ linux_src = src + ['platform/targets/linux/emulator/emulator.c',
|
|||
'platform/mcu/x86_64/drivers/delays.c',
|
||||
'platform/mcu/x86_64/drivers/rtc.c',
|
||||
'platform/targets/linux/platform.c',
|
||||
'openrtx/src/graphics/graphics_rgb565.c',
|
||||
'rtos/uC-OS3/Ports/POSIX/os_cpu_c.c',
|
||||
'rtos/uC-CPU/Posix/cpu_c.c']
|
||||
|
||||
|
||||
linux_def = def + {'SCREEN_WIDTH': '160', 'SCREEN_HEIGHT': '128', 'PIX_FMT_RGB565': ''}
|
||||
|
||||
if 'PIX_FMT_RGB565' in linux_def
|
||||
linux_src = linux_src + ['openrtx/src/graphics/graphics_rgb565.c']
|
||||
elif 'PIX_FMT_BW' in linux_def
|
||||
linux_src = linux_src + ['openrtx/src/graphics/graphics_bw.c']
|
||||
endif
|
||||
|
||||
linux_inc = inc + ['rtos/uC-OS3/Ports/POSIX',
|
||||
'rtos/uC-CPU/Posix',
|
||||
'platform/targets/linux',
|
||||
|
|
Ładowanie…
Reference in New Issue