Skip to content

Commit

Permalink
Merge branch 'release/0.3.0' into stable
Browse files Browse the repository at this point in the history
  • Loading branch information
trollixx committed Sep 23, 2016
2 parents 45bb34f + 1b11c54 commit e18ff9c
Show file tree
Hide file tree
Showing 503 changed files with 4,104 additions and 3,219 deletions.
3 changes: 3 additions & 0 deletions .qmake.conf
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
SRC_ROOT=$$PWD
BUILD_ROOT=$$shadowed($$PWD)

ZEAL_COMMON_PRI = $$SRC_ROOT/qmake/common.pri
ZEAL_LIBRARY_PRI = $$SRC_ROOT/qmake/library.pri
16 changes: 9 additions & 7 deletions .shippable.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
before_install:
- shippable_retry sudo apt-get -y -qq update
install:
- shippable_retry sudo apt-get -y -qq install --no-install-recommends qt5-default libqt5webkit5-dev libqt5x11extras5-dev libarchive-dev libxcb-keysyms1-dev
script:
- qmake
- make
language: c
compiler:
- gcc
build:
ci:
- shippable_retry sudo apt-get -y -qq update
- shippable_retry sudo apt-get -y -qq install --no-install-recommends qt5-default libqt5webkit5-dev libqt5x11extras5-dev libarchive-dev libxcb-keysyms1-dev
- qmake
- make
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Zeal

[![IRC](https://img.shields.io/badge/irc-%23zealdocs-blue.svg?style=flat-square)](https://kiwiirc.com/client/irc.freenode.net/#zealdocs)
[![Changelog](https://img.shields.io/github/release/zealdocs/zeal.svg?style=flat-square)](https://github.com/zealdocs/zeal/releases)
[![IRC](https://img.shields.io/badge/chat-on%20irc-blue.svg?style=flat-square)](https://kiwiirc.com/client/irc.freenode.net/#zealdocs)
[![Telegram Chat](https://img.shields.io/badge/chat-on%20telegram-179cde.svg?style=flat-square)](https://telegram.me/zealdocschat)
[![Telegram Channel](https://img.shields.io/badge/follow-on%20telegram-179cde.svg?style=flat-square)](https://telegram.me/zealdocs)
[![Twitter](https://img.shields.io/badge/follow-on%20twitter-1da1f2.svg?style=flat-square)](https://twitter.com/zealdocs)

> **zeal** *noun*
>
Expand All @@ -12,7 +16,7 @@
Zeal is a simple offline documentation browser inspired by [Dash](https://kapeli.com/dash).

![Screenshot](https://i.imgur.com/SiLvpz8.png)
![Screenshot](https://i.imgur.com/v63u1ZJ.png)

[More screenshots](https://imgur.com/a/eVi97)

Expand All @@ -22,7 +26,7 @@ Zeal is a simple offline documentation browser inspired by [Dash](https://kapeli

OS \ Branch | master | stable
------------|--------|-------
Linux | [![Shippable](https://img.shields.io/shippable/54ac2ce4d46935d5fbc19b84/master.svg?style=flat-square)](https://app.shippable.com/builds/54ac2ce4d46935d5fbc19b84) | [![Shippable](https://img.shields.io/shippable/54ac2ce4d46935d5fbc19b84/stable.svg?style=flat-square)](https://app.shippable.com/builds/54ac2ce4d46935d5fbc19b84)
Linux | [![Shippable](https://img.shields.io/shippable/54ac2ce4d46935d5fbc19b84/master.svg?style=flat-square)](https://app.shippable.com/projects/54ac2ce4d46935d5fbc19b84) | [![Shippable](https://img.shields.io/shippable/54ac2ce4d46935d5fbc19b84/stable.svg?style=flat-square)](https://app.shippable.com/projects/54ac2ce4d46935d5fbc19b84)
Windows | [![AppVeyor](https://img.shields.io/appveyor/ci/trollixx/zeal/master.svg?style=flat-square)](https://ci.appveyor.com/project/trollixx/zeal) | [![AppVeyor](https://img.shields.io/appveyor/ci/trollixx/zeal/stable.svg?style=flat-square)](https://ci.appveyor.com/project/trollixx/zeal)

## Download
Expand Down
23 changes: 23 additions & 0 deletions assets/assets.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
include($$ZEAL_COMMON_PRI)

TEMPLATE = aux

unix:!macx {
TARGET = zeal
appicons16.files=freedesktop/appicons/16/*
appicons24.files=freedesktop/appicons/24/*
appicons32.files=freedesktop/appicons/32/*
appicons64.files=freedesktop/appicons/64/*
appicons128.files=freedesktop/appicons/128/*

appicons16.path=$$PREFIX/share/icons/hicolor/16x16/apps
appicons24.path=$$PREFIX/share/icons/hicolor/24x24/apps
appicons32.path=$$PREFIX/share/icons/hicolor/32x32/apps
appicons64.path=$$PREFIX/share/icons/hicolor/64x64/apps
appicons128.path=$$PREFIX/share/icons/hicolor/128x128/apps

desktop.files=freedesktop/zeal.desktop
desktop.path=$$PREFIX/share/applications

INSTALLS += appicons16 appicons24 appicons32 appicons64 appicons128 desktop
}
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
65 changes: 65 additions & 0 deletions qmake/common.pri
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# Shared build options
#
# This file must be included at the top of every non-subdirs .pro file.
# Use:
# include($$ZEAL_COMMON_PRI)

# Compilation settings
CONFIG += c++11 silent

# Shared include path
INCLUDEPATH += $$SRC_ROOT/src/libs
LIBS = -L$$BUILD_ROOT/.lib

# QString options
DEFINES *= QT_USE_QSTRINGBUILDER
DEFINES *= QT_RESTRICTED_CAST_FROM_ASCII
DEFINES *= QT_NO_CAST_TO_ASCII
DEFINES *= QT_NO_URL_CAST_FROM_STRING

# Workaround for AppVeyor: Do not warn if the library had to be created.
# Based on https://codereview.qt-project.org/150326
win32-g++:lessThan(QT_VERSION, "5.6.0") {
QMAKE_LIB = ar -rc
}

# Keep build directory clean
MOC_DIR = $$BUILD_ROOT/.moc
OBJECTS_DIR = $$BUILD_ROOT/.obj
RCC_DIR = $$BUILD_ROOT/.rcc
UI_DIR = $$BUILD_ROOT/.ui

# Application version
VERSION = 0.3.0
DEFINES += ZEAL_VERSION=\\\"$${VERSION}\\\"

# Browser engine
CONFIG(zeal_qtwebengine) {
qtHaveModule(webenginewidgets): BROWSER_ENGINE = qtwebengine
else: error("Qt WebEngine is not available.")
} else {
qtHaveModule(webkitwidgets): BROWSER_ENGINE = qtwebkit
else: qtHaveModule(webenginewidgets): BROWSER_ENGINE = qtwebengine
else: error("Zeal requires Qt WebEngine or Qt WebKit.")
}

equals(BROWSER_ENGINE, qtwebengine) {
message("Browser engine: Qt WebEngine.")
QT += webenginewidgets
DEFINES += USE_WEBENGINE
} else {
message("Browser engine: Qt WebKit.")
QT += webkitwidgets
DEFINES += USE_WEBKIT
}

# Portable build
CONFIG(zeal_portable) {
message("Portable build: Yes.")
DEFINES += PORTABLE_BUILD
}

# Unix installation prefix
unix:!macx {
isEmpty(PREFIX): PREFIX = /usr
}
8 changes: 8 additions & 0 deletions qmake/library.pri
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
include($$ZEAL_COMMON_PRI)
include($$replace(_PRO_FILE_PWD_, ([^/]+$), \\1/\\1.pri))

TEMPLATE = lib
CONFIG += staticlib

DESTDIR = $$BUILD_ROOT/.lib
TARGET = $$ZEAL_LIB_NAME
20 changes: 0 additions & 20 deletions src/3rdparty/qxtglobalshortcut/qxtglobalshortcut.pri

This file was deleted.

42 changes: 42 additions & 0 deletions src/app/app.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
include($$ZEAL_COMMON_PRI)

TEMPLATE = app

QT += gui widgets sql concurrent

SOURCES += \
main.cpp

RESOURCES += \
resources/zeal.qrc

DESTDIR = $$BUILD_ROOT/bin

unix:!macx {
TARGET = zeal
target.path = $$PREFIX/bin

INSTALLS += target
}

win32 {
TARGET = zeal
RC_ICONS = resources/zeal.ico
}

macx {
TARGET = Zeal
ICON = resources/zeal.icns
}

# FIXME: Hardcoded link line & cyclic dependencies.
LIBS += -lCore -lUi -lRegistry -lUtil

# Depend on all dependencies of libraries
for(lib_dir, $$list($$files($$SRC_ROOT/src/libs/*))) {
!equals(lib_dir, $$SRC_ROOT/src/libs/libs.pro) {
include($$lib_dir/$$basename(lib_dir).pri)
PRE_TARGETDEPS += $$BUILD_ROOT/.lib/lib$${ZEAL_LIB_NAME}.a
# LIBS += -l$$ZEAL_LIB_NAME
}
}
Loading

0 comments on commit e18ff9c

Please sign in to comment.