aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
AgeCommit message (Collapse)Author
2017-11-19Remove wlc dependencyDrew DeVault
2017-11-18Move everything to sway/old/Drew DeVault
2017-11-11Find and link to wlrootsDrew DeVault
2017-11-05Dbus must be at least version 1.10Adam Mizerski
Function dbus_message_iter_get_element_count is available since 1.10.
2017-10-27Merge pull request #1436 from dlrobertson/add_asan_buildDrew DeVault
Add Address Sanitized build type
2017-10-27Explicitly setting the version of json-c requiredMarius Orcsik
to 0.12.1. This is needed because the development version breaks the existing API of json_object_array_length() by moving the return from int to size_t. This would fix #1355
2017-10-27Add Address Sanitized build typeDan Robertson
- Add -DCMAKE_BUILD_TYPE=ASAN to possible builds
2017-10-24Use add_compile_options instead of interpolationRanieri Althoff
Uses CMake's `add_compile_options` directive instead of interpolating `CMAKE_C_FLAGS` for adding compilation flags.
2017-08-09Re-enable implicit fallthrough warningsDrew DeVault
2017-07-20[swaybar] fix non-dbus buildTobias Blass
Swaybar's CMakeLists.txt uses the enable-tray option directly to decide whether to build the tray. This leads to a compilation error if dbus is not installed. This patch uses the ENABLE_TRAY variable instead, which is only true if the user enabled the tray *and* dbus is available.
2017-07-03Disable -Wunused-result diagnosticHummer12007
It caused unpredictable build failures with different build environments
2017-06-14Install wallpapers in DATADIR/backgrounds/swayAndrew Conrad
2017-06-07Implement Tray IconsCalvin Lee
This commit implements the StatusNotifierItem protocol, and enables swaybar to show tray icons. It also uses `xembedsniproxy` in order to communicate with xembed applications. The tray is completely optional, and can be disabled on compile time with the `enable-tray` option. Or on runtime with the bar config option `tray_output none`. Overview of changes: In swaybar very little is changed outside the tray subfolder except that all events are now polled in `event_loop.c`, this creates no functional difference. Six bar configuration options were added, these are detailed in sway-bar(5) The tray subfolder is where all protocol implementation takes place and is organised as follows: tray/sni_watcher.c: This file contains the StatusNotifierWatcher. It keeps track of items and hosts and reports when they come or go. tray/tray.c This file contains the StatusNotifierHost. It keeps track of sway's version of the items and represents the tray itself. tray/sni.c This file contains the StatusNotifierItem struct and all communication with individual items. tray/icon.c This file implements the icon theme protocol. It allows for finding icons by name, rather than by pixmap. tray/dbus.c This file allows for asynchronous DBus communication. See #986 #343
2017-06-06FreeBSD fixesjohalun
Increase _POSIX_SOURCE value where needed. Increase _XOPEN_SOURCE value where needed. Conditionally link to libcap (only on Linux). Possibly some trailing whitespace fixes (automatic).
2017-05-17Revert "Drop epoll dependency"Drew DeVault
This reverts commit 91f2bf81bf89699d43083f3d3a27805ba5e395a9.
2017-05-17Drop epoll dependencyDrew DeVault
2017-04-26Add -DVERSION flag for release version numbersSebastian Noack
2017-04-07Add libcap check to CMakeJerziKaminsky
- Moved ``<sys/capability.h>`` include inside `__linux__` guard, because all uses are similarly guarded. - <sys/capability.h> is part of an optional devel package, at least in fedora. CMake now explicitly checks that libcap devel files are available. - Added libcap to the list of install packages in .travis.yml, to make the dependency explicit. travis-ci installs the package by default, which is why this hasn't surfaced previously.
2017-03-10UnGNUify the codebaseDrew DeVault
2017-02-25Make it work for all compilersFabio Alessandro Locati
2017-02-25Ignore Wimplicit-fallthroughFabio Alessandro Locati
2017-01-16Unset LD_LIBRARY_PATH, unless specifiedMykyta Holubakha
2016-12-27Fix user-set LD_LIBRARY_PATHDrew DeVault
2016-12-17Use CMAKE_INSTALL_FULL_DATA{,ROOT}DIRWouter van Kesteren
Exherbo installs architecture dependent data in a different place than architecture independent data. More concretely: binaries go in /usr/$chost/{bin,lib}, data goes in /usr/share and configs in /etc, /etc is already configurable through CMAKE_INSTALL_FULL_SYSCONFDIR but the datadir was not. This patch fixes it so that things can be pushed in the right places.
2016-12-09Fix build on FreeBSDGreg V
- Make sure CMake always finds absolute paths for Cairo, Pango and GdkPixbuf - Add forgotten json-c include path to swaymsg/CMakeLists.txt - Disable -Werror because of assert warnings - Add correct /proc/pid/file path for FreeBSD - Use libepoll-shim on FreeBSD - Only use Linux capabilities on, well, Linux
2016-12-04Change name of ld-library-path cmake variableDrew DeVault
2016-12-02Drop -Denable-binding-eventDrew DeVault
2016-12-02Deal with LD_LIBRARY_PATHDrew DeVault
2016-07-12Enable using non-annotated tags in git-describeHummer12007
This fixes the version string
2016-05-14Set Cairo and Pango as required dependenciesDrew DeVault
2016-05-14Turn off ZSH completions by defaultDrew DeVault
2016-04-29Add -Werror to C flagsDrew DeVault
2016-04-28Respect supplied CMAKE_C_FLAGSTomáš Čech
2016-03-18New default wallpaper!Drew DeVault
2016-01-22cmake: fix libinput include dirsMikkel Oscar Lyderik
2016-01-19Merge pull request #440 from SethBarberee/zsh-completionsDrew DeVault
Basic Zsh auto-completion for --options
2016-01-19libinputCole Mickens
2016-01-17added basic zsh shell completion for sway, swaybg, and swaygrabSeth Barberee
2016-01-09Make enable-binding-event option have an affect.Mikkel Oscar Lyderik
The option was added to late so it was never set in the build.
2016-01-08Make wallpaper optional (cmake flag)Drew DeVault
2016-01-08Make IPC binding event support a compile time opt.Mikkel Oscar Lyderik
2016-01-05Fix whitespaces in cmake configMikkel Oscar Lyderik
2015-12-28Add default wallpaperDrew DeVault
Closes #238
2015-12-23Added include(GNUInstallDirs)Yacine Hmito
Fixes configuration not properly installed since f02cf75
2015-12-23Use SYSCONFDIR as recommendedYacine Hmito
- swaylock config path not hardcoded anymore - the unusual and weird FALLBACK_CONFIG_DIR is no more
2015-12-22fix backtrace detection in CMakerobotanarchy
works on arch (glibc) and void linux (tested with musl libc) now
2015-12-21add -fPIC flag (position independent code) like in wlcrobotanarchy
Linking fails otherwise: Linking C executable ../bin/sway /usr/bin/ld: CMakeFiles/sway.dir/commands.c.o: relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC CMakeFiles/sway.dir/commands.c.o: error adding symbols: Bad value collect2: error: ld returned 1 exit status sway/CMakeFiles/sway.dir/build.make:442: recipe for target 'bin/sway' failed
2015-12-21use CMake's FindBacktrace for backtrace feature detectionrobotanarchy
2015-12-20make gdk-pixbuf dependency really optionalprogandy
2015-12-20Make some dependencies optionalDrew DeVault
Closes #368