mirror of
https://gitee.com/Vancouver2017/luban-lite.git
synced 2025-12-17 17:48:55 +00:00
25 lines
595 B
Python
25 lines
595 B
Python
|
|
from building import *
|
||
|
|
Import('rtconfig')
|
||
|
|
|
||
|
|
src = []
|
||
|
|
cwd = GetCurrentDir()
|
||
|
|
install = []
|
||
|
|
|
||
|
|
if GetDepend('LPKG_USING_ZIPFS'):
|
||
|
|
src += Glob('src/*.c')
|
||
|
|
if GetDepend('LPKG_ZIPFS_DEMO'):
|
||
|
|
src += Glob('zip_reader_demo.c')
|
||
|
|
src += Glob('zip_fs_demo.c')
|
||
|
|
ins_dst = 'rodata/zipfs_test'
|
||
|
|
ins_src = 'test_zip_files/'
|
||
|
|
install = [(ins_src, ins_dst)]
|
||
|
|
|
||
|
|
# add include path.
|
||
|
|
path = [cwd + '/inc']
|
||
|
|
|
||
|
|
# add src and include to group.
|
||
|
|
group = DefineGroup('zipfs', src, depend = ['LPKG_USING_ZIPFS'], CPPPATH = path,
|
||
|
|
INSTALL = install)
|
||
|
|
|
||
|
|
Return('group')
|