Import('*')

makelexer = env.Program('makelexer', 'lexcode.cpp',
CPPPATH = env.Dictionary()['CPPPATH'] + ['#lexgen'],
LIBPATH = '#lexgen',
LIBS = 'lexgen'
)

env.Command(['HtmlDetectorCore.h', 'HtmlDetectorCore.cpp'], makelexer,
makelexer[0].abspath+' HtmlDetectorCore ${TARGETS[0]} ${TARGETS[1]} '
'HtmlDetectorDefinitions HtmlDetectorDefinitions.h HtmlDetector HtmlDetector.h'
)

env.StaticLibrary('htmldetector', [
'HtmlDetectorCore.cpp', 'HtmlDetector.cpp'
],
CPPPATH = env.Dictionary()['CPPPATH'] + [
    '#main', '#foundation', '#../ACE_wrappers'
]
)
