aboutsummaryrefslogtreecommitdiff
path: root/meson.build
AgeCommit message (Collapse)AuthorLines
2020-05-01build: improve feature summarySimon Ser-13/+9
Use the Meson summary() built-in instead of manually formatting a message. wlroots already depends on Meson 0.54.0.
2020-04-04build: make completions respect install prefixesDominique Martinet-2/+8
Tell pkgconfig about prefix and datadir as required in the .pc files, so if the prefix isn't standard nothing is installed outside of it. For fish, this requires https://github.com/fish-shell/fish-shell/pull/6778 Fixes swaywm/swaybg#13
2020-01-22Update version to 1.4Drew DeVault-2/+2
2020-01-22fish-completion: use the correct fallback directoryEli Schwartz-1/+1
fish completions should never be installed to share/fish/completions/ as that directory is reserved exclusively for completions shipped as part of the fish source code. Use the same vendor_completions.d/ directory which the default fish configuration uses.
2020-01-22completion: use pkg-config to get install location for bash/fishEli Schwartz-2/+12
Both shells provide pkg-config files which declare their designated completionsdir. Use this as the primary source of truth.
2020-01-22meson: use join_paths to build paths, instead of string concatEli Schwartz-8/+8
It makes sure to handle paths as paths, and is generally safer and the blessed solution.
2019-12-31Update wlroots versionDrew DeVault-1/+1
2019-12-31_incr_version: always overwrite old version numberDrew DeVault-1/+1
2019-11-29add scale_filter output config optionRonan Pigott-0/+1
2019-11-17Add -Wno-missing-bracesSimon Ser-0/+1
-Wmissing-braces makes it annoying to zero-initialize structs with = {0} when the first field is a struct. See for instance [1]. [1]: https://builds.sr.ht/~sircmpwn/job/110425
2019-10-16build: always use the project versionSimon Ser-5/+9
Don't use the latest tag, always use the project version for the version string. Because of version branches, getting the version from Git can be unreliable. Closes: https://github.com/swaywm/sway/issues/4631
2019-10-12Update version to 1.2Drew DeVault-1/+1
2019-10-08build: bump wlroots version to 0.8.1Simon Ser-1/+1
2019-10-02build: remove rootston from wlroots subprojectTadeo Kondrak-1/+1
Fixes an invalid option warning from Meson.
2019-09-23build: update wlroots version, be more strictSimon Ser-1/+1
wlroots versions are incompatible with each other. Often our users struggle with figuring out that their wlroots version is too old after a new release. Use a more strict version check to prevent building sway with incompatible wlroots versions.
2019-07-27Remove all wayland-server.h includesSimon Ser-1/+0
The documentation for wayland-server.h says: > Use of this header file is discouraged. Prefer including > wayland-server-core.h instead, which does not include the server protocol > header and as such only defines the library PI, excluding the deprecated API > below. Replacing wayland-server.h with wayland-server-core.h allows us to drop the WL_HIDE_DEPRECATED declaration. This commit si similar to wlroots' ca45f4490ccc ("Remove all wayland-server.h includes").
2019-07-15Use -fmacro-prefix-map to strip build pathManuel Stoeckl-2/+38
Because meson does not provide a simple way to get the relative build path, it is computed with a pair of foreach loops. As meson does not have a simple way to compute string length (except via underscorify and 63 split operations), the build script uses a shell command instead. If the compiler does not suppot -fmacro-prefix-map, then fall back to passing in the relative path prefix, and use its length to offset the uses of __FILE__ in log messages so that the build path is at least still not included in the logs. This is significantly more efficient than calling _sway_strip_path.
2019-06-03Bump meson version to 1.1Drew DeVault-1/+1
2019-05-30Add swaybar protocol documentationBrian Ashworth-0/+1
This adds swaybar-protocol.7.scd documenting the swaybar status line protocol including some differences from the i3bar counterpart.
2019-05-03Bump required wlroots version1.1-rc1Drew DeVault-1/+1
2019-04-25swaybg: split into standalone projectDrew DeVault-2/+0
The new upstream is https://github.com/swaywm/swaybg This commit also refactors our use of gdk-pixbuf a bit, since the only remaining reverse dependency is swaybar tray support.
2019-04-25Set the correct version for wlroots dependencybschacht-1/+1
2019-04-13swaybg: add manpageSimon Ser-0/+1
2019-03-10meson: use pkg-config var for scdoc pathemersion-3/+3
2019-03-04meson: update scdoc requirement to >= 1.9.2Brian Ashworth-1/+1
Since scdoc 1.9.1 is bugged, this updates the meson version check to >= 1.9.2 and drops the version requirement from the README. This should make it more obvious to users who have 1.9.1 that they need to update scdoc to be able to compile man pages and hopefully cut down on the duplicate issues
2019-03-01meson: check scdoc versionemersion-2/+3
2019-02-27Merge pull request #3766 from RedSoxFan/sway-ipc-scdocDrew DeVault-0/+1
Add sway-ipc.7.scd to document IPC protocol
2019-02-27Merge pull request #3786 from emersion/wlroots-versionDrew DeVault-1/+3
Set minimum wlroots version
2019-02-27Print Meson featuresemersion-5/+18
2019-02-27Set minimum wlroots versionemersion-1/+3
2019-02-27Add sway-ipc.7.scd to document IPC protocolBrian Ashworth-0/+1
This add `sway-ipc.7.scd` that documents the IPC protocol. This also increased the minimum scdoc version from 1.8.1 to 1.9.0 to allow for table cells to be continued on the following line
2019-02-17Fix Meson subproject boolean default optionsemersion-1/+1
2019-02-16Disable unneeded wlroots subproject featuresemersion-1/+5
2019-02-12Fix --version when building from tarballemersion-5/+6
2019-02-05Set version in project fileMichael Vetter-8/+4
Let's set the version in the meson file instead of declaring it outside. In case git is installed we use the git hash as version. Instead it isn't (like on a clean build system), let's use the version defined in the project.
2019-01-21Merge pull request #3482 from emersion/meson-systemd-versionDrew DeVault-2/+2
meson: set minimum systemd version
2019-01-21Replace wlr_log with sway_logM Stoeckl-0/+2
This commit mostly duplicates the wlr_log functions, although with a sway_* prefix. (This is very similar to PR #2009.) However, the logging function no longer needs to be replaceable, so sway_log_init's second argument is used to set the exit callback for sway_abort. wlr_log_init is still invoked in sway/main.c This commit makes it easier to remove the wlroots dependency for the helper programs swaymsg, swaybg, swaybar, and swaynag.
2019-01-21meson: set minimum systemd versionemersion-2/+2
sd_bus_slot_set_floating has been introduced in systemd 239.
2019-01-18meson: make sure wlroots has been built with xwaylandemersion-2/+15
2019-01-18meson: remove extraneous parenthesesemersion-4/+4
2019-01-18meson: remove rpath optionsemersion-11/+0
2019-01-18meson: remove unused dependenciesemersion-2/+0
2019-01-18meson: add gdk-pixbuf and man-pages optionsemersion-3/+2
2019-01-17Use Meson feature optionsemersion-5/+11
2019-01-16Remove usage of VLAs.Connor E-0/+1
2019-01-13Split swaylock into separate projectDrew DeVault-5/+0
2019-01-12Split swayidle from swayDrew DeVault-4/+0
2018-12-31bash: add completion for swaybarGaƫl PORTAY-0/+1
2018-12-31swaybar: add tray interfaceIan Fan-0/+1
2018-12-25Change mouse buttons to x11 map and libevdev namesBrian Ashworth-0/+1
This modifies the way mouse bindings are parsed. Instead of adding to BTN_LEFT, which results in button numbers that may not be expected, buttons will be parsed in one of the following ways: 1. `button[1-9]` will now map to their x11 equivalents. This is already the case for bar bindings. This adds support for binding to axis events, which was not possible in the previous approach. 2. Anything that starts with `BTN_` will be parsed as an event code name using `libevdev_event_code_from_name`. This allows for any button to be mapped to instead of limiting usage to the ones near BTN_LEFT. This also adds a dependency on libevdev, but since libevdev is already a dependency of libinput, this should be fine. If needed, this option can have dependency guards added. Binding changes: - button1: BTN_LEFT -> BTN_LEFT - button2: BTN_RIGHT -> BTN_MIDDLE - button3: BTN_MIDDLE -> BTN_RIGHT - button4: BTN_SIDE -> SWAY_SCROLL_UP - button5: BTN_EXTRA -> SWAY_SCROLL_DOWN - button6: BTN_FORWARD -> SWAY_SCROLL_LEFT - button7: BTN_BACK -> SWAY_SCROLL_RIGHT - button8: BTN_TASK -> BTN_SIDE - button9: BTN_JOYSTICK -> BTN_EXTRA Since the axis events need to be mapped to an event code, this uses the following mappings to avoid any conflicts: - SWAY_SCROLL_UP: KEY_MAX + 1 - SWAY_SCROLL_DOWN: KEY_MAX + 2 - SWAY_SCROLL_LEFT: KEY_MAX + 3 - SWAY_SCROLL_RIGHT: KEY_MAX + 4