aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
AgeCommit message (Collapse)AuthorLines
2017-11-30remove relevant CMakeLists.txtFurkan Sahin-165/+0
2017-11-19Remove wlc dependencyFurkan Sahin-1/+0
2017-11-18Move everything to sway/old/Furkan Sahin-4/+8
2017-10-11Find and link to wlrootsFurkan Sahin-0/+1
2017-11-05Dbus must be at least version 1.10Furkan Sahin-1/+1
Function dbus_message_iter_get_element_count is available since 1.10.
2017-10-27Merge pull request #1436 from dlrobertson/add_asan_buildFurkan Sahin-0/+11
Add Address Sanitized build type
2017-10-27Explicitly setting the version of json-c requiredFurkan Sahin-1/+1
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-26Add Address Sanitized build typeFurkan Sahin-0/+11
- Add -DCMAKE_BUILD_TYPE=ASAN to possible builds
2017-10-24Use add_compile_options instead of interpolationFurkan Sahin-6/+2
Uses CMake's `add_compile_options` directive instead of interpolating `CMAKE_C_FLAGS` for adding compilation flags.
2017-08-09Re-enable implicit fallthrough warningsFurkan Sahin-5/+0
2017-07-20[swaybar] fix non-dbus buildFurkan Sahin-1/+1
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 diagnosticFurkan Sahin-0/+1
It caused unpredictable build failures with different build environments
2017-06-14Install wallpapers in DATADIR/backgrounds/swayFurkan Sahin-1/+1
2017-06-07Implement Tray IconsFurkan Sahin-0/+13
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-05FreeBSD fixesFurkan Sahin-1/+4
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"Furkan Sahin-0/+4
This reverts commit ab73ed698d2e6f73a42e100f1c5576b221868bfa.
2017-05-17Drop epoll dependencyFurkan Sahin-4/+0
2017-04-26Add -DVERSION flag for release version numbersFurkan Sahin-7/+7
2017-04-06Add libcap check to CMakeFurkan Sahin-0/+1
- 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 codebaseFurkan Sahin-11/+0
2017-02-25Make it work for all compilersFurkan Sahin-1/+5
2017-02-25Ignore Wimplicit-fallthroughFurkan Sahin-0/+1
2017-01-16Unset LD_LIBRARY_PATH, unless specifiedFurkan Sahin-2/+4
2016-12-27Fix user-set LD_LIBRARY_PATHFurkan Sahin-1/+1
2016-12-17Use CMAKE_INSTALL_FULL_DATA{,ROOT}DIRFurkan Sahin-2/+2
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-08Fix build on FreeBSDFurkan Sahin-0/+4
- 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 variableFurkan Sahin-2/+2
2016-12-02Drop -Denable-binding-eventFurkan Sahin-4/+0
2016-12-02Deal with LD_LIBRARY_PATHFurkan Sahin-0/+3
2016-07-12Enable using non-annotated tags in git-describeFurkan Sahin-1/+1
This fixes the version string
2016-05-14Set Cairo and Pango as required dependenciesFurkan Sahin-2/+2
2016-05-14Turn off ZSH completions by defaultFurkan Sahin-1/+1
2016-04-29Add -Werror to C flagsFurkan Sahin-0/+1
2016-04-28Respect supplied CMAKE_C_FLAGSFurkan Sahin-1/+1
2016-03-18New default wallpaper!Furkan Sahin-1/+2
2016-01-22cmake: fix libinput include dirsFurkan Sahin-1/+0
2016-01-19Merge pull request #440 from SethBarberee/zsh-completionsFurkan Sahin-1/+4
Basic Zsh auto-completion for --options
2016-01-17added basic zsh shell completion for sway, swaybg, and swaygrabFurkan Sahin-1/+4
2016-01-17libinputFurkan Sahin-0/+3
2016-01-09Make enable-binding-event option have an affect.Furkan Sahin-3/+3
The option was added to late so it was never set in the build.
2016-01-08Make wallpaper optional (cmake flag)Furkan Sahin-5/+8
2016-01-08Make IPC binding event support a compile time opt.Furkan Sahin-0/+4
2016-01-05Fix whitespaces in cmake configFurkan Sahin-35/+35
2015-12-28Add default wallpaperFurkan Sahin-0/+6
Closes #238
2015-12-23Added include(GNUInstallDirs)Furkan Sahin-0/+1
Fixes configuration not properly installed since f8a15a4
2015-12-23Use SYSCONFDIR as recommendedFurkan Sahin-4/+0
- swaylock config path not hardcoded anymore - the unusual and weird FALLBACK_CONFIG_DIR is no more
2015-12-22fix backtrace detection in CMakeFurkan Sahin-2/+2
works on arch (glibc) and void linux (tested with musl libc) now
2015-12-21add -fPIC flag (position independent code) like in wlcFurkan Sahin-0/+1
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 detectionFurkan Sahin-0/+8
2015-12-20make gdk-pixbuf dependency really optionalFurkan Sahin-6/+18