Merge lp:~gerboland/dee-qt/pkgconfig-fix into lp:dee-qt/0.2

Proposed by Gerry Boland
Status: Merged
Approved by: Florian Boucault
Approved revision: 62
Merged at revision: 65
Proposed branch: lp:~gerboland/dee-qt/pkgconfig-fix
Merge into: lp:dee-qt/0.2
Diff against target: 41 lines (+12/-5)
2 files modified
CMakeLists.txt (+9/-2)
libqtdee.pc.in (+3/-3)
To merge this branch: bzr merge lp:~gerboland/dee-qt/pkgconfig-fix
Reviewer Review Type Date Requested Status
Michal Hruby (community) Approve
unity-2d-team Pending
Review via email: mp+91551@code.launchpad.net

Description of the change

Generate pkgconfig file by cmake to point to correct install directories

To post a comment you must log in.
Revision history for this message
Michal Hruby (mhr3) wrote :

Yey!

review: Approve
Revision history for this message
Unity Merger (unity-merger) wrote :

The Jenkins job https://jenkins.qa.ubuntu.com/job/automerge-dee-qt/11/console reported an error when processing this lp:~gerboland/dee-qt/pkgconfig-fix branch.
Not merging it.

lp:~gerboland/dee-qt/pkgconfig-fix updated
62. By Gerry Boland

Add correct prefixes to .pc file. Fix dpkg generation

Revision history for this message
Michal Hruby (mhr3) wrote :

Yep, now it actually works. :)

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'CMakeLists.txt'
2--- CMakeLists.txt 2012-01-05 20:27:31 +0000
3+++ CMakeLists.txt 2012-02-20 16:35:21 +0000
4@@ -94,8 +94,15 @@
5 DESTINATION ${INCLUDE_INSTALL_DIR}
6 )
7
8-install(FILES libqtdee.pc
9- DESTINATION lib/pkgconfig
10+# PkgConfig file
11+set (PREFIX "${CMAKE_INSTALL_PREFIX}")
12+set (EXEC_PREFIX "${CMAKE_INSTALL_PREFIX}")
13+
14+configure_file (libqtdee.pc.in
15+ ${CMAKE_CURRENT_BINARY_DIR}/libqtdee.pc @ONLY)
16+
17+install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libqtdee.pc
18+ DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/pkgconfig
19 )
20
21 ## QtDeeQml
22
23=== renamed file 'libqtdee.pc' => 'libqtdee.pc.in'
24--- libqtdee.pc 2011-02-21 16:42:32 +0000
25+++ libqtdee.pc.in 2012-02-20 16:35:21 +0000
26@@ -1,5 +1,5 @@
27-prefix=/usr
28-exec_prefix=/usr
29+prefix=@PREFIX@
30+exec_prefix=@EXEC_PREFIX@
31 libdir=${exec_prefix}/lib
32 includedir=${prefix}/include
33
34@@ -7,6 +7,6 @@
35 Description: Qt binding and QML plugin for Dee.
36 Version: 0.2
37
38-Requires: QtCore QtDBus QtDeclarative
39+Requires: QtCore QtDBus QtDeclarative dee-1.0
40 Libs: -L${libdir} -lQtDee
41 Cflags: -I${includedir}/QtDee

Subscribers

People subscribed via source and target branches