1 ####################################################################
3 ####################################################################
5 ADD_DEFINITIONS(-DLOCALEDIR="${CMAKE_INSTALL_PREFIX}/share/locale" -DTEXTDOMAIN="zypp" )
7 INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR})
8 #FILE(WRITE filename "message to write"... )
71 VendorSupportOptions.cc
166 VendorSupportOptions.h
176 INSTALL( FILES ${zypp_HEADERS} DESTINATION "${CMAKE_INSTALL_PREFIX}/include/zypp" )
179 base/InterProcessMutex.cc
188 base/ReferenceCounted.cc
192 base/ExternalDataSource.cc
194 base/UserRequestException.cc
196 base/ProfilingFormater.cc
200 SET( zypp_base_HEADERS
201 base/InterProcessMutex.h
209 base/DefaultFalseBool.h
210 base/DefaultIntegral.h
214 base/UserRequestException.h
215 base/ExternalDataSource.h
230 base/ProfilingFormater.h
231 base/ProvideNumericId.h
233 base/ReferenceCounted.h
245 DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/base
249 media/MediaException.cc
251 media/MediaHandler.cc
262 media/MediaManager.cc
263 media/MediaUserAuth.cc
264 media/CredentialFileReader.cc
265 media/CredentialManager.cc
269 SET( zypp_media_HEADERS
276 media/MediaException.h
283 media/MediaUserAuth.h
286 media/CredentialFileReader.h
287 media/CredentialManager.h
292 ${zypp_media_HEADERS}
293 DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/media
296 SET( zypp_media_proxyinfo_SRCS
297 media/proxyinfo/ProxyInfoSysconfig.cc
300 SET( zypp_media_proxyinfo_HEADERS
301 media/proxyinfo/ProxyInfoImpl.h
302 media/proxyinfo/ProxyInfoSysconfig.h
303 media/proxyinfo/ProxyInfos.h
307 ${zypp_media_proxyinfo_HEADERS}
308 DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/media/proxyinfo
311 SET( zypp_parser_SRCS
312 parser/ParseException.cc
315 parser/RepoFileReader.cc
316 parser/RepoindexFileReader.cc
317 parser/ProductConfReader.cc
318 parser/ServiceFileReader.cc
321 SET( zypp_parser_HEADERS
322 parser/ParseException.h
325 parser/ParserProgress.h
326 parser/RepoFileReader.h
327 parser/ProductConfReader.h
328 parser/xml_escape_parser.hpp
329 parser/RepoindexFileReader.h
330 parser/ServiceFileReader.h
334 ${zypp_parser_HEADERS}
335 DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/parser
338 SET( zypp_parser_susetags_SRCS
339 parser/susetags/RepoIndex.cc
340 parser/susetags/ContentFileReader.cc
343 SET( zypp_parser_susetags_HEADERS
344 parser/susetags/RepoIndex.h
345 parser/susetags/ContentFileReader.h
349 ${zypp_parser_susetags_HEADERS}
350 DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/parser/susetags
353 SET( zypp_parser_plaindir_SRCS
354 parser/plaindir/RepoParser.cc
357 SET( zypp_parser_plaindir_HEADERS
358 parser/plaindir/RepoParser.h
362 ${zypp_parser_plaindir_HEADERS}
363 DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/parser/plaindir
366 SET( zypp_parser_xml_SRCS
368 parser/xml/ParseDef.cc
369 parser/xml/ParseDefConsume.cc
370 parser/xml/ParseDefException.cc
372 parser/xml/XmlString.cc
373 parser/xml/libxmlfwd.cc
374 parser/xml/xml_escape_parser.cpp
377 SET( zypp_parser_xml_HEADERS
379 parser/xml/ParseDef.h
380 parser/xml/ParseDefConsume.h
381 parser/xml/ParseDefException.h
382 parser/xml/ParseDefTraits.h
384 parser/xml/XmlEscape.h
385 parser/xml/XmlString.h
386 parser/xml/libxmlfwd.h
387 parser/xml/xml_escape_parser.hpp
391 ${zypp_parser_xml_HEADERS}
392 DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/parser/xml
395 SET( zypp_parser_yum_SRCS
396 parser/yum/RepomdFileReader.cc
397 parser/yum/PatchesFileReader.cc
400 SET( zypp_parser_yum_HEADERS
401 parser/yum/RepomdFileReader.h
402 parser/yum/PatchesFileReader.h
406 ${zypp_parser_yum_HEADERS}
407 DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/parser/yum
410 SET( zypp_parser_ws_SRCS
411 parser/ws/WebpinResultFileReader.cc
414 SET( zypp_parser_ws_HEADERS
415 parser/ws/WebpinResultFileReader.h
419 ${zypp_parser_ws_HEADERS}
420 DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/parser/ws
425 pool/GetResolvablesToInsDel.cc
430 SET( zypp_pool_HEADERS
431 pool/GetResolvablesToInsDel.h
440 DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/pool
443 SET( zypp_solver_detail_SRCS
444 solver/detail/Helper.cc
445 solver/detail/InstallOrder.cc
446 solver/detail/ProblemSolutionIgnore.cc
447 solver/detail/ProblemSolutionCombi.cc
448 solver/detail/Resolver.cc
449 solver/detail/ResolverUpgrade.cc
450 solver/detail/Resolver_problems.cc
451 solver/detail/SolutionAction.cc
452 solver/detail/Testcase.cc
453 solver/detail/SolverQueueItem.cc
454 solver/detail/SolverQueueItemInstall.cc
455 solver/detail/SolverQueueItemDelete.cc
456 solver/detail/SolverQueueItemUpdate.cc
457 solver/detail/SolverQueueItemInstallOneOf.cc
458 solver/detail/SolverQueueItemLock.cc
459 solver/detail/SATResolver.cc
460 solver/detail/SystemCheck.cc
463 SET( zypp_solver_detail_HEADERS
464 solver/detail/Helper.h
465 solver/detail/InstallOrder.h
466 solver/detail/ProblemSolutionIgnore.h
467 solver/detail/ProblemSolutionCombi.h
468 solver/detail/Resolver.h
469 solver/detail/SolutionAction.h
470 solver/detail/Testcase.h
471 solver/detail/Types.h
472 solver/detail/SolverQueueItem.h
473 solver/detail/SolverQueueItemInstall.h
474 solver/detail/SolverQueueItemDelete.h
475 solver/detail/SolverQueueItemUpdate.h
476 solver/detail/SolverQueueItemInstallOneOf.h
477 solver/detail/SolverQueueItemLock.h
478 solver/detail/SATResolver.h
479 solver/detail/SystemCheck.h
483 ${zypp_solver_detail_HEADERS}
484 DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/solver/detail
499 SET( zypp_sat_HEADERS
513 DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/sat
516 SET( zypp_sat_detail_SRCS
517 sat/detail/PoolImpl.cc
520 SET( zypp_sat_detail_HEADERS
521 sat/detail/PoolMember.h
522 sat/detail/PoolImpl.h
526 ${zypp_sat_detail_HEADERS}
527 DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/sat/detail
531 SET( zypp_target_SRCS
532 target/RequestedLocalesFile.cc
533 target/SoftLocksFile.cc
534 target/HardLocksFile.cc
535 target/CommitPackageCache.cc
536 target/CommitPackageCacheImpl.cc
537 target/CommitPackageCacheReadAhead.cc
538 target/TargetCallbackReceiver.cc
539 target/TargetException.cc
543 SET( zypp_target_HEADERS
544 target/RequestedLocalesFile.h
545 target/SoftLocksFile.h
546 target/HardLocksFile.h
547 target/CommitPackageCache.h
548 target/CommitPackageCacheImpl.h
549 target/CommitPackageCacheReadAhead.h
550 target/TargetCallbackReceiver.h
551 target/TargetException.h
556 ${zypp_target_HEADERS}
557 DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/target
560 SET( zypp_target_hal_SRCS
562 target/hal/HalContext.cc
565 SET( zypp_target_hal_HEADERS
567 target/hal/HalContext.h
568 target/hal/HalException.h
572 ${zypp_target_hal_HEADERS}
573 DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/target/hal
576 SET( zypp_target_modalias_SRCS
577 target/modalias/Modalias.cc
580 SET( zypp_target_modalias_HEADERS
581 target/modalias/Modalias.h
585 ${zypp_target_modalias_HEADERS}
586 DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/target/modalias
589 SET( zypp_target_rpm_SRCS
590 target/rpm/BinHeader.cc
591 target/rpm/RpmCallbacks.cc
593 target/rpm/RpmException.cc
594 target/rpm/RpmHeader.cc
595 target/rpm/librpmDb.cc
596 target/rpm/librpmDb.cv3.cc
599 SET( zypp_target_rpm_HEADERS
600 target/rpm/BinHeader.h
601 target/rpm/RpmCallbacks.h
602 target/rpm/RpmFlags.h
604 target/rpm/RpmException.h
605 target/rpm/RpmHeader.h
607 target/rpm/librpmDb.h
611 ${zypp_target_rpm_HEADERS}
612 DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/target/rpm
615 SET( zypp_thread_SRCS
619 SET( zypp_thread_HEADERS
621 thread/MutexException.h
627 ${zypp_thread_HEADERS}
628 DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/thread
635 ui/UserWantedPackages.cc
642 ui/SelectableTraits.h
644 ui/UserWantedPackages.h
649 DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/ui
657 SET( zypp_url_HEADERS
665 DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/url
668 SET( zypp_zypp_detail_SRCS
669 zypp_detail/ZYppImpl.cc
672 SET( zypp_zypp_detail_HEADERS
673 zypp_detail/ZYppImpl.h
674 zypp_detail/ZYppReadOnlyHack.h
678 ${zypp_zypp_detail_HEADERS}
679 DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/zypp_detail
684 repo/RepoException.cc
687 repo/PackageProvider.cc
688 repo/SrcPackageProvider.cc
689 repo/RepoProvideFile.cc
690 repo/DeltaCandidates.cc
691 repo/Applydeltarpm.cc
693 repo/SUSEMediaVerifier.cc
694 repo/MediaInfoDownloader.cc
696 repo/RepoVariables.cc
700 SET( zypp_repo_HEADERS
704 repo/PackageProvider.h
705 repo/SrcPackageProvider.h
706 repo/RepoProvideFile.h
707 repo/DeltaCandidates.h
710 repo/SUSEMediaVerifier.h
711 repo/MediaInfoDownloader.h
715 repo/RepoInfoBaseImpl.h
720 DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/repo
723 SET( zypp_repo_yum_SRCS
724 repo/yum/Downloader.cc
725 repo/yum/ResourceType.cc
728 SET( zypp_repo_yum_HEADERS
729 repo/yum/Downloader.h
730 repo/yum/ResourceType.h
733 SET( zypp_repo_susetags_SRCS
734 repo/susetags/Downloader.cc
737 SET( zypp_repo_susetags_HEADERS
738 repo/susetags/Downloader.h
752 ${zypp_parser_susetags_SRCS}
753 ${zypp_parser_xml_SRCS}
754 ${zypp_parser_yum_SRCS}
755 ${zypp_parser_plaindir_SRCS}
756 ${zypp_parser_ws_SRCS}
758 ${zypp_media_proxyinfo_SRCS}
762 ${zypp_repo_yum_SRCS}
763 ${zypp_repo_susetags_SRCS}
764 ${zypp_repo_data_SRCS}
765 ${zypp_target_rpm_SRCS}
766 ${zypp_target_hal_SRCS}
767 ${zypp_target_modalias_SRCS}
769 ${zypp_solver_detail_SRCS}
774 ${zypp_zypp_detail_SRCS}
776 ${zypp_sat_detail_SRCS}
781 SET( zypp_lib_HEADERS
782 ${zypp_target_rpm_HEADERS}
783 ${zypp_parser_tagfile_HEADERS}
784 ${zypp_parser_susetags_HEADERS}
785 ${zypp_parser_yum_HEADERS}
786 ${zypp_parser_plaindir_HEADERS}
787 ${zypp_parser_xml_HEADERS}
788 ${zypp_parser_ws_HEADERS}
789 ${zypp_parser_HEADERS}
791 ${zypp_media_HEADERS}
792 ${zypp_target_hal_HEADERS}
793 ${zypp_media_proxyinfo_HEADERS}
795 ${zypp_solver_detail_HEADERS}
797 ${zypp_sat_detail_HEADERS}
801 ${zypp_zypp_detail_HEADERS}
802 ${zypp_thread_HEADERS}
804 ${zypp_source_susetags_HEADERS}
805 ${zypp_target_modalias_HEADERS}
806 ${zypp_target_HEADERS}
811 # Macro to set the log group for a list of files
813 MACRO( SET_LOGGROUP _group _files )
814 SET_SOURCE_FILES_PROPERTIES( ${_files} COMPILE_FLAGS -DZYPP_BASE_LOGGER_LOGGROUP=\\"${_group}\\" )
815 FOREACH (_currentFile ${ARGN})
816 #MESSAGE( STATUS "setting loggroup to \"${_group}\" for ${_currentFile}" )
817 SET_SOURCE_FILES_PROPERTIES( ${_currentFile} COMPILE_FLAGS -DZYPP_BASE_LOGGER_LOGGROUP=\\"${_group}\\" )
818 ENDFOREACH (_currentFile ${ARGN})
819 ENDMACRO( SET_LOGGROUP )
821 # Default loggroup for all files
822 SET_LOGGROUP( "zypp" ${zypp_lib_SRCS} )
824 # override some defaults
825 SET_LOGGROUP( "satsolver" ${zypp_sat_SRCS} )
826 #SET_LOGGROUP( "group" ${zypp_target_rpm_SRCS} )
827 #SET_LOGGROUP( "group" ${zypp_parser_yum2_SRCS} )
828 #SET_LOGGROUP( "group" ${zypp_capability_SRCS} )
829 #SET_LOGGROUP( "group" ${zypp_ui_SRCS} )
830 #SET_LOGGROUP( "group" ${zypp_media_SRCS} )
831 #SET_LOGGROUP( "group" ${zypp_target_hal_SRCS} )
832 #SET_LOGGROUP( "group" ${zypp_parser_xml_SRCS} )
833 #SET_LOGGROUP( "group" ${zypp_media_proxyinfo_SRCS} )
834 #SET_LOGGROUP( "group" ${zypp_source_yum_SRCS} )
835 #SET_LOGGROUP( "group" ${zypp_base_SRCS} )
836 #SET_LOGGROUP( "group" ${zypp_solver_detail_SRCS} )
837 #SET_LOGGROUP( "group" ${zypp_sat_SRCS} )
838 #SET_LOGGROUP( "group" ${zypp_url_SRCS} )
839 #SET_LOGGROUP( "group" ${zypp_source_SRCS} )
840 #SET_LOGGROUP( "group" ${zypp_parser_SRCS} )
841 #SET_LOGGROUP( "group" ${zypp_SRCS} )
842 #SET_LOGGROUP( "group" ${zypp_zypp_detail_SRCS} )
843 #SET_LOGGROUP( "group" ${zypp_thread_SRCS} )
844 #SET_LOGGROUP( "group" ${zypp_source_susetags_SRCS} )
845 #SET_LOGGROUP( "group" ${zypp_target_modalias_SRCS} )
846 #SET_LOGGROUP( "group" ${zypp_target_SRCS} )
847 #SET_LOGGROUP( "group" ${zypp_parser_yum_SRCS} )
848 #SET_LOGGROUP( "group" ${zypp_pool_SRCS} )
851 ADD_LIBRARY(zypp SHARED ${zypp_lib_SRCS})
852 SET_TARGET_PROPERTIES( zypp PROPERTIES VERSION "${LIBZYPP_VERSION_INFO}" )
853 SET_TARGET_PROPERTIES( zypp PROPERTIES SOVERSION "${LIBZYPP_SOVERSION_INFO}" )
854 ADD_DEPENDENCIES(zypp schema_header)
856 SET(UTIL_LIBRARY util)
857 #SET(SIGNALS_LIBRARY boost_signals)
858 SET(SIGNALS_LIBRARY boost_signals-mt)
859 TARGET_LINK_LIBRARIES(zypp ${UTIL_LIBRARY} )
860 TARGET_LINK_LIBRARIES(zypp ${DBUS_LIBRARY} )
861 TARGET_LINK_LIBRARIES(zypp ${RPM_LIBRARY} )
862 TARGET_LINK_LIBRARIES(zypp ${GETTEXT_LIBRARIES} )
863 TARGET_LINK_LIBRARIES(zypp ${HAL_LIBRARY} )
864 TARGET_LINK_LIBRARIES(zypp ${HAL_STORAGE_LIBRARY} )
865 TARGET_LINK_LIBRARIES(zypp ${CURL_LIBRARY} )
866 TARGET_LINK_LIBRARIES(zypp ${LIBXML_LIBRARY} )
867 TARGET_LINK_LIBRARIES(zypp ${ZLIB_LIBRARY} )
868 TARGET_LINK_LIBRARIES(zypp ${SATSOLVER_LIBRARY} )
869 TARGET_LINK_LIBRARIES(zypp ${OPENSSL_LIBRARIES} )
870 TARGET_LINK_LIBRARIES(zypp ${CRYPTO_LIBRARIES} )
871 TARGET_LINK_LIBRARIES(zypp ${SIGNALS_LIBRARY} )
873 INSTALL(TARGETS zypp LIBRARY DESTINATION ${LIB_INSTALL_DIR} )
875 # install XML schemas
876 FILE( GLOB YUM_SCHEMA_FILES ${CMAKE_SOURCE_DIR}/zypp/parser/yum/schema/*.rng )
877 INSTALL(FILES ${YUM_SCHEMA_FILES} DESTINATION "${CMAKE_INSTALL_PREFIX}/share/zypp/schema/yum" )