2021-01-14 03:26:35 +00:00
|
|
|
#
|
|
|
|
# Copyright (c) 2021, RT-Thread Development Team
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
|
|
#
|
|
|
|
|
|
|
|
# for module compiling
|
|
|
|
import os
|
|
|
|
|
|
|
|
from building import *
|
|
|
|
|
|
|
|
objs = []
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
list = os.listdir(cwd)
|
|
|
|
|
|
|
|
if GetDepend(['PKG_USING_WAMR']):
|
2021-09-07 02:20:14 +00:00
|
|
|
wamr_entry_sconscript = os.path.join(cwd, "product-mini", "platforms", "rt-thread", 'SConscript')
|
|
|
|
wamr_runlib_sconscript = os.path.join(cwd, "build-scripts", 'SConscript')
|
2021-01-14 03:26:35 +00:00
|
|
|
|
2021-09-07 02:20:14 +00:00
|
|
|
objs = objs + SConscript(wamr_entry_sconscript)
|
|
|
|
objs = objs + SConscript(wamr_runlib_sconscript)
|
2021-01-14 03:26:35 +00:00
|
|
|
|
|
|
|
Return('objs')
|