2005-09-25 19:13:14 -04:00
|
|
|
# -*- python -*-
|
|
|
|
|
2005-05-13 16:47:18 -04:00
|
|
|
import glob
|
|
|
|
import os
|
|
|
|
|
|
|
|
sigc2_files = glob.glob('sigc++/*.cc') + glob.glob('sigc++/functors/*.cc') + glob.glob('sigc++/adaptors/lambda/*.cc')
|
|
|
|
|
|
|
|
Import('env')
|
|
|
|
sigc2 = env.Copy()
|
|
|
|
|
|
|
|
sigc2_configure_script = sigc2.Command ('configure', 'configure.ac', 'cd libs/sigc++2; ./autogen.sh; cd -', ENV=os.environ)
|
|
|
|
sigc2_config_h = sigc2.Command('sigc++config.h', [sigc2_configure_script, 'sigc++config.h.in'], 'cd libs/sigc++2; ./configure; cd -', ENV=os.environ)
|
|
|
|
|
|
|
|
libsigc2 = sigc2.StaticLibrary('sigc++2', sigc2_files)
|
|
|
|
Default([sigc2_config_h, libsigc2])
|