| 1234567891011121314151617181920212223242526 |
- #
- # Copyright (c) 2021, RT-Thread Development Team
- #
- # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
- #
- from building import *
- import re
- Import('rtconfig')
- cwd = GetCurrentDir()
- src = Glob('*.c')
- if rtconfig.ARCH == 'arm':
- if re.match('^cortex-m.*', rtconfig.CPU):
- src += ['arch/invokeNative_thumb.s']
- elif re.match('^cortex-a.*', rtconfig.CPU):
- src += ['arch/invokeNative_arm.s']
- CPPPATH = [cwd, cwd + '/../include']
- group = DefineGroup('iwasm_common', src, depend = [''], CPPPATH = CPPPATH)
- Return('group')
|