summaryrefslogtreecommitdiffstats
path: root/fluent-bit/lib/wasm-micro-runtime-WAMR-1.2.2/core/iwasm/common/SConscript
blob: 0a55f244b933d7e58b419faebcf40ae0b9bc85db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#
# 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']
elif rtconfig.ARCH == 'ia32':
    src += ['arch/invokeNative_ia32.s']

CPPPATH = [cwd, cwd + '/../include']

group = DefineGroup('iwasm_common', src, depend = [''], CPPPATH = CPPPATH)

Return('group')