You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
467 B
26 lines
467 B
project(
|
|
'utask',
|
|
['c'],
|
|
default_options: ['optimization=2', 'b_staticpic=false']
|
|
)
|
|
|
|
inc = [include_directories('inc')]
|
|
src = ['src/utask.c']
|
|
|
|
if target_machine.cpu_family() == 'riscv32'
|
|
src += ['src/utask_riscv.S']
|
|
else
|
|
error('CPU family not supported: ' + target_machine.cpu_family())
|
|
endif
|
|
|
|
utask_lib = static_library(
|
|
'utask',
|
|
src,
|
|
include_directories: inc,
|
|
)
|
|
|
|
utask_dep = declare_dependency(
|
|
include_directories: inc,
|
|
link_with: utask_lib,
|
|
)
|