Commit Graph

81 Commits

Author SHA1 Message Date
67835c9fb2 refactor(cmake): Add to net-src in modules CMakeLists. 2018-09-20 15:50:53 -05:00
cd8b5be4c0 refactor(cmake): Add CMAKE_DL_LIBS to required lib list. 2018-09-20 15:50:53 -05:00
ce6ac7869e refactor(cmake): Use a source list instead of static libs 2018-09-20 15:50:52 -05:00
7b042a6466 feat(cmake): Add MODULE library type to make_library. 2018-09-20 15:50:51 -05:00
61dba1b2dc refactor(modules): Use self-registration for modules. 2018-09-20 15:50:51 -05:00
9bccdee394 feat(cmake): add INTERNAL type for make_library
This will allow us to make internal static libraries that can be shared
across components that are not targets for installation.
2018-09-20 15:50:51 -05:00
b31226ffcc refactor(cmake): Break out adapters into static libs
Each adapter now links against the shared libraries it requires, and the
polybar executable inherits these through linking to them via
TARGET_DEPS.
2018-09-20 15:50:51 -05:00
a881d49d9d doc(net): Indicate the wireless library used
This helps us to more easily debug network issues because before it
wasn't clear if a user had built polybar with the libnl or libiw
adapter
2018-09-18 15:29:05 -07:00
b632e7da38 fix(cmake): Use name of found font (#1350)
Before queryfont would never change the name of the font, this ensure that it is propery updated in the caller's scope
2018-08-07 17:04:42 +02:00
3afc341c7b feat(net): Add nl80211 support (#1009)
This patch enables support for nl80211. In case the libnl-genl-3.0
library isn't found, it will fall back to Wext instead.
The library to use can also be manually set with the CMake option
WITH_LIBNL.

The Wireless-Extensions (WE or Wext) are deprecated and long replaced
by cfg80211.

Although Wext isn't used by WiFi drivers anymore, CFG80211_WEXT allows
old tools to communicate with modern drivers by providing a wrapper
API.
2018-06-18 20:16:09 -07:00
6157c697bc refactor(build): List xkeyboard in cmake and polybar -v 2018-06-18 11:49:31 +02:00
f7a6e5ba98 refactor(build): Build wihtout xkb
The only reason polybar couldn't build without xkb is because the
xkeyboard module's source file was not removed during compilation.
xkeyboard already has an entry in unsupported.hpp

This effectively makes xcb-util-xkb optional
2018-06-18 11:49:31 +02:00
b5129ae0c4 refactor(ccache): Enable by default
Following [1] to get to this setup.

We setup all the ccache configuration before calling project() because
project will perform compiler checks. This is also why we can't use
message_colored here and print the colors manually

Before ENABLE_CCACHE was not yet defined when we reached the check in
01-core because the option was defined in 02-opts

[1] https://crascit.com/2016/04/09/using-ccache-with-cmake/
2018-06-01 10:49:00 -07:00
72948dbc97 fix(clang): Search for files in right places
Before, because of [ -d "$search" ] || search="$(dirname "$search")",
clang-format.sh would search for files to format in the whole repo
(even in the build directory and the submodules)

This now also looks for source files in the tests folder

I have removed the clang-format from clang-tidy.sh because one may want
to run clang-tidy without reformatting
2018-05-20 16:37:18 -07:00
be2d05a4bc cmake: Print module versions in summary
Makes helping with build issues easier as we readily see what versions
are being used.
Cmake already prints the version but only when run the first time and
not on subsequent calls, so the information is often lost
2018-04-10 22:22:22 -07:00
55331d17f7 fix(FreeBSD): Use libraries from LOCALBASE (#1111)
Ensures proper linking when not building a port
2018-03-22 00:03:47 +01:00
0f34178104 Add FreeBSD Support (#931) 2018-03-21 23:35:10 +01:00
f2bc6d1844 logger: Enable trace logging by default
Often we may need information from the user that is only available if
-l trace is used which requires most users to recompile polybar in debug
mode.
2018-02-27 00:19:29 -08:00
6e8b9dea29 fix(pulseaudio): Move pulseaudio to separate module 2018-01-20 12:37:41 -08:00
9b0ff59b56 fix(build): Check for pulseaudio binary 2018-01-20 12:37:41 -08:00
81913cf181 wip(pulseaudio): create pulseaudio backend 2018-01-20 12:37:41 -08:00
1dc111c0fa fix: make xcb-cursor optional for now 2017-09-16 15:31:24 -07:00
65edba3321 feat: add cursor change 2017-09-16 15:31:24 -07:00
299f1617d3 fix(cmake): Suppress -Wnoexcept-type warning on GCC
There is no way to avoid this error in the code itself, so we must
suppress this warning if we wish to keep -Werror.
2017-08-30 15:27:05 +02:00
2d1e3c215f Add textual indicator for module support
If color output was surpressed, there was no way to tell in the cmake
summary, if a module is actually enabled or not.
Now each module is prefixed with either a "[X]" to indicate it's enabled
or a "[ ]" to indicate it's not
2017-07-14 10:14:13 +02:00
b23ff17dde Disable -Werror for parentheses-equality warning
This warning fires here:

/home/travis/build/jaagr/polybar/src/utils/command.cpp:135:46: error: equality comparison with extraneous parentheses [-Werror,-Wparentheses-equality]
    } else if ((((*(int *) &(m_forkstatus))) == 0xffff)) {
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~

and as this system macro cannot be changed, let's not turn this into an error
2017-07-05 17:17:58 +02:00
c2629fb77a Fix typo 2017-02-26 23:22:00 +01:00
82dc7c895e install_manifest has a .txt extension 2017-02-25 11:01:19 +03:30
41f7f82bd0 fix(cmake): Debug check 2017-01-27 13:30:23 +01:00
2912f0f3f2 fix(cmake): Require xcb-randr>=1.12 for monitors
Refs #344
2017-01-27 00:35:00 +01:00
43a17c3b36 refactor(cmake): Cleanup 2017-01-26 17:39:50 +01:00
b97e4c56c5 fix(cmake): Properly check xcb-xrm
The default value of WITH_XRM was never calculated because
the "IF NOT DEFINED" check was done after the call to option()

Refs #381
2017-01-26 12:59:13 +01:00
37d0a0e57b refactor(cmake): Cleanup 2017-01-25 23:28:25 +01:00
8fa879c8d8 fix(cmake): Require xcb-proto>=1.12 for monitor support
Refs #344
2017-01-25 20:16:04 +01:00
017abee679 fix(cmake): Require randproto>=1.5 for monitor support
Refs #344
2017-01-25 17:36:40 +01:00
8147e2a511 fix(cmake): Font not found message 2017-01-24 13:02:55 +01:00
6692b4a8da refactor(x11): Cleanup 2017-01-24 10:49:14 +01:00
5e1886a312 wip(refactor): Cairo drawing 2017-01-24 07:11:14 +01:00
20b196f5e0 fix(cmake): Typo 2017-01-20 03:32:44 +01:00
e1483c3f65 refactor(xresources): Use xcb-util-xrm
Drop the Xlib version and handle X resource
lookups using xcb-util-xrm

Refs #356
2017-01-20 02:26:01 +01:00
e20150e6ca feat(cmake): Query fonts 2017-01-14 00:05:54 +01:00
989e4c3039 cmake: MinSizeRel flags 2017-01-13 13:17:11 +01:00
6fb48c8e6f feat(build): Add flag for drawing visible whitespace 2017-01-13 11:04:43 +01:00
081578b168 fix(cmake): Require XRandR 1.5+ for monitor support
Refs #280
2017-01-13 04:13:46 +01:00
506ac3e4ac fix(xrandr): Enable monitor support by default
Refs #280
2017-01-13 04:02:27 +01:00
385572ec64 feat(xrandr): Support for monitors
Refs #280
2017-01-13 03:52:57 +01:00
79856d7ed2 feat(ipc): Add polybar-msg to facilitate ipc messaging 2017-01-10 02:09:33 +01:00
e062170b1f fix(cmake): Use new config path 2016-12-26 17:07:02 +01:00
92424f0d49 refactor(cmake): Install components 2016-12-23 18:10:19 +01:00
5c561e3d77 fix(cmake): Use RelWithDebInfo as default build type 2016-12-23 16:58:05 +01:00