Skip to content

Commit

Permalink
Build: make tools optional
Browse files Browse the repository at this point in the history
Update the .spec file so that they are still built in Mer.
  • Loading branch information
mardy committed Nov 2, 2017
1 parent d3d16f4 commit b8e942a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions buteo-sync-plugin-carddav.pro
@@ -1,5 +1,10 @@
TEMPLATE=subdirs
SUBDIRS=src tests tools
SUBDIRS=src tests

CONFIG(build-tools) {
SUBDIRS += tools
tools.depends=src
}

tests.depends=src
tools.depends=src
OTHER_FILES+=rpm/buteo-sync-plugin-carddav.spec
2 changes: 1 addition & 1 deletion rpm/buteo-sync-plugin-carddav.spec
Expand Up @@ -83,7 +83,7 @@ This package contains unit tests for the CardDAV Buteo sync plugin.
%setup -q -n %{name}-%{version}

%build
%qmake5 "DEFINES+=BUTEO_OUT_OF_PROCESS_SUPPORT"
%qmake5 "DEFINES+=BUTEO_OUT_OF_PROCESS_SUPPORT" "CONFIG+=build-tools"
make %{?jobs:-j%jobs}

%pre
Expand Down

0 comments on commit b8e942a

Please sign in to comment.