2017-11-27 22:12:31 +08:00
|
|
|
import os
|
|
|
|
|
|
|
|
env = Environment()
|
2022-05-23 01:44:03 +08:00
|
|
|
env.AppendENVPath('PATH', os.environ['PATH'])
|
2017-11-27 22:12:31 +08:00
|
|
|
env['CPPPATH'] = ['libs/parser', 'libs']
|
2023-01-09 10:14:23 +08:00
|
|
|
env['CPPDEFINES'] = ['CURSES_LOC=\\"ncurses.h\\"', 'HAVE_CONFIG_H',
|
|
|
|
'ROOTMENU=\\"Configuration\\"',
|
|
|
|
'CONFIG_=\\"CONFIG_\\"',
|
2017-11-30 20:57:06 +08:00
|
|
|
'KBUILD_NO_NLS',
|
|
|
|
'GPERF_LEN_TYPE=unsigned int']
|
2017-11-27 22:12:31 +08:00
|
|
|
env['LIBS'] = ['ncurses']
|
|
|
|
|
|
|
|
src = Split('''
|
|
|
|
libs/lxdialog/checklist.c
|
|
|
|
libs/lxdialog/inputbox.c
|
|
|
|
libs/lxdialog/menubox.c
|
|
|
|
libs/lxdialog/textbox.c
|
|
|
|
libs/lxdialog/util.c
|
|
|
|
libs/lxdialog/yesno.c
|
|
|
|
|
|
|
|
libs/parser/yconf.c
|
|
|
|
|
|
|
|
frontends/mconf/mconf.c
|
|
|
|
''')
|
|
|
|
|
|
|
|
env.Program('kconfig-mconf', src)
|