Merge lp:~faubulous/inkscape/cmake-win32 into lp:~inkscape.dev/inkscape/trunk

Proposed by jazzynico
Status: Merged
Merge reported by: Patrick Storz
Merged at revision: not available
Proposed branch: lp:~faubulous/inkscape/cmake-win32
Merge into: lp:~inkscape.dev/inkscape/trunk
Diff against target: 872 lines (+510/-143) (has conflicts)
10 files modified
AUTHORS (+2/-0)
CMakeLists.txt (+277/-46)
CMakeScripts/ConfigPaths.cmake (+146/-2)
CMakeScripts/DefineDependsandFlags.cmake (+21/-66)
build/configure.bat (+9/-0)
build/touch.bat (+4/-0)
config.h.cmake (+8/-0)
mingwenv.bat (+2/-2)
src/CMakeLists.txt (+41/-26)
touch.bat (+0/-1)
Text conflict in CMakeLists.txt
Contents conflict in configure.bat
Text conflict in src/CMakeLists.txt
To merge this branch: bzr merge lp:~faubulous/inkscape/cmake-win32
Reviewer Review Type Date Requested Status
Jon A. Cruz Needs Fixing
Review via email: mp+293202@code.launchpad.net

Description of the change

Just to get a diff with lp:inkscape to ease testing.

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

Just tried it on Windows 7 with the win32 build env (32-bit devlibs and TDM-GCC-4.6). Some comments (note that I'm a cmake newbie):
1. CMake doesn't use GS_BIN when already set (in my mingwenv.bat). It instead tries to add /bin to GS_PATH. Note that some files (pdf2ps.bat) in GS_PATH/lib need to be in GS_BIN too so that related extensions work as expected.
2. Why did you define DEVLIBS_PATH and MINGW_PATH in configure.bat? They are already defined in mingwenv.bat (with some additional paths).
3. I used -G "MSYS Makefiles" to run cmake from the MSYS shell. Cmake worked fine, but then 'make' failed when linking to the libinkscape_base shared library.
4. Then I tried -G "MinGW Makefiles" from a Windows console. Same linking problem.

That said, it's a very interesting improvement (I never managed to use cmake with the win32 build env. before!). Thanks!

Revision history for this message
jazzynico (jazzynico) wrote :

> 'make' failed when linking to the libinkscape_base shared library.

Correction. Not when linking to, but when linking the libinkscape_base.dll lib, with the following errors:
----
d:/dev/tdm-gcc-32-4.6/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.exe: cannot find -lpangocairo-1.0
... same line with different libs here ...
d:/dev/tdm-gcc-32-4.6/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.exe: cannot find -lsigc-2.0
collect2: ld returned 1 exit status
mingw32-make[2]: *** [lib/libinkscape_base.dll] Error 1
mingw32-make[1]: *** [src/CMakeFiles/inkscape_base.dir/all] Error 2
mingw32-make: *** [all] Error 2
----

Revision history for this message
Jon A. Cruz (jon-joncruz) wrote :

I'll have to finish reconciling with my local work, but the cmake files themselves do need some adjustment.

There are several lines that have been duplicated into if/else Windows blocks when adjusting to use the proper variables would allow a single line to be shared for all platforms.

review: Needs Fixing
lp:~faubulous/inkscape/cmake-win32 updated
14868. By Sebastian Faubel

Detecting changes in the build environment in configure.bat

14869. By Sebastian Faubel

Configure script detects changes in the build environment and resets PATH accordingly.
Bugfix: Compile errors when trailing slash or backslash is missing from GS_PATH.

Revision history for this message
Sebastian Faubel (faubulous) wrote :

Dear Jon,

it seems that the 0.92 release is getting closer. Is there any progress
with CMake on Windows?

~Sebastian

*Semiodesk GmbH | *Werner-von-Siemens-Str. 6 Geb. 15k, 86159 Augsburg,
Germany | Phone: +49 821 8854401 | Fax: +49 821 8854410 | www.semiodesk.com

This e-mail message may contain confidential or legally privileged
information and is intended only for the use of the intended recipient(s).
Any unauthorized disclosure, dissemination, distribution, copying or the
taking of any action in reliance on the information herein is prohibited.
E-mails are not secure and cannot be guaranteed to be error free as they
can be intercepted, amended, or contain viruses. Anyone who communicates
with us by e-mail is deemed to have accepted these risks. Semiodesk GmbH is
not responsible for errors or omissions in this message and denies any
responsibility for any damage arising from the use of e-mail. Any opinion
and other statement contained in this message and any attachment are solely
those of the author and do not necessarily represent those of the company.

2016-04-28 15:37 GMT+02:00 Jon A. Cruz <email address hidden>:

> Review: Needs Fixing
>
> I'll have to finish reconciling with my local work, but the cmake files
> themselves do need some adjustment.
>
> There are several lines that have been duplicated into if/else Windows
> blocks when adjusting to use the proper variables would allow a single line
> to be shared for all platforms.
> --
> https://code.launchpad.net/~faubulous/inkscape/cmake-win32/+merge/293202
> You are the owner of lp:~faubulous/inkscape/cmake-win32.
>

lp:~faubulous/inkscape/cmake-win32 updated
14870. By Sebastian Faubel

Inkscape can now be built using other shells and without invoking configure.bat
Moved Windows environment variables into ConfigPaths.cmake

14871. By Sebastian Faubel

Locales and app icon are now working.

14872. By Sebastian Faubel

Fixed generation of config.h

14873. By Sebastian Faubel

Removed BR options from CMakeLists.txt as they are optional.

Revision history for this message
Patrick Storz (ede123) wrote :

I think most of these changes have already been merged (not directly, though), notably revisions 14855, 15011 and 15024.

If there is anything in here that we still want please let us know!

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'AUTHORS'
--- AUTHORS 2016-02-27 17:38:36 +0000
+++ AUTHORS 2016-06-28 06:54:18 +0000
@@ -172,3 +172,5 @@
172Daniel Yacob172Daniel Yacob
173David Yip173David Yip
174Masatake Yamato174Masatake Yamato
175Moritz Eberl
176Sebastian Faubel
175\ No newline at end of file177\ No newline at end of file
176178
=== modified file 'CMakeLists.txt'
--- CMakeLists.txt 2016-06-10 15:45:22 +0000
+++ CMakeLists.txt 2016-06-28 06:54:18 +0000
@@ -7,12 +7,59 @@
7message("Binary Dir: ${CMAKE_CURRENT_BINARY_DIR}")7message("Binary Dir: ${CMAKE_CURRENT_BINARY_DIR}")
88
9# -----------------------------------------------------------------------------9# -----------------------------------------------------------------------------
10# Set platform defaults (originally copied from darktable)
11# -----------------------------------------------------------------------------
12include(CMakeScripts/ConfigPaths.cmake)
13
14if(WIN32)
15 message("-- Windows build detected, setting default features")
16
17 list(INSERT CMAKE_SYSTEM_INCLUDE_PATH 0 ${DEVLIBS_PATH})
18 list(INSERT CMAKE_SYSTEM_LIBRARY_PATH 0 ${DEVLIBS_PATH})
19
20 set(CMAKE_C_COMPILER "${MINGW_BIN}/gcc.exe")
21 set(CMAKE_C_LINK_EXECUTABLE "${MINGW_BIN}/gcc.exe")
22 set(CMAKE_CXX_COMPILER "${MINGW_BIN}/g++.exe")
23 set(CMAKE_CXX_LINK_EXECUTABLE "${MINGW_BIN}/g++.exe")
24 set(CMAKE_CXX_STANDARD 11)
25
26 # Setup Windows resource files compiler.
27 set(CMAKE_RC_COMPILER "${MINGW_BIN}/windres.exe")
28 set(CMAKE_RC_COMPILER_INIT windres)
29 enable_language(RC)
30 set(CMAKE_RC_COMPILE_OBJECT "<CMAKE_RC_COMPILER> -O coff -i <SOURCE> -o <OBJECT>")
31
32 # These options are required for having i18n support on Windows.
33 option(ENABLE_NLS "Compile with i18n enabled" ON)
34 option(HAVE_BIND_TEXTDOMAIN_CODESET "Compile with 'bind_textdomain_codeset' function" ON)
35endif(WIN32)
36
37if(APPLE)
38 message("-- Mac OS X build detected, setting default features")
39 # prefer macports and/or user-installed libraries over system ones
40 #LIST(APPEND CMAKE_PREFIX_PATH /opt/local /usr/local)
41 set(CMAKE_FIND_FRAMEWORK "LAST")
42
43 # test and display relevant env variables
44 if(DEFINED ENV{CMAKE_PREFIX_PATH})
45 message("CMAKE_PREFIX_PATH: $ENV{CMAKE_PREFIX_PATH}")
46 endif()
47 if(DEFINED ENV{GTKMM_BASEPATH})
48 message("GTKMM_BASEPATH: $ENV{GTKMM_BASEPATH}")
49 endif()
50
51 # detect current GTK+ backend
52 pkg_check_variable(gtk+-2.0 target)
53 message("GTK2 backend: ${GTK+_2.0_TARGET}")
54endif()
55
56# -----------------------------------------------------------------------------
10# CMake Configuration57# CMake Configuration
11# -----------------------------------------------------------------------------58# -----------------------------------------------------------------------------
12list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CMakeScripts/Modules")59list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CMakeScripts/Modules")
1360
14# avoid having empty buildtype61# avoid having empty buildtype
15set(CMAKE_BUILD_TYPE_INIT "Release")62set(CMAKE_BUILD_TYPE_INIT "Debug")
1663
17project(inkscape)64project(inkscape)
1865
@@ -41,29 +88,6 @@
41include(CMakeScripts/HelperFunctions.cmake)88include(CMakeScripts/HelperFunctions.cmake)
4289
43# -----------------------------------------------------------------------------90# -----------------------------------------------------------------------------
44# Set platform defaults (originally copied from darktable)
45# -----------------------------------------------------------------------------
46if(APPLE)
47 message("-- Mac OS X build detected, setting default features")
48 # prefer macports and/or user-installed libraries over system ones
49 #LIST(APPEND CMAKE_PREFIX_PATH /opt/local /usr/local)
50 set(CMAKE_FIND_FRAMEWORK "LAST")
51
52 # test and display relevant env variables
53 if(DEFINED ENV{CMAKE_PREFIX_PATH})
54 message("CMAKE_PREFIX_PATH: $ENV{CMAKE_PREFIX_PATH}")
55 endif()
56 if(DEFINED ENV{GTKMM_BASEPATH})
57 message("GTKMM_BASEPATH: $ENV{GTKMM_BASEPATH}")
58 endif()
59
60 # detect current GTK+ backend
61 pkg_check_variable(gtk+-2.0 target)
62 message("GTK2 backend: ${GTK+_2.0_TARGET}")
63
64endif(APPLE)
65
66# -----------------------------------------------------------------------------
67# Redirect output files91# Redirect output files
68# -----------------------------------------------------------------------------92# -----------------------------------------------------------------------------
69set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin CACHE INTERNAL "" )93set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin CACHE INTERNAL "" )
@@ -91,6 +115,7 @@
91option(WITH_NLS "Compile with Native Language Support (using gettext)" ON)115option(WITH_NLS "Compile with Native Language Support (using gettext)" ON)
92option(WITH_GTK3_EXPERIMENTAL "Enable compilation with GTK+3 (EXPERIMENTAL!)" OFF)116option(WITH_GTK3_EXPERIMENTAL "Enable compilation with GTK+3 (EXPERIMENTAL!)" OFF)
93117
118<<<<<<< TREE
94# -----------------------------------------------------------------------------119# -----------------------------------------------------------------------------
95# Test Harness120# Test Harness
96# -----------------------------------------------------------------------------121# -----------------------------------------------------------------------------
@@ -105,10 +130,11 @@
105endif()130endif()
106131
107include(CMakeScripts/ConfigPaths.cmake) # Installation Paths132include(CMakeScripts/ConfigPaths.cmake) # Installation Paths
133=======
134>>>>>>> MERGE-SOURCE
108include(CMakeScripts/DefineDependsandFlags.cmake) # Includes, Compiler Flags, and Link Libraries135include(CMakeScripts/DefineDependsandFlags.cmake) # Includes, Compiler Flags, and Link Libraries
109include(CMakeScripts/HelperMacros.cmake) # Misc Utility Macros136include(CMakeScripts/HelperMacros.cmake) # Misc Utility Macros
110137
111
112# -----------------------------------------------------------------------------138# -----------------------------------------------------------------------------
113# BAD HACKS, NEED TO INVESTIGATE MAKING THESE LESS BAD139# BAD HACKS, NEED TO INVESTIGATE MAKING THESE LESS BAD
114add_definitions(-D_FORTIFY_SOURCE=2)140add_definitions(-D_FORTIFY_SOURCE=2)
@@ -116,9 +142,11 @@
116add_definitions(-DHAVE_CONFIG_H)142add_definitions(-DHAVE_CONFIG_H)
117add_definitions(-DHAVE_CAIRO_PDF=1) # needed for src/libnrtype/Layout-TNG.h143add_definitions(-DHAVE_CAIRO_PDF=1) # needed for src/libnrtype/Layout-TNG.h
118add_definitions(-DHAVE_TR1_UNORDERED_SET) # XXX make an option!144add_definitions(-DHAVE_TR1_UNORDERED_SET) # XXX make an option!
145
119if(NOT WIN32)146if(NOT WIN32)
120 add_definitions(-fPIC)147 add_definitions(-fPIC)
121endif()148endif()
149
122#150#
123# end badness151# end badness
124# -----------------------------------------------------------------------------152# -----------------------------------------------------------------------------
@@ -156,27 +184,29 @@
156# -----------------------------------------------------------------------------184# -----------------------------------------------------------------------------
157# Man pages185# Man pages
158# -----------------------------------------------------------------------------186# -----------------------------------------------------------------------------
159include("CMakeScripts/Pod2man.cmake")187if(UNIX)
160188 include("CMakeScripts/Pod2man.cmake")
161# Load AUTHORS file contents into $INKSCAPE_AUTHORS189
162file(READ ${CMAKE_CURRENT_SOURCE_DIR}/AUTHORS content)190 # Load AUTHORS file contents into $INKSCAPE_AUTHORS
163string(REGEX REPLACE "^([^\n#]+)\n" "\\1;\n" content_list "${content}")191 file(READ ${CMAKE_CURRENT_SOURCE_DIR}/AUTHORS content)
164join(INKSCAPE_AUTHORS "," "${content_list}")192 string(REGEX REPLACE "^([^\n#]+)\n" "\\1;\n" content_list "${content}")
165193 join(INKSCAPE_AUTHORS "," "${content_list}")
166foreach(podfile194
167 man/inkscape.pod195 foreach(podfile
168 man/inkscape.de.pod196 man/inkscape.pod
169 man/inkscape.el.pod197 man/inkscape.de.pod
170 man/inkscape.fr.pod198 man/inkscape.el.pod
171 man/inkscape.ja.pod199 man/inkscape.fr.pod
172 man/inkscape.sk.pod200 man/inkscape.ja.pod
173 man/inkscape.zh_TW.pod201 man/inkscape.sk.pod
174 man/inkview.pod)202 man/inkscape.zh_TW.pod
175 set(POD_IN ${CMAKE_CURRENT_SOURCE_DIR}/${podfile}.in)203 man/inkview.pod)
176 set(POD_OUT ${CMAKE_CURRENT_BINARY_DIR}/${podfile})204 set(POD_IN ${CMAKE_CURRENT_SOURCE_DIR}/${podfile}.in)
177 configure_file(${POD_IN} ${POD_OUT})205 set(POD_OUT ${CMAKE_CURRENT_BINARY_DIR}/${podfile})
178 pod2man(${POD_OUT} ${INKSCAPE_VERSION} 1 "Inkscape Commands Manual")206 configure_file(${POD_IN} ${POD_OUT})
179endforeach()207 pod2man(${POD_OUT} ${INKSCAPE_VERSION} 1 "Inkscape Commands Manual")
208 endforeach()
209endif()
180210
181# -----------------------------------------------------------------------------211# -----------------------------------------------------------------------------
182# Installation212# Installation
@@ -191,10 +221,185 @@
191221
192 # this should probably be done no matter what the platform is, just set SHARE_INSTALL first222 # this should probably be done no matter what the platform is, just set SHARE_INSTALL first
193 add_subdirectory(share) 223 add_subdirectory(share)
224elseif(WIN32)
225 SET(CMAKE_INSTALL_PREFIX ${CMAKE_BINARY_DIR}/inkscape)
226
227 install(PROGRAMS
228 ${EXECUTABLE_OUTPUT_PATH}/inkscape.exe
229 ${EXECUTABLE_OUTPUT_PATH}/inkview.exe
230 DESTINATION ${CMAKE_INSTALL_PREFIX}
231 )
232
233 install(FILES
234 ${LIBRARY_OUTPUT_PATH}/libinkscape_base.dll
235 ${LIBRARY_OUTPUT_PATH}/libgrid2.dll
236 DESTINATION ${CMAKE_INSTALL_PREFIX}
237 )
238
239 # devlibs and mingw dlls
240 install(FILES
241 AUTHORS
242 COPYING
243 COPYING.LIB
244 NEWS
245 README
246 TRANSLATORS
247 ${DEVLIBS_BIN}/libatkmm-1.6-1.dll
248 ${DEVLIBS_BIN}/libglibmm-2.4-1.dll
249 ${DEVLIBS_BIN}/libgiomm-2.4-1.dll
250 ${DEVLIBS_BIN}/libgtkmm-2.4-1.dll
251 ${DEVLIBS_BIN}/libgdkmm-2.4-1.dll
252 ${DEVLIBS_BIN}/libpangomm-1.4-1.dll
253 ${DEVLIBS_BIN}/libcairomm-1.0-1.dll
254 ${DEVLIBS_BIN}/libsigc-2.0-0.dll
255 ${DEVLIBS_BIN}/libfreetype-6.dll
256 ${DEVLIBS_BIN}/libffi-6.dll
257 ${DEVLIBS_BIN}/libgc-1.dll
258 ${DEVLIBS_BIN}/libgsl-19.dll
259 ${DEVLIBS_BIN}/libgslcblas-0.dll
260 ${DEVLIBS_BIN}/libharfbuzz-0.dll
261 ${DEVLIBS_BIN}/liblzma-5.dll
262 ${DEVLIBS_BIN}/libaspell-15.dll
263 ${DEVLIBS_BIN}/libatk-1.0-0.dll
264 ${DEVLIBS_BIN}/libgdk-win32-2.0-0.dll
265 ${DEVLIBS_BIN}/libgdk_pixbuf-2.0-0.dll
266 ${DEVLIBS_BIN}/libglib-2.0-0.dll
267 ${DEVLIBS_BIN}/libgmodule-2.0-0.dll
268 ${DEVLIBS_BIN}/libgobject-2.0-0.dll
269 ${DEVLIBS_BIN}/libgtk-win32-2.0-0.dll
270 ${DEVLIBS_BIN}/libgthread-2.0-0.dll
271 ${DEVLIBS_BIN}/libgio-2.0-0.dll
272 ${DEVLIBS_BIN}/libcairo-2.dll
273 ${DEVLIBS_BIN}/libpixman-1-0.dll
274 ${DEVLIBS_BIN}/libpoppler-58.dll
275 ${DEVLIBS_BIN}/libpoppler-glib-8.dll
276 ${DEVLIBS_BIN}/libpangocairo-1.0-0.dll
277 ${DEVLIBS_BIN}/libpango-1.0-0.dll
278 ${DEVLIBS_BIN}/libpangoft2-1.0-0.dll
279 ${DEVLIBS_BIN}/libpangowin32-1.0-0.dll
280 ${DEVLIBS_BIN}/libfontconfig-1.dll
281 ${DEVLIBS_BIN}/libxml2-2.dll
282 ${DEVLIBS_BIN}/libxslt-1.dll
283 ${DEVLIBS_BIN}/libexslt-0.dll
284 ${DEVLIBS_BIN}/libexpat-1.dll
285 ${DEVLIBS_BIN}/librevenge-0.0.dll
286 ${DEVLIBS_BIN}/librevenge-stream-0.0.dll
287 ${DEVLIBS_BIN}/libwpg-0.3.dll
288 ${DEVLIBS_BIN}/libwpd-0.10.dll
289 ${DEVLIBS_BIN}/libvisio-0.1.dll
290 ${DEVLIBS_BIN}/libcdr-0.1.dll
291 ${DEVLIBS_BIN}/icuin56.dll
292 ${DEVLIBS_BIN}/icudt56.dll
293 ${DEVLIBS_BIN}/icuuc56.dll
294 ${DEVLIBS_BIN}/libjpeg-9.dll
295 ${DEVLIBS_BIN}/libpng16-16.dll
296 ${DEVLIBS_BIN}/libtiff-5.dll
297 ${DEVLIBS_BIN}/libexif-12.dll
298 ${DEVLIBS_BIN}/libcurl-4.dll
299 ${DEVLIBS_BIN}/zlib1.dll
300 ${DEVLIBS_BIN}/bz2-1.dll
301 ${DEVLIBS_BIN}/libiconv-2.dll
302 ${DEVLIBS_BIN}/libpopt-0.dll
303 ${DEVLIBS_BIN}/liblcms2-2.dll
304 ${DEVLIBS_BIN}/libMagick++-6.Q16-6.dll
305 ${DEVLIBS_BIN}/libMagickCore-6.Q16-2.dll
306 ${DEVLIBS_BIN}/libMagickWand-6.Q16-2.dll
307 ${DEVLIBS_BIN}/libintl-8.dll
308 ${DEVLIBS_BIN}/libpotrace-0.dll
309 ${MINGW_BIN}/libstdc++-6.dll
310 ${MINGW_BIN}/libwinpthread-1.dll
311 ${MINGW_BIN}/libgcc_s_seh-1.dll
312 ${MINGW_BIN}/libgomp-1.dll
313 DESTINATION ${CMAKE_INSTALL_PREFIX})
314
315 # Setup application data directories, poppler files, locales, icons and themes
316 file(MAKE_DIRECTORY
317 data
318 doc
319 modules
320 plugins)
321
322 install(DIRECTORY
323 data
324 doc
325 modules
326 plugins
327 share
328 DESTINATION ${CMAKE_INSTALL_PREFIX}
329 PATTERN Adwaita EXCLUDE # NOTE: The theme is not used on Windows.
330 PATTERN hicolor/index.theme EXCLUDE # NOTE: Empty index.theme in hicolor icon theme causes SIGSEGV.
331 PATTERN CMakeLists.txt EXCLUDE
332 PATTERN *.am EXCLUDE)
333
334 install(DIRECTORY ${DEVLIBS_PATH}/share/themes
335 DESTINATION ${CMAKE_INSTALL_PREFIX}/share)
336
337 install(DIRECTORY ${DEVLIBS_PATH}/share/poppler
338 DESTINATION ${CMAKE_INSTALL_PREFIX}/share)
339
340 install(DIRECTORY ${DEVLIBS_PATH}/etc/fonts
341 DESTINATION ${CMAKE_INSTALL_PREFIX}/etc)
194342
343 install(DIRECTORY ${DEVLIBS_PATH}/share/locale
344 DESTINATION ${CMAKE_INSTALL_PREFIX})
345
346 install(DIRECTORY ${DEVLIBS_PATH}/etc/gtk-2.0
347 DESTINATION ${CMAKE_INSTALL_PREFIX}/etc)
348
349 # GTK 2.0
350 install(DIRECTORY ${DEVLIBS_LIB}/gtk-2.0
351 DESTINATION ${CMAKE_INSTALL_PREFIX}/lib
352 FILES_MATCHING
353 PATTERN "*.dll"
354 PATTERN "*.cache")
355
356 install(DIRECTORY ${DEVLIBS_LIB}/gdk-pixbuf-2.0
357 DESTINATION ${CMAKE_INSTALL_PREFIX}/lib
358 FILES_MATCHING
359 PATTERN "*.dll"
360 PATTERN "*.cache")
361
362 # Aspell dictionaries
363 install(DIRECTORY ${DEVLIBS_LIB}/aspell-0.60
364 DESTINATION ${CMAKE_INSTALL_PREFIX}/lib)
365
366 # Necessary to run extensions on windows if it is not in the path
367 if (CMAKE_SYSTEM_PROCESSOR MATCHES "AMD64")
368 install(FILES
369 ${DEVLIBS_BIN}/gspawn-win64-helper.exe
370 ${DEVLIBS_BIN}/gspawn-win64-helper-console.exe
371 DESTINATION ${CMAKE_INSTALL_PREFIX})
372 else()
373 install(FILES
374 ${DEVLIBS_BIN}/gspawn-win32-helper.exe
375 ${DEVLIBS_BIN}/gspawn-win32-helper-console.exe
376 DESTINATION ${CMAKE_INSTALL_PREFIX})
377 endif()
378
379 # Perl
380 install(FILES
381 ${DEVLIBS_PATH}/perl/bin/perl58.dll
382 DESTINATION ${CMAKE_INSTALL_PREFIX})
383
384 # Python
385 install(FILES
386 ${DEVLIBS_PATH}/python/python.exe
387 ${DEVLIBS_PATH}/python/pythonw.exe
388 ${DEVLIBS_PATH}/python/python27.dll
389 DESTINATION ${CMAKE_INSTALL_PREFIX}/python)
390
391 install(DIRECTORY ${DEVLIBS_PATH}/python/lib
392 DESTINATION ${CMAKE_INSTALL_PREFIX}/python)
393
394 install(DIRECTORY ${DEVLIBS_PATH}/python/dlls
395 DESTINATION ${CMAKE_INSTALL_PREFIX}/python)
195else()396else()
397<<<<<<< TREE
196 # TODO, WIN32, APPLE/OSX, MinGW398 # TODO, WIN32, APPLE/OSX, MinGW
197399
400=======
401 # TODO: Mac OS X
402>>>>>>> MERGE-SOURCE
198endif()403endif()
199404
200# -----------------------------------------------------------------------------405# -----------------------------------------------------------------------------
@@ -245,6 +450,13 @@
245message("CMAKE_C_COMPILER: ${CMAKE_C_COMPILER}")450message("CMAKE_C_COMPILER: ${CMAKE_C_COMPILER}")
246message("CMAKE_CXX_COMPILER: ${CMAKE_CXX_COMPILER}")451message("CMAKE_CXX_COMPILER: ${CMAKE_CXX_COMPILER}")
247message("CMAKE_BUILD_TYPE: ${CMAKE_BUILD_TYPE}")452message("CMAKE_BUILD_TYPE: ${CMAKE_BUILD_TYPE}")
453
454if(WIN32)
455message("CMAKE_PREFIX_PATH: ${CMAKE_PREFIX_PATH}")
456message("CMAKE_FIND_LIBRARY_PREFIXES: ${CMAKE_FIND_LIBRARY_PREFIXES}")
457message("CMAKE_FIND_LIBRARY_SUFFIXES: ${CMAKE_FIND_LIBRARY_SUFFIXES}")
458endif()
459
248message("")460message("")
249461
250# dependency info462# dependency info
@@ -263,4 +475,23 @@
263message("WITH_NLS: ${WITH_NLS}")475message("WITH_NLS: ${WITH_NLS}")
264message("WITH_OPENMP: ${WITH_OPENMP}")476message("WITH_OPENMP: ${WITH_OPENMP}")
265message("WITH_PROFILING: ${WITH_PROFILING}")477message("WITH_PROFILING: ${WITH_PROFILING}")
478
479message("")
480
481if(WIN32)
482message("HAVE_MINGW: ${HAVE_MINGW}")
483message("HAVE_MINGW64: ${HAVE_MINGW64}")
484message("MINGW_PATH: ${MINGW_PATH}")
485message("MINGW_ARCH: ${MINGW_ARCH}")
486message("MINGW_ARCH_PATH: ${MINGW_ARCH_PATH}")
487message("MINGW64_INCLUDE: ${MINGW64_INCLUDE}")
488message("MINGW64_LIB: ${MINGW64_LIB}")
489message("DEVLIBS_PATH: ${DEVLIBS_PATH}")
490message("DEVLIBS_LIB: ${DEVLIBS_LIB}")
491message("DEVLIBS_BIN: ${DEVLIBS_BIN}")
492message("PKG_CONFIG_PATH: ${PKG_CONFIG_PATH}")
493message("GS_PATH ${GS_PATH}")
494message("GS_BIN ${GS_BIN}")
495endif()
496
266message("------------------------------------------------------------------------")497message("------------------------------------------------------------------------")
267498
=== modified file 'CMakeScripts/ConfigPaths.cmake'
--- CMakeScripts/ConfigPaths.cmake 2016-01-17 07:05:58 +0000
+++ CMakeScripts/ConfigPaths.cmake 2016-06-28 06:54:18 +0000
@@ -1,9 +1,153 @@
1message(STATUS "Creating build files in: ${CMAKE_CURRENT_BINARY_DIR}")1message(STATUS "Creating build files in: ${CMAKE_CURRENT_BINARY_DIR}")
22
3if(WIN32)3if(WIN32)
4 # Directory containing the precompiled Inkscape libraries. Usually c:\devlibs or c:\devlibs64
5 set(DEVLIBS_PATH C:/devlibs64)
6
7 # Directory containing the MinGW instance used for compilation. Usually c:\mingw or c:\mingw64
8 set(MINGW_PATH C:/mingw64)
9
10 # Directory containing the Ghostscript installation.
11 set(GS_PATH C:/latex/gs/gs8.61)
12
13 # Normalize directory separator slashes.
14 string(REGEX REPLACE "\\\\" "/" DEVLIBS_PATH ${DEVLIBS_PATH})
15 string(REGEX REPLACE "\\\\" "/" MINGW_PATH ${MINGW_PATH})
16 string(REGEX REPLACE "\\\\" "/" GS_PATH ${GS_PATH})
17
18 # =============== DEVLIBS CHECKS ===============
19
20 # Directory containing the compile time .dll.a and .a files.
21 set(DEVLIBS_LIB "${DEVLIBS_PATH}/lib")
22
23 if(NOT EXISTS "${DEVLIBS_LIB}")
24 message(FATAL_ERROR "Inkscape development libraries directory does not exist: ${DEVLIBS_LIB}")
25 endif()
26
27 # Add devlibs libraries to linker path.
28 link_directories(${DEVLIBS_LIB})
29
30 set(DEVLIBS_INCLUDE ${DEVLIBS_PATH}/include)
31
32 if(NOT EXISTS ${DEVLIBS_INCLUDE})
33 message(FATAL_ERROR "Inkscape development libraries directory does not exist: ${DEVLIBS_INCLUDE}")
34 endif()
35
36 # Add general MinGW headers to compiler include path.
37 #include_directories(${DEVLIBS_INCLUDE})
38
39 # Directory containing the precompiled .dll files.
40 set(DEVLIBS_BIN ${DEVLIBS_PATH}/bin)
41
42 if(NOT EXISTS ${DEVLIBS_BIN})
43 message(FATAL_ERROR "Inkscape development binaries directory does not exist: ${DEVLIBS_BIN}")
44 endif()
45
46 # Directory containing the pkgconfig .pc files.
47 set(PKG_CONFIG_PATH "${DEVLIBS_PATH}/lib/pkgconfig")
48
49 if(NOT EXISTS "${PKG_CONFIG_PATH}")
50 message(FATAL_ERROR "pkgconfig directory does not exist: ${PKG_CONFIG_PATH}")
51 endif()
52
53 # Add the devlibs directories to the paths used to find libraries and programs.
54 list(APPEND CMAKE_PREFIX_PATH ${DEVLIBS_PATH})
55
56 # =============== MINGW CHECKS ===============
57
58 # We are in a MinGW environment.
59 set(HAVE_MINGW ON)
60
61 # Try to determine the MinGW processor architecture.
62 if(EXISTS ${MINGW_PATH}/mingw32)
63 set(HAVE_MINGW64 OFF)
64 set(MINGW_ARCH mingw32)
65 elseif(EXISTS ${MINGW_PATH}/x86_64-w64-mingw32)
66 set(HAVE_MINGW64 ON)
67 set(MINGW_ARCH x86_64-w64-mingw32)
68 else()
69 message(FATAL_ERROR "Unable to determine MinGW processor architecture. Are you using an unsupported MinGW version?")
70 endif()
71
72 # Path to processor architecture specific binaries and libs.
73 set(MINGW_ARCH_PATH ${MINGW_PATH}/${MINGW_ARCH})
74
75 set(MINGW_BIN ${MINGW_PATH}/bin)
76
77 if(NOT EXISTS ${MINGW_BIN})
78 message(FATAL_ERROR "MinGW binary directory does not exist: ${MINGW_BIN}")
79 endif()
80
81 set(MINGW_LIB ${MINGW_PATH}/lib)
82
83 if(NOT EXISTS ${MINGW_LIB})
84 message(FATAL_ERROR "MinGW library directory does not exist: ${MINGW_LIB}")
85 endif()
86
87 # Add MinGW libraries to linker path.
88 link_directories(${MINGW_LIB})
89
90 set(MINGW_INCLUDE ${MINGW_PATH}/include)
91
92 if(NOT EXISTS ${MINGW_INCLUDE})
93 message(FATAL_ERROR "MinGW include directory does not exist: ${MINGW_INCLUDE}")
94 endif()
95
96 # Add general MinGW headers to compiler include path.
97 include_directories(${MINGW_INCLUDE})
98
99 if(HAVE_MINGW64)
100 set(MINGW64_LIB ${MINGW_ARCH_PATH}/lib)
101
102 if(NOT EXISTS ${MINGW64_LIB})
103 message(FATAL_ERROR "MinGW 64-Bit libraries directory does not exist: ${MINGW64_LIB}")
104 endif()
105
106 # Add 64-Bit libraries to linker path.
107 link_directories(${MINGW64_LIB})
108
109 set(MINGW64_INCLUDE ${MINGW_ARCH_PATH}/include)
110
111 if(NOT EXISTS ${MINGW64_INCLUDE})
112 message(FATAL_ERROR "MinGW 64-Bit include directory does not exist: ${MINGW64_INCLUDE}")
113 endif()
114
115 set(MINGW64_INCLUDE_SDL ${MINGW64_INCLUDE}/c++)
116
117 if(NOT EXISTS ${MINGW64_INCLUDE_SDL})
118 message(FATAL_ERROR "MinGW 64-Bit SDL include directory does not exist: ${MINGW64_INCLUDE_SDL}")
119 endif()
120
121 # Add 64-Bit MinGW headers to compiler include path.
122 include_directories(${MINGW64_INCLUDE})
123 #include_directories(${MINGW64_INCLUDE_SDL})
124 endif()
125
126 # =============== GHOSTSCRIPT CHECKS ===============
127
128 # Check for Ghostscript.
129 set(GS_BIN "${GS_PATH}/bin")
130
131 if(EXISTS "${GS_BIN}")
132 set(HAVE_GS_BIN ON)
133 else()
134 set(HAVE_GS_BIN OFF)
135 endif()
136
137 # =============== LIBRARY AND LINKER ===============
138
139 # Tweak CMake into using Unix-style library names.
140 set(CMAKE_FIND_LIBRARY_PREFIXES "lib")
141 set(CMAKE_FIND_LIBRARY_SUFFIXES ".dll.a" ".dll")
142
143 if(NOT HAVE_MINGW64)
144 list(APPEND CMAKE_FIND_LIBRARY_SUFFIXES ".a")
145 endif()
146
147 # Directory containing the current locale (translations).
4 set(PACKAGE_LOCALE_DIR "locale")148 set(PACKAGE_LOCALE_DIR "locale")
5 set(SHARE_INSTALL "share" CACHE STRING "Data file install path. Must be a relative path (from CMAKE_INSTALL_PREFIX), with no trailing slash.")149 set(SHARE_INSTALL "share" CACHE STRING "Data file install path. Must be a relative path (from CMAKE_INSTALL_PREFIX), with no trailing slash.")
6else(WIN32)150elseif(UNIX)
7 # TODO: check and change this to correct value:151 # TODO: check and change this to correct value:
8 if(NOT PACKAGE_LOCALE_DIR)152 if(NOT PACKAGE_LOCALE_DIR)
9 set(PACKAGE_LOCALE_DIR "${CMAKE_INSTALL_PREFIX}/share/locale") # packagers might overwrite this153 set(PACKAGE_LOCALE_DIR "${CMAKE_INSTALL_PREFIX}/share/locale") # packagers might overwrite this
@@ -13,4 +157,4 @@
13 set(SHARE_INSTALL "share" CACHE STRING "Data file install path. Must be a relative path (from CMAKE_INSTALL_PREFIX), with no trailing slash.")157 set(SHARE_INSTALL "share" CACHE STRING "Data file install path. Must be a relative path (from CMAKE_INSTALL_PREFIX), with no trailing slash.")
14 endif(NOT SHARE_INSTALL)158 endif(NOT SHARE_INSTALL)
15 mark_as_advanced(SHARE_INSTALL)159 mark_as_advanced(SHARE_INSTALL)
16endif(WIN32)160endif()
17161
=== modified file 'CMakeScripts/DefineDependsandFlags.cmake'
--- CMakeScripts/DefineDependsandFlags.cmake 2016-06-09 09:03:26 +0000
+++ CMakeScripts/DefineDependsandFlags.cmake 2016-06-28 06:54:18 +0000
@@ -15,72 +15,27 @@
15# Files we include15# Files we include
16# ----------------------------------------------------------------------------16# ----------------------------------------------------------------------------
17if(WIN32)17if(WIN32)
18message("---------------- BEGIN: Win32 ----------------")18 # Set the link and include directories
1919 get_property(dirs DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY INCLUDE_DIRECTORIES)
20 # The name of the target operating system20
21 set(CMAKE_SYSTEM_NAME Windows)21 # MinGW supplied STL does not define these floating point constants.. :/
2222 add_definitions(-DFLT_EPSILON=1e-9)
23 message("CMAKE_SYSTEM_NAME: " ${CMAKE_SYSTEM_NAME})23 add_definitions(-DFLT_MAX=1e+37)
2424 add_definitions(-DFLT_MIN=1e-37)
25 set(CMAKE_C_COMPILER gcc)25
26 set(CMAKE_CXX_COMPILER g++)26 list(APPEND INKSCAPE_LIBS "-lmscms")
27 set(CMAKE_RC_COMPILER windres)27
2828 list(APPEND INKSCAPE_CXX_FLAGS "-mwindows")
29 # Adjust the command line parameters for windres to the verion of MinGW.29 list(APPEND INKSCAPE_CXX_FLAGS "-mthreads")
30 set(CMAKE_RC_COMPILER_INIT windres)30
31 enable_language(RC)31 if(HAVE_MINGW64)
32 set(CMAKE_RC_COMPILE_OBJECT "<CMAKE_RC_COMPILER> -O coff -i <SOURCE> -o <OBJECT>")32 list(APPEND INKSCAPE_LIBS "-lgomp")
3333 list(APPEND INKSCAPE_LIBS "-lwinpthread")
34 # Here is the target environment located34
35 set(CMAKE_FIND_ROOT_PATH $ENV{MINGW_PATH}/)35 list(APPEND INKSCAPE_CXX_FLAGS "-m64")
3636 else()
37 message("CMAKE_FIND_ROOT_PATH: " ${CMAKE_FIND_ROOT_PATH})37 list(APPEND INKSCAPE_CXX_FLAGS "-m32")
3838 endif()
39 # Tweak CMake into using Unix-style library names.
40 set(CMAKE_FIND_LIBRARY_PREFIXES "lib")
41 set(CMAKE_FIND_LIBRARY_SUFFIXES ".dll.a" ".dll")
42
43 message("CMAKE_FIND_LIBRARY_PREFIXES: " ${CMAKE_FIND_LIBRARY_PREFIXES})
44 message("CMAKE_FIND_LIBRARY_SUFFIXES: " ${CMAKE_FIND_LIBRARY_SUFFIXES})
45
46 set(SDL_INCLUDE_DIR ${CMAKE_FIND_ROOT_PATH}x86_64-w64-mingw32/include/c++)
47
48 message("SDL_INCLUDE_DIR: " ${SDL_INCLUDE_DIR})
49
50 #if (${CMAKE_SYSTEM_PROCESSOR} MATCHES "^amd64")
51 link_directories($ENV{MINGW_PATH}/lib)
52 link_directories($ENV{DEVLIBS_PATH}/lib)
53 link_directories($ENV{MINGW_PATH}/x86_64-w64-mingw32/lib)
54 link_directories($ENV{WINDIR}/system32)
55
56 include_directories($ENV{MINGW_PATH}/include)
57
58 include_directories($ENV{MINGW_PATH}/x86_64-w64-mingw32/include)
59 include_directories($ENV{MINGW_PATH}/x86_64-w64-mingw32/include/c++)
60 #endif ()
61
62 get_property(dirs DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY INCLUDE_DIRECTORIES)
63
64 foreach(dir ${dirs})
65 message("CMAKE_INCLUDE_DIR:" ${dir})
66 endforeach()
67
68 add_definitions(-DFLT_EPSILON=1e-9)
69 add_definitions(-DFLT_MAX=1e+37)
70 add_definitions(-DFLT_MIN=1e-37)
71
72 list(APPEND INKSCAPE_LIBS "-lgomp")
73 list(APPEND INKSCAPE_LIBS "-lwinpthread")
74 list(APPEND INKSCAPE_LIBS "-lmscms")
75
76 list(APPEND INKSCAPE_CXX_FLAGS "-mwindows")
77 list(APPEND INKSCAPE_CXX_FLAGS "-mthreads")
78 list(APPEND INKSCAPE_CXX_FLAGS "-m64")
79
80 # Try to compile using C++ 11.
81 set(CMAKE_CXX_STANDARD 11)
82
83 message("---------------- END: Win32 ----------------")
84endif()39endif()
8540
86pkg_check_modules(INKSCAPE_DEP REQUIRED pangocairo pangoft2 fontconfig gthread-2.0 gsl gmodule-2.0)41pkg_check_modules(INKSCAPE_DEP REQUIRED pangocairo pangoft2 fontconfig gthread-2.0 gsl gmodule-2.0)
8742
=== added directory 'build'
=== added file 'build/configure.bat'
--- build/configure.bat 1970-01-01 00:00:00 +0000
+++ build/configure.bat 2016-06-28 06:54:18 +0000
@@ -0,0 +1,9 @@
1REM Delete the CMake cache. Needed when changes on the CMakeLists should be applied in a consistent way.
2del CMakeCache.txt
3rmdir /s /q CMakeFiles
4
5REM Reset the console colors just in case CMake screwed them up again.
6Color 07
7
8REM Configure using the MinGW compiler chain.
9cmake .. -G "MinGW Makefiles"
0\ No newline at end of file10\ No newline at end of file
111
=== added file 'build/touch.bat'
--- build/touch.bat 1970-01-01 00:00:00 +0000
+++ build/touch.bat 2016-06-28 06:54:18 +0000
@@ -0,0 +1,4 @@
1REM NOTE: Use this command to significantly speed up compilation when changing the CMake config.
2
3REM Updating the modification date of object files so they do not need to be recompiled..
4forfiles /s /m *.obj /c "cmd /c copy /b @path +,,"
0\ No newline at end of file5\ No newline at end of file
16
=== modified file 'config.h.cmake'
--- config.h.cmake 2016-06-05 07:13:26 +0000
+++ config.h.cmake 2016-06-28 06:54:18 +0000
@@ -232,10 +232,18 @@
232#cmakedefine HAVE_ZLIB_H 1232#cmakedefine HAVE_ZLIB_H 1
233233
234/* Base data directory -- only path-prefix.h should use it! */234/* Base data directory -- only path-prefix.h should use it! */
235#ifdef WIN32
236#define INKSCAPE_DATADIR ""
237#else
235#define INKSCAPE_DATADIR "${CMAKE_INSTALL_PREFIX}/share"238#define INKSCAPE_DATADIR "${CMAKE_INSTALL_PREFIX}/share"
239#endif
236240
237/* Base library directory -- only path-prefix.h should use it! */241/* Base library directory -- only path-prefix.h should use it! */
242#ifdef WIN32
243#define INKSCAPE_LIBDIR "\\lib"
244#else
238#define INKSCAPE_LIBDIR "${CMAKE_INSTALL_PREFIX}/lib"245#define INKSCAPE_LIBDIR "${CMAKE_INSTALL_PREFIX}/lib"
246#endif
239247
240/* Define to 1 if `lstat' dereferences a symlink specified with a trailing248/* Define to 1 if `lstat' dereferences a symlink specified with a trailing
241 slash. */249 slash. */
242250
=== renamed file 'configure.bat' => 'configure.bat.THIS'
=== modified file 'mingwenv.bat'
--- mingwenv.bat 2014-07-28 20:11:22 +0000
+++ mingwenv.bat 2016-06-28 06:54:18 +0000
@@ -1,6 +1,6 @@
1@echo Setting environment variables for MinGw build of Inkscape1@echo Setting environment variables for MinGw build of Inkscape
2IF "%DEVLIBS_PATH%"=="" set DEVLIBS_PATH=c:\devlibs2IF "%DEVLIBS_PATH%"=="" set DEVLIBS_PATH=c:\devlibs64
3IF "%MINGW_PATH%"=="" set MINGW_PATH=c:\mingw3IF "%MINGW_PATH%"=="" set MINGW_PATH=c:\mingw64
4set MINGW_BIN=%MINGW_PATH%\bin4set MINGW_BIN=%MINGW_PATH%\bin
5set PKG_CONFIG_PATH=%DEVLIBS_PATH%\lib\pkgconfig5set PKG_CONFIG_PATH=%DEVLIBS_PATH%\lib\pkgconfig
6set GS_BIN=C:\latex\gs\gs8.61\bin6set GS_BIN=C:\latex\gs\gs8.61\bin
77
=== modified file 'src/CMakeLists.txt'
--- src/CMakeLists.txt 2016-06-12 08:25:42 +0000
+++ src/CMakeLists.txt 2016-06-28 06:54:18 +0000
@@ -2,10 +2,6 @@
2# Define the main source2# Define the main source
3# -----------------------------------------------------------------------------3# -----------------------------------------------------------------------------
44
5set(main_SRC
6 main.cpp
7)
8
9set(sp_SRC5set(sp_SRC
10 attribute-rel-css.cpp6 attribute-rel-css.cpp
11 attribute-rel-svg.cpp7 attribute-rel-svg.cpp
@@ -423,21 +419,6 @@
423 version.h419 version.h
424)420)
425421
426if(WIN32)
427 list(APPEND inkscape_SRC
428 inkscape.rc
429 registrytool.cpp
430 #deptool.cpp
431 winconsole.cpp
432 winmain.cpp
433
434 # -------
435 # Headers
436 registrytool.h
437 )
438endif()
439
440
441# -----------------------------------------------------------------------------422# -----------------------------------------------------------------------------
442# Generate version file423# Generate version file
443# -----------------------------------------------------------------------------424# -----------------------------------------------------------------------------
@@ -505,8 +486,26 @@
505# -----------------------------------------------------------------------------486# -----------------------------------------------------------------------------
506# Setup the executable487# Setup the executable
507# -----------------------------------------------------------------------------488# -----------------------------------------------------------------------------
508#add_inkscape_lib(sp_LIB "${sp_SRC}")489
509#add_inkscape_lib(inkscape_LIB "${inkscape_SRC}")490if(WIN32)
491 # Sources for the inkscape executable on Windows.
492 set(main_SRC
493 registrytool.h
494 registrytool.cpp
495 main.cpp
496 winmain.cpp
497 #winconsole.cpp
498 )
499
500 # Add the platform specific resource files (enabling the app icon).
501 if(${HAVE_MINGW64})
502 list(APPEND main_SRC inkscape-x64.rc)
503 else()
504 list(APPEND main_SRC inkscape.rc)
505 endif()
506else()
507 set(main_SRC main.cpp)
508endif()
510509
511# Build everything except main and inkview.c in a shared library.510# Build everything except main and inkview.c in a shared library.
512add_library(inkscape_base SHARED ${inkscape_SRC} ${sp_SRC})511add_library(inkscape_base SHARED ${inkscape_SRC} ${sp_SRC})
@@ -515,6 +514,18 @@
515add_executable(inkscape ${main_SRC} )514add_executable(inkscape ${main_SRC} )
516add_executable(inkview inkview.cpp )515add_executable(inkview inkview.cpp )
517516
517<<<<<<< TREE
518=======
519if(UNIX)
520# message after building.
521add_custom_command(
522 TARGET inkscape
523 POST_BUILD MAIN_DEPENDENCY inkscape
524 COMMAND ${CMAKE_COMMAND} -E echo 'now run: \"make install\" to copy runtime files & scripts to ${CMAKE_INSTALL_PREFIX}'
525)
526endif()
527
528>>>>>>> MERGE-SOURCE
518add_dependencies(inkscape inkscape_version)529add_dependencies(inkscape inkscape_version)
519530
520if(WITH_DBUS)531if(WITH_DBUS)
@@ -525,11 +536,9 @@
525 # order from automake536 # order from automake
526 #sp_LIB537 #sp_LIB
527 #nrtype_LIB538 #nrtype_LIB
528
529 #inkscape_LIB539 #inkscape_LIB
530 #sp_LIB # annoying, we need both!540 #sp_LIB # annoying, we need both!
531 nrtype_LIB # annoying, we need both!541 nrtype_LIB # annoying, we need both!
532
533 croco_LIB542 croco_LIB
534 avoid_LIB543 avoid_LIB
535 cola_LIB544 cola_LIB
@@ -548,15 +557,19 @@
548 list (INSERT INKSCAPE_TARGET_LIBS 0 "gdl_LIB")557 list (INSERT INKSCAPE_TARGET_LIBS 0 "gdl_LIB")
549endif()558endif()
550559
551560<<<<<<< TREE
552561
553562
563
564=======
565>>>>>>> MERGE-SOURCE
554# Link the inkscape_base library against all external dependencies566# Link the inkscape_base library against all external dependencies
555target_link_libraries(inkscape_base ${INKSCAPE_TARGET_LIBS})567target_link_libraries(inkscape_base ${INKSCAPE_TARGET_LIBS})
556568
557# Link inkscape and inkview against inkscape_base569# Link inkscape and inkview against inkscape_base
558target_link_libraries(inkscape inkscape_base )570target_link_libraries(inkscape inkscape_base )
559target_link_libraries(inkview inkscape_base)571target_link_libraries(inkview inkscape_base)
572<<<<<<< TREE
560573
561#Define the installation574#Define the installation
562install(575install(
@@ -567,3 +580,5 @@
567 )580 )
568581
569 582
583=======
584>>>>>>> MERGE-SOURCE
570585
=== removed file 'touch.bat'
--- touch.bat 2016-04-16 15:59:22 +0000
+++ touch.bat 1970-01-01 00:00:00 +0000
@@ -1,1 +0,0 @@
1forfiles /s /m *.obj /c "cmd /c copy /b @path +,,"
2\ No newline at end of file0\ No newline at end of file