|
- #!/usr/bin/env python
- import subprocess
- import waflib.Options as Options
- import string
- import os
-
- # Version of this package (even if built as a child)
- PACKAGE_VERSION = '1.2.0'
-
- # Variables for 'waf dist'
- APPNAME = 'non-session-manager'
- VERSION = PACKAGE_VERSION
-
- # Mandatory variables
- top = '.'
- out = 'build'
-
- def options(opt):
- opt.load('compiler_c')
- opt.load('compiler_cxx')
- opt.load('gnu_dirs')
-
- def configure(conf):
- conf.load('compiler_c')
- conf.load('compiler_cxx')
- conf.load('gnu_dirs')
-
- conf.define('VERSION', PACKAGE_VERSION)
-
- conf.write_config_header('config.h', remove=False)
-
- print('')
-
- def build(bld):
-
- libs = ''
-
- bld.program( source = '''
- src/nsmd.cpp
- ''',
- target = 'nsmd',
- includes = ['.', 'src', '../nonlib'],
- uselib = [ 'LIBLO' ],
- use = [ 'nonlib'],
- install_path = '${BINDIR}')
-
- bld.program( source = '''
- src/jackpatch.c
- ''',
- target = 'jackpatch',
- includes = ['.', 'src'],
- uselib = [ 'LIBLO', 'JACK' ],
- install_path = '${BINDIR}')
-
-
|