From 6923e908e8651d321e15cd2ea198392cb47ec9dc Mon Sep 17 00:00:00 2001 From: a1012112796 <1012112796@qq.com> Date: Mon, 13 Sep 2021 11:08:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20Sharelib=20root=20scons=20?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: a1012112796 <1012112796@qq.com> --- examples/ShareLibRootSconscript | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 examples/ShareLibRootSconscript diff --git a/examples/ShareLibRootSconscript b/examples/ShareLibRootSconscript new file mode 100644 index 0000000..1bef44e --- /dev/null +++ b/examples/ShareLibRootSconscript @@ -0,0 +1,18 @@ +# for package compiling +import os +from building import * + +cwd = GetCurrentDir() +objs = [] +list = os.listdir(cwd) +CPPPATH = [cwd] +Import('SHARE_LIB_HANDLE') + +for d in list: + if SHARE_LIB_HANDLE.is_this_lib(d): + continue + path = os.path.join(cwd, d) + if os.path.isfile(os.path.join(path, 'SConscript')): + objs = objs + SConscript(os.path.join(d, 'SConscript')) + +Return('objs')