Commit Graph

42 Commits

Author SHA1 Message Date
Nedko Arnaudov b1ec48747c Revert "Solving problems while compiling jack2 on macOS X with dbus support (#434)"
Reduce code bloat by removing support of non-libre operating system

This reverts commit bb3f5cb296.
2023-11-18 16:49:40 +02:00
Nedko Arnaudov 3cc8d25b68 As same uptime() is shared between linux and freebsd, adjust the wscript 2023-11-07 21:16:08 +02:00
Nedko Arnaudov 72b81b8fcb Remove traces of jackaudio/jack2 macos and windows support in jackdbus codebase 2023-11-07 20:46:42 +02:00
Nedko Arnaudov ed167c1fa1 wsript: C++ compiler is not used, drop checks and options 2023-11-07 20:41:38 +02:00
Nedko Arnaudov 994086cfd9 Replace sigsegv.c with siginfo.c and build it only when explicitly enabled
siginfo is disabled by default so building on new CPU
architectures does not require adjusting of siginfo.c anymore.

When needed, --siginfo can be used as option to ./waf configure
to enable the functionality
2023-11-07 02:51:33 +02:00
Nedko Arnaudov a8ec586cba dbus/jack_control: moved to https://gitea.ladish.org/LADI/jack_control
Backup repo: https://github.com/LADI/jack_control

dbus/jack_control is now submodule

jack_control is now always installed as part of jackdbus.
With dedicated repos for jackdbus and jack_control,
there is no point in having jack_control installation conditional.
2023-07-24 02:59:00 +03:00
Nedko Arnaudov 005535b799 Restore display of source sha-1 in jackdbus log
This commit changes build info to display info about jackdbus itself,
along with libjackserver.so provided build info

Fixes https://github.com/LADI/jackdbus/issues/1
2023-04-18 21:43:20 +03:00
Nedko Arnaudov b75e75db77 Adjust my copyleft lines in wscripts
See https://github.com/jackaudio/jack2/pull/319
2022-09-10 16:16:17 +03:00
Karl Linden c4d0565898 License the project clearly
This adds a LICENSE file that describes which licenses this project is
licensed under. This is very important, as the project is licensed under
three licenses.

Also added are copyright notices to the wscript files. I added myself as
copyright holder to them, but there are other people who have
contributed to these files which should have their name in the copyright
header. Clearly stating the license of the wscript files should have
been done long ago.
2022-09-10 16:15:51 +03:00
Nedko Arnaudov b28b97ee1b Cleanup jackdbus 2022-08-27 21:35:48 +03:00
David Runge aa27576236
Fix wscripts syntax (#826)
* Add flake8 configuration

.flake8:
Add flake8 configuration that limits the line length to 120 chars and
outputs to flake8.txt

* Add flake8.txt to gitignore

.gitignore:
Add flake8.txt (flake8 output file) to ignore.

* Syntax fixes and cleanup for top-level wscript

wscript:
Fix syntax of wscript according to pep8 (but do not break long lines).
Remove unused imports and move all module level imports to the top of
the file.
Fix broken build target of IIO driver (source argument to
`create_driver_obj()` supplied an uninitialized variable).
Break lines at 120 chars.

* Fix common/wscript syntax

common/wscript:
Fix syntax problems, unneeded imports and break lines at 120 chars.

* Fix compat/alloca/wscript syntax

compat/alloca/wscript:
Fix compat/alloca/wscript syntax

* Fix compat/wscript syntax

compat/wscript:
Fix compat/wscript syntax

* Fix dbus/wscript syntax

dbus/wscript:
Fix syntax and break lintes at 120 chars.

* Fix example-clients/wscript syntax

example-clients/wscript:
Fix syntax and remove commented code.

* Fix tests/wscript syntax

tests/wscript:
Fix syntax and commented code.

* Fix tools/wscript syntax

tools/wscript:
Fix tools/wscript syntax.

* Add github workflow for linting wscripts

.github/workflows/lint.yml:
Add github workflow for linting wscripts using findutils and flake8.

* Fix project version extraction in CI

.github/workflows/build.yml:
Adapt the project version extraction in CI to the syntax changes in
the top-level wscript.
2022-04-13 18:29:29 +01:00
David Runge 8d7faa5bea Move jack_control to dbus (#831)
* Move jack_control to dbus dir

dbus/jack_control:
The `jack_control` script is dbus specific and not part of the original
jack tools. As the files offered by jack-example-tools are now
optionally not built, the script needs to be made available from a
location, that is not ignored when omitting the build of
jack-example-tools files.

* Move installation of jack_control to dbus integration

dbus/wscript:
Install `jack_control` script if building/installing jackdbus.

tools/wscript:
Remove (unconditional) installation of `jack_control` script.
2022-01-15 15:09:56 +00:00
David Runge 3d6fd78701 Remove use of svnversion_regenerate.sh
dbus/jackdbus.c:
Rely on the `JACK_VERSION` define instead of `SVN_VERSION` (included
from svnversion.h).

dbus/wscript:
Add the `JACK_VERSION` define based on `JACK_VERSION` configuration.

wscript:
Remove all code related to the use of `svnversion.h` and
`svnversion_regenerate.sh`.
2022-01-15 15:09:56 +00:00
Greg V ada406603c dbus: use Linux style uptime on FreeBSD 2022-01-15 15:09:55 +00:00
Goran Mekić 5c667d5282 Add FreeBSD support 2022-01-15 15:09:55 +00:00
falkTX 93619ed0c5 Make sure we use python3 (another patch from Fedora) 2019-10-28 11:38:21 +01:00
shura bb3f5cb296 Solving problems while compiling jack2 on macOS X with dbus support (#434)
* Solving problems while compiling jack2 on macOS X with dbus support

* Using the right function name in uptime error
2019-02-24 18:09:47 +01:00
Karl Linden 630c6145b8
Update to waf 2.0.11
- Migrate pkg-config checks from atleast_version.
- Check ppoll with a fragment, since the function_name argument has been
  removed.
2018-10-06 16:08:54 +02:00
Karl Lindén cf818931e4 explicitly import Logs and Options from waflib 2015-05-02 12:36:31 +02:00
Karl Lindén c412d8384f replace WARNING with ERROR in configure messages 2015-04-08 23:53:54 +02:00
Karl Lindén 8accf6531a add mandatory=False to dbus-1 check so that the custom error message is shown if dbus-1 is missing 2015-04-08 23:51:49 +02:00
Karl Lindén 213f3ba20a drop unnecessary conf.is_defined('HAVE_DBUS_1') since it is the same as conf.check_cfg(package='dbus-1', ...) 2015-04-08 23:48:48 +02:00
Karl Lindén f1c308e434 use pkg-config to find expat and drop explicit HAVE_EXPAT and LIB_EXPAT since they are set by check_cfg 2015-04-08 23:44:14 +02:00
Karl Lindén ca66dd1c90 specify mandatory=False when checking for expat so that the expat error message can be reached if expat is not found 2015-04-08 23:35:07 +02:00
Adrian Knoth 89c359eee0 [wscript] More fixes for -Wl,--as-needed
Reportedly, f28523ff54 was incomplete.
2012-11-07 13:32:46 +01:00
Nedko Arnaudov fcda41cb59 indention fix 2012-02-15 21:40:36 +02:00
Nedko Arnaudov 83f991900d switch from set_options() to options() 2012-02-15 21:39:33 +02:00
Nedko Arnaudov 329d83c92b swtich from uselib/uselib_local to use 2012-02-15 21:36:44 +02:00
Nedko Arnaudov 971b1656d5 switch from bld.new_task_gen() to bld()
jackdbus needs explicit index because device reservation code
is shared with jackd and waf cannot autodetect this.
2012-02-15 21:30:55 +02:00
Adrian Knoth aa7fe34739 wscript: Fix waf error (missing features) in dbus/wscript 2012-02-12 14:15:23 +01:00
Adrian Knoth a534162500 wscript: Fix DBUS service file generation
New waf syntax for a subst build.
2012-02-12 14:15:23 +01:00
Adrian Knoth 58036bc80f Run 2to3 on all wscript files.
Automatically upgrading to python3 syntax, where possible.
2012-02-09 18:13:53 +01:00
Nedko Arnaudov 94eea6f4dd jackdbus: SessionManager interface 2011-07-21 00:35:21 +03:00
nedko 46017940a4 jackdbus: fix link issues
similar to db4b99b5b6
got broken by f94bf7174d

For example jack_error was not linked properly:

jackdbus.c:(.text+0x36): undefined reference to `jack_error'

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4389 0c269be4-1314-0410-8aa9-9f06e86f4224
2011-05-13 00:28:39 +00:00
nedko 343a0e8069 jackdbus: params store
This changeset removes code duplication that was caused by lack of
unified access to parameters in the control API. Adding new virtual
parameters should be much easier now.

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4315 0c269be4-1314-0410-8aa9-9f06e86f4224
2011-04-17 18:18:32 +00:00
nedko 4b9b621a31 jackdbus: remove the libxml backend
It was be problematic in past (FFADO uses libxml as well).
Most systems will have both libxml and expat.
Maintaining two backends is waste of effort.
If needed, the libxml backend can be resurrected.

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4314 0c269be4-1314-0410-8aa9-9f06e86f4224
2011-04-17 14:08:35 +00:00
nedko ddc96f38f0 Fix jackdbus dependencies handling
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3865 0c269be4-1314-0410-8aa9-9f06e86f4224
2009-12-28 13:23:14 +00:00
sletz 5bd0d7711f Fix wscripts when --libdir is used.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3593 0c269be4-1314-0410-8aa9-9f06e86f4224
2009-07-10 10:17:34 +00:00
nedko 3aa9b525c3 Move dbus device reservation code to jackdbus
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3579 0c269be4-1314-0410-8aa9-9f06e86f4224
2009-07-07 17:18:11 +00:00
nedko b8f5e3e74f Fix dbus detection and svnversion.h [re]generation
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3077 0c269be4-1314-0410-8aa9-9f06e86f4224
2008-11-14 01:07:55 +00:00
nedko 3383f36952 Import waf.diff patch sent Stephane Letz
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3075 0c269be4-1314-0410-8aa9-9f06e86f4224
2008-11-14 01:07:46 +00:00
sletz 3e01068967 Merge Michael Voigt drops branch after reorganization step.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@2880 0c269be4-1314-0410-8aa9-9f06e86f4224
2008-09-05 13:36:28 +00:00