Merge lp:~dobey/ubuntu-system-settings/fix-settings-i18n into lp:ubuntu-system-settings

Proposed by dobey
Status: Merged
Approved by: Ken VanDine
Approved revision: 1616
Merged at revision: 1619
Proposed branch: lp:~dobey/ubuntu-system-settings/fix-settings-i18n
Merge into: lp:ubuntu-system-settings
Diff against target: 25 lines (+3/-4)
1 file modified
po/CMakeLists.txt (+3/-4)
To merge this branch: bzr merge lp:~dobey/ubuntu-system-settings/fix-settings-i18n
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Needs Fixing
Ken VanDine Needs Fixing
Review via email: mp+289079@code.launchpad.net

Commit message

Fix the CMakeLists.txt to handle settings.js generation and translations better.

To post a comment you must log in.
Revision history for this message
Ken VanDine (ken-vandine) wrote :

You should drop the changes to the pot file from the branch

review: Needs Fixing
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
1616. By dobey

Revert the pot file update.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'po/CMakeLists.txt'
2--- po/CMakeLists.txt 2015-12-11 20:27:49 +0000
3+++ po/CMakeLists.txt 2016-03-16 13:36:24 +0000
4@@ -17,10 +17,9 @@
5 "${CMAKE_SOURCE_DIR}/plugins/*/*.settings")
6 file(GLOB PYFILES RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}"
7 "${CMAKE_SOURCE_DIR}/push-helper/*.py")
8-file(GLOB SETTINGSJSFILE RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}"
9- "${CMAKE_CURRENT_BINARY_DIR}/settings.js")
10+file(RELATIVE_PATH SETTINGSJSFILE "${CMAKE_CURRENT_SOURCE_DIR}" "${CMAKE_CURRENT_BINARY_DIR}/settings.js")
11
12-add_custom_command(OUTPUT settings.js
13+add_custom_target(settings.js
14 COMMAND ./extractsettingsinfo ${SETTINGSFILES} -o ${CMAKE_CURRENT_BINARY_DIR}/settings.js
15 WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
16 DEPENDS ${SETTINGSFILES}
17@@ -48,7 +47,7 @@
18 --keyword=tr --keyword=tr:1,2 --from-code=UTF-8
19 ${QMLFILES} ${SETTINGSJSFILE}
20 WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
21- DEPENDS pot-desktop ${QMLFILES} "${CMAKE_CURRENT_BINARY_DIR}/settings.js" #desktop.js
22+ DEPENDS pot-desktop ${QMLFILES} settings.js #desktop.js
23 )
24
25 add_custom_target(pot-cpp

Subscribers

People subscribed via source and target branches