SConscript 516 B

12345678910111213141516171819202122232425
  1. #
  2. # Copyright (c) 2021, RT-Thread Development Team
  3. #
  4. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  5. #
  6. from building import *
  7. import re
  8. Import('rtconfig')
  9. cwd = GetCurrentDir()
  10. src = Glob('*.c')
  11. if rtconfig.ARCH == 'arm' and re.match('^cortex-m.*', rtconfig.CPU):
  12. src += ['arch/invokeNative_thumb.s']
  13. else:
  14. src.append(f"arch/invokeNative_{rtconfig.ARCH}.s")
  15. CPPPATH = [cwd, cwd + '/../include']
  16. group = DefineGroup('iwasm_common', src, depend = [''], CPPPATH = CPPPATH)
  17. Return('group')