diff options
| author | Bernard Xiong <[email protected]> | 2021-11-24 17:37:25 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-11-24 17:37:25 +0800 |
| commit | f11113f55780a71345bbd0dffda6e3b904fc76da (patch) | |
| tree | 648be97315ceefaa3bf631059dabc0adc00a326e /components/legacy/SConscript | |
| parent | 940566c867c8a2b1047404defcd3fa092ac5506a (diff) | |
| parent | c6c1544c84e5e64da6a4fab8c4a985817b773288 (diff) | |
Merge pull request #5277 from mysterywolf/compatibility
implement legacy support
Diffstat (limited to 'components/legacy/SConscript')
| -rw-r--r-- | components/legacy/SConscript | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/components/legacy/SConscript b/components/legacy/SConscript new file mode 100644 index 0000000000..d3821af7ab --- /dev/null +++ b/components/legacy/SConscript @@ -0,0 +1,22 @@ +from building import * +import os + +src = Split(''' +ipc/workqueue_legacy.c +''') + +cwd = GetCurrentDir() +CPPPATH = [cwd] + +if GetDepend('RT_USING_DFS'): + dfs_cwd = os.path.join(cwd,'dfs') + CPPPATH += [dfs_cwd] + +group = DefineGroup('Legacy', src, depend = ['RT_USING_LEGACY'], CPPPATH = CPPPATH) + +list = os.listdir(cwd) +for item in list: + if os.path.isfile(os.path.join(cwd, item, 'SConscript')): + group = group + SConscript(os.path.join(item, 'SConscript')) + +Return('group') |
