Skip to content

Commit

Permalink
Various fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
TronFortyTwo committed Oct 22, 2019
1 parent 99b82bc commit 540877a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ if(PLUS_VERSION)
set(PROJECT_NAME sturmreader.plus.emanuelesorce)
set(APPARMOR_FILE apparmor/sturmreader.access.json)
set(DESKTOP_NAME "Sturm Reader +")
elseif(PLUS_VERSION)
else(PLUS_VERSION)
set(PROJECT_NAME sturmreader.emanuelesorce)
set(APPARMOR_FILE apparmor/sturmreader.json)
set(DESKTOP_NAME "Sturm Reader")
Expand Down Expand Up @@ -50,7 +50,8 @@ find_package(Qt5Core REQUIRED Qt5Qml Qt5Quick Qt5Xml Qt5Gui Qt5Network)

file(GLOB I18N_SRC_FILES
RELATIVE ${CMAKE_SOURCE_DIR}
ui/*.qml ${DESKTOP_FILE}.tr)
ui/*.qml )
#${DESKTOP_FILE}.tr)
# DefaultCover.qml doesn't have any translatable strings, but it does confuse xgettext.
list(REMOVE_ITEM I18N_SRC_FILES ui/DefaultCover.qml)

Expand Down Expand Up @@ -85,7 +86,7 @@ endif(CLICK_MODE)
#Copies specific individual files into the build directory
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/sturmreader ${CMAKE_CURRENT_BINARY_DIR}/sturmreader @ONLY)
configure_file(${DESKTOP_FILE}.in ${CMAKE_CURRENT_BINARY_DIR}/${DESKTOP_FILE})
configure_file(${DESKTOP_FILE}.tr ${CMAKE_CURRENT_BINARY_DIR}/${DESKTOP_FILE}.tr)
#configure_file(${DESKTOP_FILE}.tr ${CMAKE_CURRENT_BINARY_DIR}/${DESKTOP_FILE}.tr)
install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/sturmreader DESTINATION ${DATA_DIR})
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${DESKTOP_FILE} DESTINATION ${DESKTOP_DIR})
install(FILES ${ICON_FILE} DESTINATION ${DATA_DIR})
Expand All @@ -97,5 +98,4 @@ add_subdirectory(fontlister)
add_subdirectory(html)
add_subdirectory(qhttpserver)
add_subdirectory(ui)

add_subdirectory(po)
3 changes: 3 additions & 0 deletions clickable.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
"template": "cmake",
"dependencies_target": [
"intltool",
"qtdeclarative5-u1db1.0",
"qtdeclarative5-usermetrics0.1",
"qtdeclarative5-ubuntu-content1",
"libpoppler-qt5-dev"
],
"dependencies_build": [
Expand Down
1 change: 1 addition & 0 deletions ui/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import QtQuick.LocalStorage 2.0
import QtQuick.Window 2.0
import Ubuntu.Components 1.3
import Ubuntu.Components.Popups 1.3
import U1db 1.0 as U1db
import File 1.0

import "components"
Expand Down

0 comments on commit 540877a

Please sign in to comment.