aboutsummaryrefslogtreecommitdiff
path: root/meson.build
AgeCommit message (Collapse)AuthorLines
2019-02-27Set minimum wlroots versionFurkan Sahin-1/+3
2019-02-27Add sway-ipc.7.scd to document IPC protocolFurkan Sahin-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 optionsFurkan Sahin-1/+1
2019-02-16Disable unneeded wlroots subproject featuresFurkan Sahin-1/+5
2019-02-12Fix --version when building from tarballFurkan Sahin-5/+6
2019-02-05Set version in project fileFurkan Sahin-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-versionFurkan Sahin-2/+2
meson: set minimum systemd version
2019-01-21meson: set minimum systemd versionFurkan Sahin-2/+2
sd_bus_slot_set_floating has been introduced in systemd 239.
2019-01-20Replace wlr_log with sway_logFurkan Sahin-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-18meson: make sure wlroots has been built with xwaylandFurkan Sahin-2/+15
2019-01-18meson: remove extraneous parenthesesFurkan Sahin-4/+4
2019-01-18meson: remove rpath optionsFurkan Sahin-11/+0
2019-01-18meson: remove unused dependenciesFurkan Sahin-2/+0
2019-01-18meson: add gdk-pixbuf and man-pages optionsFurkan Sahin-3/+2
2019-01-17Use Meson feature optionsFurkan Sahin-5/+11
2019-01-16Remove usage of VLAs.Furkan Sahin-0/+1
2019-01-13Split swaylock into separate projectFurkan Sahin-5/+0
2019-01-12Split swayidle from swayFurkan Sahin-4/+0
2018-12-31bash: add completion for swaybarFurkan Sahin-0/+1
2018-10-28swaybar: add tray interfaceFurkan Sahin-0/+1
2018-12-23Change mouse buttons to x11 map and libevdev namesFurkan Sahin-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
2018-12-01meson.build: remove obsolete definition of swayidle_depsFurkan Sahin-2/+0
2018-11-23Meson: Fix SYSCONFDIR definition.Furkan Sahin-15/+2
SYSCONFDIR was set to the wrong path if prefix is not '/usr' and sysconfdir is an absolute path. Use join_paths() to fix it. Also remove the special case for prefix '/usr'. In that case Meson already sets sysconfdir to the absolute path '/etc', so just using join_paths() will return the correct value. join_paths('/usr/local', 'etc') => '/usr/local/etc' join_paths('/usr/local', '/etc') => '/etc' join_paths('/usr', '/etc') => '/etc'
2018-11-18Use #if instead of #ifdefFurkan Sahin-18/+6
2018-11-12Use #if instead of #ifdef for WLR_HAS_*Furkan Sahin-5/+11
2018-10-27added fish completions for swaynagFurkan Sahin-0/+1
2018-10-27added fish completions for swayidleFurkan Sahin-0/+1
2018-10-17Set sysconfdir to /etc only if prefix is /usrFurkan Sahin-2/+15
PR #2855 basically hardcodes the config file path to /etc, which is a problem on e.g. FreeBSD, where the expected path for config files of non-base software is '/usr/local/etc'. Meson sets sysconfdir to '/etc' explicitly only when prefix is '/usr', so it is still possible to use '/usr/local' as prefix, and install the config files under '/usr/local/etc'. This commit allows to do that by setting sysconfdir based on the value of prefix.
2018-10-16Set SYSCONFDIR to /etc even when "prefix" is setFurkan Sahin-1/+1
SYSCONFDIR should be "/etc" even when prefix="/usr" to be FHS compliant. This is the default in meson from v0.44.
2018-10-16Revert "Fix SYSCONFDIR to include "prefix""Furkan Sahin-1/+1
This reverts commit f0d30b0370d47d7fb08770b28c801f7379bd7466. SYSCONFDIR should be "/etc" even when prefix="/usr" to be FHS compliant. This is the default in meson from v0.44.
2018-10-14Establish sway-output(5)Furkan Sahin-0/+1
2018-10-06Fix swaylock w/shadow on glibc, improve securityFurkan Sahin-0/+1
Today I learned that GNU flaunts the POSIX standard in yet another creative way. Additionally, this adds some security improvements, namely: - Zeroing out password buffers in the privileged child process - setuid/setgid after reading /etc/shadow
2018-09-30Add support for installing binaries with DT_RPATHFurkan Sahin-1/+10
It's better to use DT_RPATH dynamic section of the elf binary to store the paths of libraries to load instead of overwriting LD_LIBRARY_PATH for the whole environment, causing surprises. This solution is much more transparent and perfectly suitable for running contained installations of wayland/wlroots/sway. The code unsetting the LD_LIBRARY_PATH/LD_PRELOAD was also deleted as it's a placebo security at best - we should trust the execution path that leads us to running sway, and it's way too late to care about those variables since we already started executing our compositor, thus we would be compromised anyway.
2018-09-29Remove libcap/prctl artifactsFurkan Sahin-1/+0
They seem like relics of the pasts, from when we were retaining the ptrace cap. Some translations still may need updates.
2018-09-28Add support for building swaylock without PAMFurkan Sahin-4/+6
This involves setuid'ing swaylock, which then forks and drops perms on the parent process. The child process remains root and listens on a pipe for requests to validate passwords against /etc/shadow.
2018-09-26Add _C11_SOURCE feature test macro on FreeBSDFurkan Sahin-0/+4
This will restrict the default namespace set on FreeBSD to the C11 standard (everything is visible by default), which will prevent possible conflicts with symbols hidden behing __BSD_VISIBLE.
2018-09-20Make libpam optionalFurkan Sahin-2/+5
2018-09-03Merge remote-tracking branch 'upstream/master' into fix-freebsd-buildFurkan Sahin-5/+7
2018-09-02Add ld-library-path meson optionFurkan Sahin-0/+2
2018-09-02Use dashes in meson option namesFurkan Sahin-5/+5
2018-08-30Fix SYSCONFDIR to include "prefix"Furkan Sahin-1/+1
SYSCONFDIR is used to determine the path of the default configuration file. 'sysconfdir' is set to 'prefix/sysconfdir' later (on line 139), so configuration files are installed under 'prefix', but SYSCONFDIR did not reflect it.
2018-08-30Make libcap an optional dependencyFurkan Sahin-1/+1
FreeBSD does not have libcap, so without "required: false" Sway fails to build.
2018-08-27Hide deprecated wayland functionsFurkan Sahin-0/+1
2018-08-26added fish to meson.buildFurkan Sahin-0/+11
2018-08-02Merge branch 'master' into nagbarFurkan Sahin-1/+1
2018-08-02Link xcb dependency to meson options "enable_xwayland" (#2393)Furkan Sahin-1/+1
* Link xcb dependency to meson options "enable_xwayland" * Link xcb dependency to meson options "enable_xwayland"
2018-07-30Merge pull request #2387 from 1ace/feature/bash-completionFurkan Sahin-0/+12
bash completion
2018-07-30delete references to swaygrabFurkan Sahin-1/+0
2018-07-29Enable unstable wlroots featuresFurkan Sahin-0/+1
2018-07-28swaynag: implement config file supportFurkan Sahin-0/+1