| 1234567891011121314151617181920212223242526272829 |
- #-*- encoding: utf-8 -*-
- #-------------------------------------------------------------------------------
- # SConscript
- # Copyright (c) Shanghai Real-Thread Electronic Technology Co., Ltd.
- #-------------------------------------------------------------------------------
- import os
- from building import *
- Import('RTT_ROOT')
- Import('rtconfig')
- #-------------------------------------------------------------------------------
- # System variables
- #-------------------------------------------------------------------------------
- objs = []
- root = GetCurrentDir()
- #-------------------------------------------------------------------------------
- # Main target
- #-------------------------------------------------------------------------------
- list = os.listdir(root)
- for d in list:
- path = os.path.join(root, d)
- if os.path.isfile(os.path.join(path, 'SConscript')):
- objs = objs + SConscript(os.path.join(d, 'SConscript'))
- Return("objs")
- #-------------------------------------------------------------------------------
- # End
- #-------------------------------------------------------------------------------
|