Merge lp:~shlomif-gmail/inkscape/inkscape into lp:~inkscape.dev/inkscape/trunk

Proposed by Shlomi Fish
Status: Merged
Merge reported by: su_v
Merged at revision: not available
Proposed branch: lp:~shlomif-gmail/inkscape/inkscape
Merge into: lp:~inkscape.dev/inkscape/trunk
Diff against target: 170 lines (+80/-15)
5 files modified
CMakeLists.txt (+0/-6)
CMakeScripts/DefineDependsandFlags.cmake (+21/-7)
CMakeScripts/Modules/FindLCMS2.cmake (+38/-0)
config.h.cmake (+11/-1)
src/CMakeLists.txt (+10/-1)
To merge this branch: bzr merge lp:~shlomif-gmail/inkscape/inkscape
Reviewer Review Type Date Requested Status
Inkscape Developers Pending
Review via email: mp+217083@code.launchpad.net

Description of the change

This fixes the handling of LCMS / LCMS2 by the CMake build system.

To post a comment you must log in.
Revision history for this message
Liam P. White (liampwhite) wrote :

Should change branch status to merged.

Revision history for this message
su_v (suv-lp) wrote :

On 2014-05-11 17:01 +0100, Liam P. White wrote:
> Should change branch status to merged.

@Liam - could you please provide information about the revision in which
this branch was actually merged into trunk?

(I fail to find the changes proposed in the branch in current trunk)

lp:~shlomif-gmail/inkscape/inkscape updated
13305. By Shlomi Fish

Committed/merged.

13306. By Shlomi Fish

Foo.

13307. By Shlomi Fish

Merged.

13308. By Shlomi Fish

Foo.

13309. By Shlomi Fish

cmake fixes.

Revision history for this message
su_v (suv-lp) wrote :

Proposed fixes have been committed to trunk in r13764 and r13766.

Latest patch from related report bug #1378843:
http://bazaar.launchpad.net/~inkscape.dev/inkscape/trunk/revision/13764
Missing file (not included in the patch):
http://bazaar.launchpad.net/~inkscape.dev/inkscape/trunk/revision/13766

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'CMakeLists.txt'
--- CMakeLists.txt 2014-10-30 00:53:33 +0000
+++ CMakeLists.txt 2014-11-03 16:52:06 +0000
@@ -104,12 +104,6 @@
104if(UNIX)104if(UNIX)
105 # TODO: man, locale, icons105 # TODO: man, locale, icons
106106
107 # message after building.
108 add_custom_command(
109 TARGET blender POST_BUILD MAIN_DEPENDENCY blender
110 COMMAND ${CMAKE_COMMAND} -E echo 'now run: \"make install\" to copy runtime files & scripts to ${CMAKE_INSTALL_PREFIX}'
111 )
112
113 install(107 install(
114 PROGRAMS ${EXECUTABLE_OUTPUT_PATH}/inkscape108 PROGRAMS ${EXECUTABLE_OUTPUT_PATH}/inkscape
115 DESTINATION ${CMAKE_INSTALL_PREFIX}/bin109 DESTINATION ${CMAKE_INSTALL_PREFIX}/bin
116110
=== modified file 'CMakeScripts/DefineDependsandFlags.cmake'
--- CMakeScripts/DefineDependsandFlags.cmake 2014-03-27 01:33:44 +0000
+++ CMakeScripts/DefineDependsandFlags.cmake 2014-11-03 16:52:06 +0000
@@ -46,14 +46,23 @@
46endif()46endif()
4747
48if(ENABLE_LCMS)48if(ENABLE_LCMS)
49 find_package(LCMS)49 find_package(LCMS2)
50 if(LCMS_FOUND)50 if(LCMS2_FOUND)
51 list(APPEND INKSCAPE_INCS_SYS ${LCMS_INCLUDE_DIRS})51 list(APPEND INKSCAPE_INCS_SYS ${LCMS2_INCLUDE_DIRS})
52 list(APPEND INKSCAPE_LIBS ${LCMS_LIBRARIES})52 list(APPEND INKSCAPE_LIBS ${LCMS2_LIBRARIES})
53 add_definitions(${LCMS_DEFINITIONS})53 add_definitions(${LCMS2_DEFINITIONS})
54 SET (HAVE_LIBLCMS2 ON)
54 else()55 else()
55 set(ENABLE_LCMS OFF)56 find_package(LCMS)
56 endif()57 if(LCMS_FOUND)
58 list(APPEND INKSCAPE_INCS_SYS ${LCMS_INCLUDE_DIRS})
59 list(APPEND INKSCAPE_LIBS ${LCMS_LIBRARIES})
60 add_definitions(${LCMS_DEFINITIONS})
61 SET (HAVE_LIBLCMS1 ON)
62 else()
63 SET (ENABLE_LCMS OFF)
64 endif()
65 endif()
57endif()66endif()
5867
59find_package(BoehmGC REQUIRED)68find_package(BoehmGC REQUIRED)
@@ -81,6 +90,10 @@
81 POPPLER_VERSION VERSION_EQUAL "0.12.2")90 POPPLER_VERSION VERSION_EQUAL "0.12.2")
82 set(POPPLER_NEW_COLOR_SPACE_API ON)91 set(POPPLER_NEW_COLOR_SPACE_API ON)
83 endif()92 endif()
93 if(POPPLER_VERSION VERSION_GREATER "0.26.0" OR
94 POPPLER_VERSION VERSION_EQUAL "0.26.0")
95 set(POPPLER_EVEN_NEWER_COLOR_SPACE_API ON)
96 endif()
84 if(POPPLER_VERSION VERSION_GREATER "0.15.1" OR97 if(POPPLER_VERSION VERSION_GREATER "0.15.1" OR
85 POPPLER_VERSION VERSION_EQUAL "0.15.1")98 POPPLER_VERSION VERSION_EQUAL "0.15.1")
86 set(POPPLER_NEW_GFXPATCH ON)99 set(POPPLER_NEW_GFXPATCH ON)
@@ -163,6 +176,7 @@
163 ${GTK2_CAIROMM_INCLUDE_DIR}176 ${GTK2_CAIROMM_INCLUDE_DIR}
164 ${GTK2_CAIROMMCONFIG_INCLUDE_DIR} # <-- not in cmake 2.8.4177 ${GTK2_CAIROMMCONFIG_INCLUDE_DIR} # <-- not in cmake 2.8.4
165 ${GTK2_GIOMM_INCLUDE_DIR}178 ${GTK2_GIOMM_INCLUDE_DIR}
179 ${GTK2_GIOMMCONFIG_INCLUDE_DIR}
166 ${GTK2_SIGC++_INCLUDE_DIR}180 ${GTK2_SIGC++_INCLUDE_DIR}
167 ${GTK2_SIGC++CONFIG_INCLUDE_DIR}181 ${GTK2_SIGC++CONFIG_INCLUDE_DIR}
168)182)
169183
=== added file 'CMakeScripts/Modules/FindLCMS2.cmake'
--- CMakeScripts/Modules/FindLCMS2.cmake 1970-01-01 00:00:00 +0000
+++ CMakeScripts/Modules/FindLCMS2.cmake 2014-11-03 16:52:06 +0000
@@ -0,0 +1,38 @@
1# This file was taken from the openjpeg library:
2#
3# http://code.google.com/p/openjpeg/source/browse/trunk/cmake/FindLCMS2.cmake?r=1987
4#
5# Thanks!
6
7# - Find LCMS2 library
8# Find the native LCMS2 includes and library
9# Once done this will define
10#
11# LCMS2_INCLUDE_DIR - Where to find lcms2.h, etc.
12# LCMS2_LIBRARIES - Libraries to link against to use LCMS2.
13# LCMS2_FOUND - If false, do not try to use LCMS2.
14#
15# also defined, but not for general use are
16# LCMS2_LIBRARY - Where to find the LCMS2 library.
17
18#=============================================================================
19#=============================================================================
20
21find_path(LCMS2_INCLUDE_DIR lcms2.h PATHS /usr/include /usr/local/include /opt/include /opt/local/include)
22
23set(LCMS2_NAMES ${LCMS2_NAMES} lcms2 liblcms2 liblcms2_static)
24
25find_library(LCMS2_LIBRARY NAMES ${LCMS2_NAMES} )
26
27mark_as_advanced(LCMS2_INCLUDE_DIR LCMS2_LIBRARY)
28
29# handle the QUIETLY and REQUIRED arguments and set LCMS2_FOUND to TRUE if
30# all listed variables are TRUE
31include(FindPackageHandleStandardArgs)
32FIND_PACKAGE_HANDLE_STANDARD_ARGS(LCMS2 DEFAULT_MSG LCMS2_LIBRARY LCMS2_INCLUDE_DIR)
33
34if(LCMS2_FOUND)
35set( LCMS2_INCLUDE_DIRS ${LCMS2_INCLUDE_DIR})
36set( LCMS2_LIBRARIES ${LCMS2_LIBRARY} )
37endif()
38
039
=== modified file 'config.h.cmake'
--- config.h.cmake 2011-09-27 17:02:55 +0000
+++ config.h.cmake 2014-11-03 16:52:06 +0000
@@ -16,7 +16,10 @@
16#cmakedefine ENABLE_BINRELOC 116#cmakedefine ENABLE_BINRELOC 1
1717
18/* Use LittleCms color management */18/* Use LittleCms color management */
19#cmakedefine ENABLE_LCMS 119#cmakedefine HAVE_LIBLCMS2 1
20
21/* Use LittleCms color management */
22#cmakedefine HAVE_LIBLCMS1 1
2023
21/* always defined to indicate that i18n is enabled */24/* always defined to indicate that i18n is enabled */
22#cmakedefine ENABLE_NLS 125#cmakedefine ENABLE_NLS 1
@@ -128,9 +131,16 @@
128/* Use GfxFont from Poppler >= 0.8.3 */131/* Use GfxFont from Poppler >= 0.8.3 */
129#cmakedefine POPPLER_NEW_GFXFONT 1132#cmakedefine POPPLER_NEW_GFXFONT 1
130133
134/* Use new error API from Poppler >= 0.20.0 */
135#cmakedefine POPPLER_NEW_ERRORAPI
136
131/* Use color space API from Poppler >= 0.12.2 */137/* Use color space API from Poppler >= 0.12.2 */
132#cmakedefine POPPLER_NEW_COLOR_SPACE_API 1138#cmakedefine POPPLER_NEW_COLOR_SPACE_API 1
133139
140/* Use color space API from Poppler >= 0.26.0 */
141#cmakedefine POPPLER_EVEN_NEWER_COLOR_SPACE_API 1
142
143
134/* GfxPatch no longer uses GfxColor in >= 0.15.1 */144/* GfxPatch no longer uses GfxColor in >= 0.15.1 */
135#cmakedefine POPPLER_NEW_GFXPATCH 1145#cmakedefine POPPLER_NEW_GFXPATCH 1
136146
137147
=== modified file 'src/CMakeLists.txt'
--- src/CMakeLists.txt 2014-10-17 20:03:14 +0000
+++ src/CMakeLists.txt 2014-11-03 16:52:06 +0000
@@ -517,10 +517,19 @@
517# make executable for INKSCAPE517# make executable for INKSCAPE
518add_executable(inkscape ${main_SRC} ${inkscape_SRC} ${sp_SRC})518add_executable(inkscape ${main_SRC} ${inkscape_SRC} ${sp_SRC})
519519
520if(UNIX)
521# message after building.
522add_custom_command(
523 TARGET inkscape
524 POST_BUILD MAIN_DEPENDENCY inkscape
525 COMMAND ${CMAKE_COMMAND} -E echo 'now run: \"make install\" to copy runtime files & scripts to ${CMAKE_INSTALL_PREFIX}'
526)
527endif()
528
520add_dependencies(inkscape inkscape_version)529add_dependencies(inkscape inkscape_version)
521530
522target_link_libraries(inkscape531target_link_libraries(inkscape
523 # order from automake 532 # order from automake
524 #sp_LIB533 #sp_LIB
525 nrtype_LIB534 nrtype_LIB
526535