patrick96
3f9ce4bb99
tests: Only configure tests when asked for
...
This prevents the download of googletest for normal builds. Now when we
want to compile and run tests we need to specify -DBUILD_TESTS=ON
2018-04-10 00:56:51 +02:00
patrick96
c865add821
refactor(tests): Migrate to googletest
...
googletest (gtest) is more feature rich than the current implementation
which only provides expect() which is basically an assertion. It is also
quite intuitive to use, this can be seen in the rewrite of the
command_line test where EXPECT_THROW replaces a whole try-catch block.
I have also moved the source files the test depend on to be linked in
CMakeLists.txt instead of including them directly because include .cpp
files is bad.
The two x11 tests were removed because they were written two years ago
and a lot of the things they depend on, don't actually exist anymore in
polybar (I think we switched to xpp after those tests were written)
Tests are now compiled with the gcov lib which can be used to provide
test coverage in a second step
2018-04-10 00:56:51 +02:00
Olmo Kramer
3f5141bf22
bash completion
2017-05-19 17:02:47 +02:00
Michael Carlberg
43a17c3b36
refactor(cmake): Cleanup
2017-01-26 17:39:50 +01:00
Michael Carlberg
37d0a0e57b
refactor(cmake): Cleanup
2017-01-25 23:28:25 +01:00
Michael Carlberg
92424f0d49
refactor(cmake): Install components
2016-12-23 18:10:19 +01:00
Michael Carlberg
fd57ab0f3d
fix: project rename
2016-11-19 06:26:07 +01:00
Michael Carlberg
e7cb345cec
wip: Separate source from definitions
2016-11-03 12:54:32 +01:00
Michael Carlberg
f2233cee2d
fix(cmake): Require working C compiler
...
Closes jaagr/lemonbuddy#129
2016-10-28 11:54:00 +02:00
Michael Carlberg
91a9bb6d95
refactor(tray): Better support for conflicting managers
...
Listen for destroy event on the new manager window when
systray selection is lost. If the window gets destroyed
we can re-activate the manager.
2016-10-25 22:59:02 +02:00
Michael Carlberg
eac65cdabb
fix(cmake): Make specific c++lib linking optional
...
- Do not enforce linking against libc++
- Fix various linter warnings
2016-10-25 20:47:53 +02:00
Michael Carlberg
f03bca6df3
fix(cmake): Add libc++ linker flag
2016-10-25 09:22:28 +02:00
Michael Carlberg
9e22b3e693
refactor(cmake): Target libc++
2016-10-25 01:46:35 +02:00
Michael Carlberg
94ded75756
feat(config): Reference values defined in Xresources
...
Add config tag to reference a value defined in the Xresource db
`parameter = ${xrdb:var_name}`
2016-10-19 09:16:09 +02:00
Michael Carlberg
d879d6d42e
fix: Throttle X input events
...
- Limit the amount of allowed input events
- Yield on lock failure
- Cleanup
2016-10-19 06:03:01 +02:00
Michael Carlberg
adf18108c3
build: Use -O1 for release builds
...
Optimize less to not break the code.
Still some undefined behaviour that are messing
with builds using -O3
2016-10-19 02:21:26 +02:00
Michael Carlberg
01c5dcb6b7
fix: Guarded module teardown
2016-10-18 17:55:34 +02:00
Michael Carlberg
593e5afbdf
build: Configurable build of testsuite
2016-10-12 07:17:03 +02:00
Michael Carlberg
ed77e2eec6
Merge branch '2.0-beta'
2016-10-12 05:26:41 +02:00
Michael Carlberg
c4e9f9d035
wip: Update CMakeLists
2016-10-12 02:16:48 +02:00
Michael Carlberg
d23119e24e
fix(build): Make project compile using gcc5/gcc6
2016-10-11 12:58:26 +02:00
Michael Carlberg
d359ab6057
refactor: Application rewrite
2016-10-10 14:52:57 +02:00
Michael Carlberg
2b1aa99f4c
refactor(cmake): Removed dynamic handling of flags
...
Only set initial state of the ENABLE_X options
based on if the required library is available
2016-08-31 19:24:25 +02:00
Michael Carlberg
afb787f0d7
fix(cmake): Don't trigger versioning on build
2016-08-31 11:52:35 +02:00
Michael Carlberg
3273ed689f
build: Include man pages in build
2016-06-30 04:56:58 +02:00
Michael Carlberg
338c04ec91
fix(cmake): Enable C support for the project
2016-06-28 23:10:25 +02:00
Michael Carlberg
16cc82d920
refactor(cmake): Specify compile opts on target
2016-06-28 22:25:31 +02:00
Michael Carlberg
915c46d052
fix(build): Include i3ipcpp if i3 is enabled
2016-06-28 16:15:35 +02:00
Michael Carlberg
4c83b363bf
feat(build): Build with version
2016-06-28 15:06:30 +02:00
Michael Carlberg
821e6f4256
refactor: Store libraries in lib/
2016-06-24 00:26:08 +02:00
Michael Carlberg
52335d4f63
cmake: Cleanup
2016-06-24 00:26:08 +02:00
Michael Carlberg
8b7f2b7268
refactor: Replace X11 handling with xpp+xcb
...
xrandr 1.5 is no longer required for the monitor
handling to work
fixes jaagr/lemonbuddy#12
fixes jaagr/lemonbuddy#24
2016-06-24 00:22:33 +02:00
Michael Carlberg
a434072a49
build: Bump version to 1.2.2
2016-06-23 07:39:30 +02:00
Michael Carlberg
a1d8d47fb8
build: Dont exclude i3 if option is explicitly defined
2016-06-23 07:39:27 +02:00
Michael Carlberg
e4c457dcc7
task(build): Output current build type and compiler
2016-06-21 07:48:24 +02:00
Michael Carlberg
4bed34156e
fix(build): Ignore warnings about unused variables for release builds
2016-06-21 04:27:14 +02:00
Michael Carlberg
41c807afc2
build: Removed compiler condition
2016-06-20 15:54:05 +02:00
Michael Carlberg
b5e5f8769d
build: Bump version to 1.2.0
2016-06-14 13:17:26 +02:00
Michael Carlberg
29d284ff12
build: Bump version to 1.1.2
2016-06-14 05:37:03 +02:00
Michael Carlberg
3062a1416f
task(build): Bumped version to 1.1.1
2016-06-14 02:56:53 +02:00
Michael Carlberg
37ceb4d5c4
task(build): Bumped version to 1.1.0
2016-06-13 23:43:45 +02:00
Michael Carlberg
a52e73be71
-- First major release: 1.0.0 - cheers! --
2016-06-11 08:04:56 +02:00
Michael Carlberg
b5a0da1457
fix(wrapper.sh): Drop the .sh extension
2016-06-11 07:50:54 +02:00
Michael Carlberg
9d9a1ab285
task(build): Bumped version to 0.2.0
2016-06-10 01:16:01 +02:00
Michael Carlberg
f71548bc57
task(build): Bumped version to 0.1.5
2016-06-09 15:47:38 +02:00
Michael Carlberg
f667b739f0
task(mpd): Move connection settings to config
...
Closes jaagr/lemonbuddy#16
2016-06-09 13:44:01 +02:00
Michael Carlberg
39d3f61497
refactor(core): Clean-up
...
- use "#pragma once" instead of the regular include guard
- fix errors and warnings reported by cppcheck
2016-06-02 01:32:06 +02:00
Michael Carlberg
3cc160b6ac
fix(build): Bumped cmake project version
2016-05-31 05:56:45 +02:00
Michael Carlberg
4a6a36f08f
fix(battery): Poll capacity level
...
Some distros doesn't report any inotify event's for
the filesystem where the battery capacity file is located.
Resort to polling for now...
2016-05-31 02:55:08 +02:00
Michael Carlberg
736ab8e781
task(build): Cleanup of AUR build files
2016-05-24 15:10:30 +02:00