This repository has been archived on 2023-11-05. You can view files and clone it, but cannot push or open issues or pull requests.
wasm-micro-runtime/core/iwasm/aot/SConscript

34 lines
720 B
Python
Raw Normal View History

2021-01-14 11:26:35 +08:00
#
# 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
aot_intrinsic.c
2021-01-14 11:26:35 +08:00
''')
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']
elif rtconfig.ARCH == 'ia32':
src += ['arch/aot_reloc_x86_32.c']
2021-01-14 11:26:35 +08:00
CPPPATH = [cwd, cwd + '/../include']
CPPDEFINES = ['WASM_ENABLE_AOT=1']
group = DefineGroup('iwasm_aot', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)
Return('group')