SConscript 624 B

12345678910111213141516171819202122232425262728
  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':
  12. if re.match('^cortex-m.*', rtconfig.CPU):
  13. src += ['arch/invokeNative_thumb.s']
  14. elif re.match('^cortex-a.*', rtconfig.CPU):
  15. src += ['arch/invokeNative_arm.s']
  16. elif rtconfig.ARCH == 'ia32':
  17. src += ['arch/invokeNative_ia32.s']
  18. CPPPATH = [cwd, cwd + '/../include']
  19. group = DefineGroup('iwasm_common', src, depend = [''], CPPPATH = CPPPATH)
  20. Return('group')