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"... )
183 INSTALL( FILES ${zypp_HEADERS} DESTINATION "${CMAKE_INSTALL_PREFIX}/include/zypp" )
186 base/InterProcessMutex.cc
195 base/ReferenceCounted.cc
199 base/ExternalDataSource.cc
201 base/UserRequestException.cc
203 base/ProfilingFormater.cc
207 SET( zypp_base_HEADERS
208 base/InterProcessMutex.h
216 base/DefaultFalseBool.h
217 base/DefaultIntegral.h
221 base/UserRequestException.h
222 base/ExternalDataSource.h
237 base/ProfilingFormater.h
238 base/ProvideNumericId.h
240 base/ReferenceCounted.h
252 DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/base
256 data/ResolvableData.cc
258 data/ResolvableDataConsumer.cc
261 SET( zypp_data_HEADERS
262 data/ResolvableData.h
264 data/ResolvableDataConsumer.h
269 DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/data
273 media/MediaException.cc
275 media/MediaHandler.cc
286 media/MediaManager.cc
287 media/MediaUserAuth.cc
291 SET( zypp_media_HEADERS
298 media/MediaException.h
305 media/MediaUserAuth.h
312 ${zypp_media_HEADERS}
313 DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/media
316 SET( zypp_media_proxyinfo_SRCS
317 media/proxyinfo/ProxyInfoSysconfig.cc
320 SET( zypp_media_proxyinfo_HEADERS
321 media/proxyinfo/ProxyInfoImpl.h
322 media/proxyinfo/ProxyInfoSysconfig.h
323 media/proxyinfo/ProxyInfos.h
327 ${zypp_media_proxyinfo_HEADERS}
328 DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/media/proxyinfo
331 SET( zypp_parser_SRCS
332 parser/ParseException.cc
336 parser/LibXMLHelper.cc
337 parser/XMLNodeIterator.cc
338 parser/RepoFileReader.cc
339 parser/xml_escape_parser.cpp
342 SET( zypp_parser_HEADERS
343 parser/ParseException.h
347 parser/LibXMLHelper.h
348 parser/ParserProgress.h
349 parser/XMLNodeIterator.h
350 parser/xml_parser_assert.h
351 parser/RepoFileReader.h
352 parser/xml_escape_parser.hpp
356 ${zypp_parser_HEADERS}
357 DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/parser
360 SET( zypp_parser_susetags_SRCS
361 parser/susetags/RepoIndex.cc
362 parser/susetags/ContentFileReader.cc
363 #parser/susetags/PackagesFileReader.cc
364 #parser/susetags/PackagesLangFileReader.cc
365 #parser/susetags/PackagesDuFileReader.cc
366 #parser/susetags/PatternFileReader.cc
367 #parser/susetags/RepoParser.cc
370 SET( zypp_parser_susetags_HEADERS
371 parser/susetags/RepoIndex.h
372 parser/susetags/ContentFileReader.h
373 parser/susetags/FileReaderBase.h
374 parser/susetags/FileReaderBaseImpl.h
375 parser/susetags/PackagesFileReader.h
376 parser/susetags/PackagesLangFileReader.h
377 parser/susetags/PackagesDuFileReader.h
378 parser/susetags/PatternFileReader.h
379 parser/susetags/RepoParser.h
383 ${zypp_parser_susetags_HEADERS}
384 DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/parser/susetags
387 SET( zypp_parser_plaindir_SRCS
388 parser/plaindir/RepoParser.cc
391 SET( zypp_parser_plaindir_HEADERS
392 parser/plaindir/RepoParser.h
396 ${zypp_parser_plaindir_HEADERS}
397 DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/parser/plaindir
400 SET( zypp_parser_xml_SRCS
402 parser/xml/ParseDef.cc
403 parser/xml/ParseDefConsume.cc
404 parser/xml/ParseDefException.cc
406 parser/xml/XmlString.cc
407 parser/xml/libxmlfwd.cc
410 SET( zypp_parser_xml_HEADERS
412 parser/xml/ParseDef.h
413 parser/xml/ParseDefConsume.h
414 parser/xml/ParseDefException.h
415 parser/xml/ParseDefTraits.h
417 parser/xml/XmlString.h
418 parser/xml/libxmlfwd.h
422 ${zypp_parser_xml_HEADERS}
423 DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/parser/xml
426 SET( zypp_parser_yum_SRCS
427 #parser/yum/RepoParser.cc
428 #parser/yum/FileReaderBaseImpl.cc
429 parser/yum/RepomdFileReader.cc
430 parser/yum/PatchesFileReader.cc
431 #parser/yum/PrimaryFileReader.cc
432 #parser/yum/OtherFileReader.cc
433 #parser/yum/FilelistsFileReader.cc
434 #parser/yum/PatchFileReader.cc
435 #parser/yum/PatternFileReader.cc
436 #parser/yum/ProductFileReader.cc
439 SET( zypp_parser_yum_HEADERS
440 parser/yum/RepoParser.h
441 parser/yum/RepoParserOpts.h
442 parser/yum/FileReaderBase.h
443 parser/yum/FileReaderBaseImpl.h
444 parser/yum/RepomdFileReader.h
445 parser/yum/PatchesFileReader.h
446 parser/yum/PrimaryFileReader.h
447 parser/yum/OtherFileReader.h
448 parser/yum/FilelistsFileReader.h
449 parser/yum/PatchFileReader.h
450 parser/yum/PatternFileReader.h
451 parser/yum/ProductFileReader.h
452 parser/yum/schemanames.h
456 ${zypp_parser_yum_HEADERS}
457 DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/parser/yum
461 pool/GetResolvablesToInsDel.cc
466 SET( zypp_pool_HEADERS
467 pool/GetResolvablesToInsDel.h
475 DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/pool
478 SET( zypp_solver_detail_SRCS
479 solver/detail/Helper.cc
480 solver/detail/InstallOrder.cc
481 solver/detail/ProblemSolutionIgnore.cc
482 solver/detail/ProblemSolutionInstall.cc
483 solver/detail/ProblemSolutionKeep.cc
484 solver/detail/ProblemSolutionUninstall.cc
485 solver/detail/ProblemSolutionUnlock.cc
486 solver/detail/ProblemSolutionCombi.cc
487 solver/detail/Resolver.cc
488 solver/detail/ResolverUpgrade.cc
489 solver/detail/Resolver_problems.cc
490 solver/detail/SolutionAction.cc
491 solver/detail/Testcase.cc
494 SET( zypp_solver_detail_HEADERS
495 solver/detail/Helper.h
496 solver/detail/InstallOrder.h
497 solver/detail/ProblemSolutionIgnore.h
498 solver/detail/ProblemSolutionInstall.h
499 solver/detail/ProblemSolutionKeep.h
500 solver/detail/ProblemSolutionUninstall.h
501 solver/detail/ProblemSolutionUnlock.h
502 solver/detail/ProblemSolutionCombi.h
503 solver/detail/Resolver.h
504 solver/detail/SolutionAction.h
505 solver/detail/Testcase.h
506 solver/detail/Types.h
510 ${zypp_solver_detail_HEADERS}
511 DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/solver/detail
524 sat/SolverQueueItem.cc
527 SET( zypp_sat_HEADERS
536 sat/SolverQueueItem.h
542 DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/sat
545 SET( zypp_sat_detail_SRCS
546 sat/detail/PoolImpl.cc
549 SET( zypp_sat_detail_HEADERS
550 sat/detail/PoolMember.h
551 sat/detail/PoolImpl.h
555 ${zypp_sat_detail_HEADERS}
556 DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/sat/detail
560 SET( zypp_target_SRCS
561 target/RequestedLocalesFile.cc
563 target/CommitPackageCache.cc
564 target/CommitPackageCacheImpl.cc
565 target/CommitPackageCacheReadAhead.cc
566 target/TargetCallbackReceiver.cc
567 target/TargetException.cc
571 SET( zypp_target_HEADERS
572 target/RequestedLocalesFile.h
574 target/CommitPackageCache.h
575 target/CommitPackageCacheImpl.h
576 target/CommitPackageCacheReadAhead.h
577 target/TargetCallbackReceiver.h
578 target/TargetException.h
583 ${zypp_target_HEADERS}
584 DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/target
587 SET( zypp_target_hal_SRCS
589 target/hal/HalContext.cc
592 SET( zypp_target_hal_HEADERS
594 target/hal/HalContext.h
595 target/hal/HalException.h
599 ${zypp_target_hal_HEADERS}
600 DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/target/hal
603 SET( zypp_target_modalias_SRCS
604 target/modalias/Modalias.cc
607 SET( zypp_target_modalias_HEADERS
608 target/modalias/Modalias.h
612 ${zypp_target_modalias_HEADERS}
613 DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/target/modalias
616 SET( zypp_target_rpm_SRCS
617 target/rpm/BinHeader.cc
618 target/rpm/RpmCallbacks.cc
620 target/rpm/RpmException.cc
621 target/rpm/RpmHeader.cc
622 target/rpm/librpmDb.cc
623 target/rpm/librpmDb.cv3.cc
626 SET( zypp_target_rpm_HEADERS
627 target/rpm/BinHeader.h
628 target/rpm/RpmCallbacks.h
630 target/rpm/RpmException.h
631 target/rpm/RpmHeader.h
633 target/rpm/librpmDb.h
637 ${zypp_target_rpm_HEADERS}
638 DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/target/rpm
641 SET( zypp_thread_SRCS
645 SET( zypp_thread_HEADERS
647 thread/MutexException.h
653 ${zypp_thread_HEADERS}
654 DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/thread
659 ui/PatchContentsImpl.cc
660 ui/PatternContents.cc
661 ui/PatternContentsImpl.cc
662 ui/PatternExpander.cc
666 ui/UserWantedPackages.cc
671 ui/PatchContentsImpl.h
673 ui/PatternContentsImpl.h
678 ui/SelectableTraits.h
680 ui/UserWantedPackages.h
685 DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/ui
693 SET( zypp_url_HEADERS
701 DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/url
704 SET( zypp_zypp_detail_SRCS
705 zypp_detail/ZYppImpl.cc
708 SET( zypp_zypp_detail_HEADERS
709 zypp_detail/ZYppImpl.h
710 zypp_detail/ZYppReadOnlyHack.h
714 ${zypp_zypp_detail_HEADERS}
715 DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/zypp_detail
720 repo/RepoException.cc
722 repo/PackageProvider.cc
723 repo/SrcPackageProvider.cc
724 repo/ScriptProvider.cc
725 repo/RepoProvideFile.cc
726 repo/DeltaCandidates.cc
727 repo/Applydeltarpm.cc
729 repo/SUSEMediaVerifier.cc
730 repo/MediaInfoDownloader.cc
732 repo/RepoVariables.cc
735 SET( zypp_repo_HEADERS
738 repo/PackageProvider.h
739 repo/SrcPackageProvider.h
740 repo/ScriptProvider.h
741 repo/RepoProvideFile.h
742 repo/DeltaCandidates.h
745 repo/SUSEMediaVerifier.h
746 repo/MediaInfoDownloader.h
753 DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/repo
756 SET( zypp_repo_yum_SRCS
757 repo/yum/Downloader.cc
758 repo/yum/ResourceType.cc
761 SET( zypp_repo_yum_HEADERS
762 repo/yum/Downloader.h
763 repo/yum/ResourceType.h
766 SET( zypp_repo_susetags_SRCS
767 repo/susetags/Downloader.cc
770 SET( zypp_repo_susetags_HEADERS
771 repo/susetags/Downloader.h
776 ${zypp_parser_susetags_SRCS}
777 ${zypp_parser_xml_SRCS}
778 ${zypp_parser_yum_SRCS}
779 ${zypp_parser_plaindir_SRCS}
782 ${zypp_media_proxyinfo_SRCS}
786 ${zypp_repo_yum_SRCS}
787 ${zypp_repo_susetags_SRCS}
788 ${zypp_repo_data_SRCS}
789 ${zypp_target_rpm_SRCS}
790 ${zypp_target_hal_SRCS}
791 ${zypp_target_modalias_SRCS}
793 ${zypp_solver_detail_SRCS}
797 ${zypp_zypp_detail_SRCS}
799 ${zypp_sat_detail_SRCS}
804 SET( zypp_lib_HEADERS
805 ${zypp_target_rpm_HEADERS}
806 ${zypp_parser_tagfile_HEADERS}
807 ${zypp_parser_susetags_HEADERS}
808 ${zypp_parser_yum_HEADERS}
809 ${zypp_parser_plaindir_HEADERS}
810 ${zypp_parser_xml_HEADERS}
811 ${zypp_parser_HEADERS}
814 ${zypp_media_HEADERS}
815 ${zypp_target_hal_HEADERS}
816 ${zypp_media_proxyinfo_HEADERS}
818 ${zypp_solver_detail_HEADERS}
820 ${zypp_sat_detail_HEADERS}
823 ${zypp_zypp_detail_HEADERS}
824 ${zypp_thread_HEADERS}
826 ${zypp_source_susetags_HEADERS}
827 ${zypp_target_modalias_HEADERS}
828 ${zypp_target_HEADERS}
833 # Macro to set the log group for a list of files
835 MACRO( SET_LOGGROUP _group _files )
836 SET_SOURCE_FILES_PROPERTIES( ${_files} COMPILE_FLAGS -DZYPP_BASE_LOGGER_LOGGROUP=\\"${_group}\\" )
837 FOREACH (_currentFile ${ARGN})
838 #MESSAGE( STATUS "setting loggroup to \"${_group}\" for ${_currentFile}" )
839 SET_SOURCE_FILES_PROPERTIES( ${_currentFile} COMPILE_FLAGS -DZYPP_BASE_LOGGER_LOGGROUP=\\"${_group}\\" )
840 ENDFOREACH (_currentFile ${ARGN})
841 ENDMACRO( SET_LOGGROUP )
843 # Default loggroup for all files
844 SET_LOGGROUP( "zypp" ${zypp_lib_SRCS} )
846 # override some defaults
847 SET_LOGGROUP( "satsolver" ${zypp_sat_SRCS} )
848 #SET_LOGGROUP( "group" ${zypp_target_rpm_SRCS} )
849 #SET_LOGGROUP( "group" ${zypp_parser_yum2_SRCS} )
850 #SET_LOGGROUP( "group" ${zypp_capability_SRCS} )
851 #SET_LOGGROUP( "group" ${zypp_ui_SRCS} )
852 #SET_LOGGROUP( "group" ${zypp_data_SRCS} )
853 #SET_LOGGROUP( "group" ${zypp_media_SRCS} )
854 #SET_LOGGROUP( "group" ${zypp_target_hal_SRCS} )
855 #SET_LOGGROUP( "group" ${zypp_parser_xml_SRCS} )
856 #SET_LOGGROUP( "group" ${zypp_media_proxyinfo_SRCS} )
857 #SET_LOGGROUP( "group" ${zypp_source_yum_SRCS} )
858 #SET_LOGGROUP( "group" ${zypp_base_SRCS} )
859 #SET_LOGGROUP( "group" ${zypp_solver_detail_SRCS} )
860 #SET_LOGGROUP( "group" ${zypp_sat_SRCS} )
861 #SET_LOGGROUP( "group" ${zypp_url_SRCS} )
862 #SET_LOGGROUP( "group" ${zypp_source_SRCS} )
863 #SET_LOGGROUP( "group" ${zypp_parser_SRCS} )
864 #SET_LOGGROUP( "group" ${zypp_SRCS} )
865 #SET_LOGGROUP( "group" ${zypp_zypp_detail_SRCS} )
866 #SET_LOGGROUP( "group" ${zypp_thread_SRCS} )
867 #SET_LOGGROUP( "group" ${zypp_source_susetags_SRCS} )
868 #SET_LOGGROUP( "group" ${zypp_target_modalias_SRCS} )
869 #SET_LOGGROUP( "group" ${zypp_target_SRCS} )
870 #SET_LOGGROUP( "group" ${zypp_parser_yum_SRCS} )
871 #SET_LOGGROUP( "group" ${zypp_pool_SRCS} )
874 ADD_LIBRARY(zypp SHARED ${zypp_lib_SRCS})
875 SET_TARGET_PROPERTIES( zypp PROPERTIES VERSION "${LIBZYPP_VERSION_INFO}" )
876 SET_TARGET_PROPERTIES( zypp PROPERTIES SOVERSION "${LIBZYPP_SOVERSION_INFO}" )
877 ADD_DEPENDENCIES(zypp schema_header)
879 TARGET_LINK_LIBRARIES(zypp util )
880 TARGET_LINK_LIBRARIES(zypp ${DBUS_LIBRARY} )
881 TARGET_LINK_LIBRARIES(zypp ${RPM_LIBRARY} )
882 TARGET_LINK_LIBRARIES(zypp ${GETTEXT_LIBRARIES} )
883 TARGET_LINK_LIBRARIES(zypp ${HAL_LIBRARY} )
884 TARGET_LINK_LIBRARIES(zypp ${HAL_STORAGE_LIBRARY} )
885 TARGET_LINK_LIBRARIES(zypp ${CURL_LIBRARY} )
886 TARGET_LINK_LIBRARIES(zypp ${LIBXML_LIBRARY} )
887 TARGET_LINK_LIBRARIES(zypp ${ZLIB_LIBRARY} )
888 TARGET_LINK_LIBRARIES(zypp ${SATSOLVER_LIBRARY} )
889 TARGET_LINK_LIBRARIES(zypp ${OPENSSL_LIBRARIES})
890 TARGET_LINK_LIBRARIES(zypp crypto)
892 INSTALL(TARGETS zypp LIBRARY DESTINATION ${LIB_INSTALL_DIR} )
894 # install XML schemas
895 FILE( GLOB YUM_SCHEMA_FILES ${CMAKE_SOURCE_DIR}/zypp/parser/yum/schema/*.rng )
896 INSTALL(FILES ${YUM_SCHEMA_FILES} DESTINATION "${CMAKE_INSTALL_PREFIX}/share/zypp/schema/yum" )