-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
#SConscript 当前状态
import os
from building import *
cwd = GetCurrentDir()
CPPPATH = [
cwd,
os.path.join(cwd, 'isotp-c')
]
sources = Glob('*.c') + Glob('isotp-c/*.c')
group = DefineGroup('isotp-c', sources, depend=[''], CPPPATH=CPPPATH)
if GetDepend('PKG_ISOTP_C_EXAMPLES'):
example_sources = Glob('examples/isotp_examples.c')
example_group = DefineGroup('isotp-c_example', example_sources, depend=[''], CPPPATH=CPPPATH)
group += example_group
Return('group')修改SConscript文件后
#SConscript
from building import *
import os
cwd = GetCurrentDir()
path = [cwd, cwd + 'isotp-c']
CPPPATH = path
src = Glob('*.c') + Glob('isotp-c/*.c')
if GetDepend('PKG_ISOTP_C_EXAMPLES'):
src += Glob('examples/*.c')
group = []
group = group + DefineGroup('isotp-c', src, depend = [''], CPPPATH = CPPPATH)
Return('group')Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels

