diff options
author | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2017-07-01 12:46:58 +0300 |
---|---|---|
committer | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2017-07-01 12:46:58 +0300 |
commit | 730a56f58e3b6e556437ca462645504a860a1ed2 (patch) | |
tree | eb59e2922639ac342abdd53e78f9c6abd363db33 /Makefile | |
parent | Don't collapse room list (diff) | |
download | nheko-730a56f58e3b6e556437ca462645504a860a1ed2.tar.xz |
Remove hardcoded font sizes, margins etc
- Fixes small font issue on MacOs
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 30 |
1 files changed, 26 insertions, 4 deletions
diff --git a/Makefile b/Makefile index 5802f833..b4af63fb 100644 --- a/Makefile +++ b/Makefile @@ -1,23 +1,45 @@ SRC := $(shell find include src -type f -type f \( -iname "*.cc" -o -iname "*.h" \)) +# Linux specific helpers debug: @cmake -DBUILD_TESTS=OFF -H. -GNinja -Bbuild -DCMAKE_BUILD_TYPE=Debug @cmake --build build + release-debug: @cmake -DBUILD_TESTS=OFF -H. -GNinja -Bbuild -DCMAKE_BUILD_TYPE=RelWithDebInfo @cmake --build build +test: + @cmake -DBUILD_TESTS=ON -H. -GNinja -Bbuild -DCMAKE_BUILD_TYPE=RelWithDebInfo + @cmake --build build + @cd build && GTEST_COLOR=1 ctest --verbose + +# MacOS specific helpers +mdebug: + @cmake -DBUILD_TESTS=OFF \ + -H. \ + -GNinja \ + -Bbuild \ + -DCMAKE_PREFIX_PATH=/usr/local/opt/qt5 \ + -DCMAKE_BUILD_TYPE=Debug + @cmake --build build + +mrelease: + @cmake -DBUILD_TESTS=OFF \ + -H. \ + -GNinja \ + -Bbuild \ + -DCMAKE_PREFIX_PATH=/usr/local/opt/qt5 \ + -DCMAKE_BUILD_TYPE=RelWithDebInfo + @cmake --build build + run: @./build/nheko lint: @clang-format -i $(SRC) -test: - @cmake -DBUILD_TESTS=ON -H. -GNinja -Bbuild -DCMAKE_BUILD_TYPE=RelWithDebInfo - @cmake --build build - @cd build && GTEST_COLOR=1 ctest --verbose clean: rm -rf build |