SConscript 566 B

1234567891011121314151617181920212223
  1. #
  2. # Copyright (c) 2021, RT-Thread Development Team
  3. #
  4. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  5. #
  6. # for module compiling
  7. import os
  8. from building import *
  9. objs = []
  10. cwd = GetCurrentDir()
  11. list = os.listdir(cwd)
  12. if GetDepend(['PKG_USING_WAMR']):
  13. wamr_entry_sconscript = os.path.join(cwd, "product-mini", "platforms", "rt-thread", 'SConscript')
  14. wamr_runlib_sconscript = os.path.join(cwd, "build-scripts", 'SConscript')
  15. objs = objs + SConscript(wamr_entry_sconscript)
  16. objs = objs + SConscript(wamr_runlib_sconscript)
  17. Return('objs')