summaryrefslogtreecommitdiffstats
path: root/fluent-bit/lib/wasm-micro-runtime-WAMR-1.2.2/core/iwasm/libraries/libc-wasi/SConscript
blob: 6ed3799e0d1b7051e7b9c3c799bdb404c4769765 (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
29
30
31
32
33
34
#
# Copyright (c) 2021, RT-Thread Development Team
#
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#

from building import *
import os

cwd     = GetCurrentDir()

src = Split('''
''')

CPPPATH = [cwd,
        cwd+'/sandboxed-system-primitives/include',
        cwd+'/sandboxed-system-primitives/src']

def addSrcFiles(arr, path):
    for f in os.listdir(path):
        fpath = os.path.join(path, f);
        if os.path.isfile(fpath):
            ext = os.path.splitext(fpath)[-1]
            if ext == '.c' or ext == '.cpp':
                arr += [fpath]
        elif os.path.isdir(fpath):
            addSrcFiles(arr, fpath)


addSrcFiles(src, cwd)

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

Return('group')