Import('env', 'testPythonsGtk')
env = env.Clone(
    commondir=env.subst('$commondir'),
    wrapperdir=env.subst('$wrapperdir'),
    )

Default(env.Template('SamplerConfig.py.in', varlist=['VERSION']))
pythons = [
    'AppConfig.py',
    'Launcher.py',
    'Main2.py',
    'Outcome.py',
    'ReportsReader.py',
    'SampledLauncher.py',
    'SamplerConfig.py',
    'ServerMessage.py',
    'UnsampledLauncher.py',
    'Uploader.py',
    'Upload.py',
    ]

compiled = env.PythonBytecodeOpt(pythons)
Default(compiled)

testPythonsGtk(env, pythons)
Alias('test', env.TestXML('wrapper.ui', schema=File('../gtk-builder.xsd')))

Alias('install', env.Install('$DESTDIR$wrapperdir', [compiled, 'wrapper.ui']))
