diff options
author | David Robillard <d@drobilla.net> | 2012-05-02 06:24:22 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-05-02 06:24:22 +0000 |
commit | fe353cce9665b33a7372ed2d1683b3c2748625f7 (patch) | |
tree | 81287558b014309820e9df64033edc0b29d23b4f /wscript | |
parent | 1c736a348c59d98e4022fb02b49a8b4c93baa3d2 (diff) | |
download | ingen-fe353cce9665b33a7372ed2d1683b3c2748625f7.tar.gz ingen-fe353cce9665b33a7372ed2d1683b3c2748625f7.tar.bz2 ingen-fe353cce9665b33a7372ed2d1683b3c2748625f7.zip |
Preliminary socket control interface, and ingen_cmd command line interface which uses it.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4311 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -3,6 +3,7 @@ import os import subprocess import waflib.Options as Options +import waflib.Utils as Utils from waflib.extras import autowaf as autowaf # Version of this package (even if built as a child) @@ -32,6 +33,8 @@ def options(opt): help="Do not build OSC via liblo support, even if liblo exists") opt.add_option('--no-http', action='store_true', default=False, dest='no_http', help="Do not build HTTP via libsoup support, even if libsoup exists") + opt.add_option('--no-socket', action='store_true', default=False, dest='no_socket', + help="Do not build Socket interface") opt.add_option('--log-debug', action='store_true', default=False, dest='log_debug', help="Print debugging output") opt.add_option('--liblo-bundles', action='store_true', default=False, dest='liblo_bundles', @@ -79,6 +82,11 @@ def configure(conf): if not Options.options.no_osc: autowaf.check_pkg(conf, 'liblo', uselib_store='LIBLO', atleast_version='0.25', mandatory=False) + if not Options.options.no_socket: + conf.check_cc(function_name='socket', + header_name='sys/socket.h', + define_name='HAVE_SOCKET', + mandatory=False) if not Options.options.no_jack_session: if conf.is_defined('HAVE_NEW_JACK'): autowaf.define(conf, 'INGEN_JACK_SESSION', 1) @@ -120,6 +128,7 @@ def configure(conf): conf.is_defined('INGEN_JACK_SESSION')) autowaf.display_msg(conf, "OSC", conf.is_defined('HAVE_LIBLO')) autowaf.display_msg(conf, "HTTP", conf.is_defined('HAVE_SOUP')) + autowaf.display_msg(conf, "SOCKET", conf.is_defined('HAVE_SOCKET')) autowaf.display_msg(conf, "LV2", conf.is_defined('HAVE_LILV')) autowaf.display_msg(conf, "GUI", str(conf.env['INGEN_BUILD_GUI'] == 1)) autowaf.display_msg(conf, "LV2 Bundle", conf.env['INGEN_BUNDLE_DIR']) @@ -144,6 +153,7 @@ def build(bld): bld.recurse('src/client') bld.recurse('src/http') bld.recurse('src/osc') + bld.recurse('src/socket') if bld.is_defined('INGEN_BUILD_GUI'): bld.recurse('src/gui') @@ -159,6 +169,7 @@ def build(bld): autowaf.use_lib(bld, obj, 'GTHREAD GLIBMM SORD RAUL LILV INGEN LV2') bld.install_files('${DATADIR}/applications', 'src/ingen/ingen.desktop') + bld.install_files('${BINDIR}', 'scripts/ingen_cmd', chmod=Utils.O755) # Documentation autowaf.build_dox(bld, 'INGEN', INGEN_VERSION, top, out) |