Merge lp:~mrqtros/ubuntu-docviewer-app/ubuntu-docviewer-app-lib-cache into lp:ubuntu-docviewer-app

Proposed by Roman Shchekin
Status: Merged
Approved by: Stefano Verzegnassi
Approved revision: 261
Merged at revision: 266
Proposed branch: lp:~mrqtros/ubuntu-docviewer-app/ubuntu-docviewer-app-lib-cache
Merge into: lp:ubuntu-docviewer-app
Diff against target: 33 lines (+18/-5)
1 file modified
cmake/modules/Click.cmake (+18/-5)
To merge this branch: bzr merge lp:~mrqtros/ubuntu-docviewer-app/ubuntu-docviewer-app-lib-cache
Reviewer Review Type Date Requested Status
Stefano Verzegnassi Approve
Jenkins Bot continuous-integration Approve
Review via email: mp+282652@code.launchpad.net

Commit message

Upstream libs caching.

Description of the change

Upstream libs caching.

To post a comment you must log in.
Revision history for this message
Jenkins Bot (ubuntu-core-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Roman Shchekin (mrqtros) wrote :

Something is wrong with tests...

Revision history for this message
Jenkins Bot (ubuntu-core-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Jenkins Bot (ubuntu-core-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Stefano Verzegnassi (verzegnassi-stefano) wrote :

It works great, I must approve it! \o/

I have just some doubt about the multi-arch support, since the latest release of 'Ubuntu SDK' has the new "CMake Wizard" which, by default, could assign the same name[1] to the build folder, even if two different kits (e.g. "desktop" and "UbuntuSDK_for_armhf_GCC_ubuntu_sdk_15_04_vivid") are used[2].
Anyway, that's IMHO just a small payback we only need to keep in mind.

[1] <source_folder> + "-build" suffix
[2] Older version always used to append the kit name as suffix

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'cmake/modules/Click.cmake'
--- cmake/modules/Click.cmake 2015-11-22 17:28:09 +0000
+++ cmake/modules/Click.cmake 2016-01-14 19:36:18 +0000
@@ -17,11 +17,24 @@
17 set(CUSTOM_SCRIPT ${CMAKE_CURRENT_SOURCE_DIR}/click/disable-file-locking.sh)17 set(CUSTOM_SCRIPT ${CMAKE_CURRENT_SOURCE_DIR}/click/disable-file-locking.sh)
18 set(UPSTREAM_LIBS_DIR ${CMAKE_BINARY_DIR}/upstream-libs)18 set(UPSTREAM_LIBS_DIR ${CMAKE_BINARY_DIR}/upstream-libs)
1919
20 MESSAGE("Grabbing upstream libs to ${UPSTREAM_LIBS_DIR}")20 MESSAGE("Grabbing upstream libs to ${UPSTREAM_LIBS_DIR}")
21 execute_process(21
22 COMMAND mkdir ${UPSTREAM_LIBS_DIR}22 get_filename_component(BLD_CONFIGURATION_NAME ${CMAKE_BINARY_DIR} NAME)
23 COMMAND ${GET_CLICK_DEPS_TOOL} -d ${DEPS_MANIFEST} -c ${CUSTOM_SCRIPT} ${CLICK_ARCH} ${UPSTREAM_LIBS_DIR}23 set(UPSTREAM_CACHE $ENV{HOME}/dev/upstream-libs-docviewer/${BLD_CONFIGURATION_NAME})
24 )24 MESSAGE("Upstream libs cache path: ${UPSTREAM_CACHE}")
25
26 if(EXISTS "${UPSTREAM_CACHE}")
27 MESSAGE("Upstream libs cache exists.")
28 file(COPY ${UPSTREAM_CACHE}/upstream-libs/ DESTINATION ${UPSTREAM_LIBS_DIR} PATTERN * )
29 else()
30 MESSAGE("Cache miss, downloading from network.")
31 execute_process(
32 COMMAND mkdir ${UPSTREAM_LIBS_DIR}
33 COMMAND ${GET_CLICK_DEPS_TOOL} -d ${DEPS_MANIFEST} -c ${CUSTOM_SCRIPT} ${CLICK_ARCH} ${UPSTREAM_LIBS_DIR}
34 )
35 # Cache for next usage.
36 file(COPY ${UPSTREAM_LIBS_DIR} DESTINATION ${UPSTREAM_CACHE} )
37 endif()
2538
26 MESSAGE("Installing upstream libs from ${UPSTREAM_LIBS_DIR}/usr/lib/${ARCH_TRIPLET}/ to ${DATA_DIR}lib/${ARCH_TRIPLET}")39 MESSAGE("Installing upstream libs from ${UPSTREAM_LIBS_DIR}/usr/lib/${ARCH_TRIPLET}/ to ${DATA_DIR}lib/${ARCH_TRIPLET}")
27 file(GLOB_RECURSE UPSTREAM_LIBS "${UPSTREAM_LIBS_DIR}/usr/lib/${ARCH_TRIPLET}/*")40 file(GLOB_RECURSE UPSTREAM_LIBS "${UPSTREAM_LIBS_DIR}/usr/lib/${ARCH_TRIPLET}/*")

Subscribers

People subscribed via source and target branches