add porting codes of rt-thread (#494)
This commit is contained in:
31
core/iwasm/aot/SConscript
Normal file
31
core/iwasm/aot/SConscript
Normal file
@ -0,0 +1,31 @@
|
||||
#
|
||||
# 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 = Split('''
|
||||
aot_loader.c
|
||||
aot_runtime.c
|
||||
''')
|
||||
|
||||
if rtconfig.ARCH == 'arm':
|
||||
if re.match('^cortex-m.*', rtconfig.CPU):
|
||||
src += ['arch/aot_reloc_thumb.c']
|
||||
elif re.match('^cortex-a.*', rtconfig.CPU):
|
||||
src += ['arch/aot_reloc_arm.c']
|
||||
|
||||
|
||||
CPPPATH = [cwd, cwd + '/../include']
|
||||
|
||||
CPPDEFINES = ['WASM_ENABLE_AOT=1']
|
||||
|
||||
group = DefineGroup('iwasm_aot', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)
|
||||
|
||||
Return('group')
|
||||
Reference in New Issue
Block a user