moved SATResolver to solver/details
[platform/upstream/libzypp.git] / zypp / CMakeLists.txt
1 ####################################################################
2 # SOURCES                                                          #
3 ####################################################################
4
5 ADD_DEFINITIONS(-DLOCALEDIR=\\\"${CMAKE_INSTALL_PREFIX}/share/locale\\\" -DTEXTDOMAIN=\\\"zypp\\\" )
6
7 INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR})
8 #FILE(WRITE filename "message to write"... )
9
10 SET( zypp_SRCS
11   Atom.cc
12   ByteCount.cc
13   Capabilities.cc
14   Capability.cc
15   CapMatch.cc
16   Changelog.cc
17   CheckSum.cc
18   Date.cc
19   Dep.cc
20   Dependencies.cc
21   Digest.cc
22   DiskUsage.cc
23   DiskUsageCounter.cc
24   dummy.cc
25   Edition.cc
26   ExternalProgram.cc
27   Fetcher.cc
28   FileChecker.cc
29   IdString.cc
30   KeyRing.cc
31   Locks.cc
32   MediaProducts.cc
33   MediaSetAccess.cc
34   Message.cc
35   NameKindProxy.cc
36   NVRA.cc
37   NVRAD.cc
38   NVR.cc
39   OnMediaLocation.cc
40   Package.cc
41   Patch.cc
42   PathInfo.cc
43   Pathname.cc
44   Pattern.cc
45   PoolItem.cc
46   PoolQuery.cc
47   ProblemSolution.cc
48   Product.cc
49   ProgressData.cc
50   ProvideFilePolicy.cc
51   PublicKey.cc
52   Range.cc
53   Rel.cc
54   RepoInfo.cc
55   RepoManager.cc
56   RepoStatus.cc
57   ResKind.cc
58   ResObject.cc
59   Resolvable.cc
60   Resolver.cc
61   ResolverProblem.cc
62   ResPool.cc
63   ResPoolProxy.cc
64   ResStatus.cc
65   Script.cc
66   Signature.cc
67   SrcPackage.cc
68   SysContent.cc
69   Target.cc
70   TmpPath.cc
71   TranslatedText.cc
72   UpgradeStatistics.cc
73   Url.cc
74   VendorAttr.cc
75   ZYpp.cc
76   ZYppCommitPolicy.cc
77   ZYppCommitResult.cc
78   ZYppFactory.cc
79   Repository.cc
80 )
81 SET( zypp_EARLY_SRCS
82   ZConfig.cc
83   Arch.cc
84   Locale.cc
85   CountryCode.cc
86   LanguageCode.cc
87 )
88
89 SET( zypp_HEADERS
90   Arch.h
91   Atom.h
92   AutoDispose.h
93   Bit.h
94   ByteCount.h
95   Callback.h
96   Capabilities.h
97   Capability.h
98   CapMatch.h
99   Changelog.h
100   CheckSum.h
101   CountryCode.h
102   Date.h
103   Dependencies.h
104   Dep.h
105   Digest.h
106   DiskUsageCounter.h
107   DiskUsage.h
108   Edition.h
109   ExternalProgram.h
110   Fetcher.h
111   FileChecker.h
112   IdString.h
113   IdStringType.h
114   KeyRing.h
115   KVMap.h
116   LanguageCode.h
117   Locale.h
118   Locks.h
119   ManagedFile.h
120   MediaProducts.h
121   MediaSetAccess.h
122   Message.h
123   NameKindProxy.h
124   Vendor.h
125   NVRAD.h
126   NVRA.h
127   NVR.h
128   OnMediaLocation.h
129   Package.h
130   PackageKeyword.h
131   Patch.h
132   PathInfo.h
133   Pathname.h
134   Pattern.h
135   PoolItem.h
136   PoolQuery.h
137   PoolQueryUtil.tcc
138   ProblemSolution.h
139   ProblemTypes.h
140   Product.h
141   ProgressData.h
142   ProvideFilePolicy.h
143   PublicKey.h
144   Range.h
145   RelCompare.h
146   Rel.h
147   RepoInfo.h
148   RepoManager.h
149   RepoStatus.h
150   Filter.h
151   ResFilters.h
152   ResKind.h
153   ResObject.h
154   ResObjects.h
155   Resolvable.h
156   Resolver.h
157   ResolverProblem.h
158   ResPool.h
159   ResPoolProxy.h
160   ResStatus.h
161   ResTraits.h
162   Script.h
163   Signature.h
164   SrcPackage.h
165   SysContent.h
166   Target.h
167   TmpPath.h
168   TranslatedText.h
169   TriBool.h
170   UpgradeStatistics.h
171   Url.h
172   VendorAttr.h
173   ZConfig.h
174   ZYppCallbacks.h
175   ZYppCommit.h
176   ZYppCommitPolicy.h
177   ZYppCommitResult.h
178   ZYppFactory.h
179   ZYpp.h
180   Repository.h
181 )
182
183 INSTALL(  FILES ${zypp_HEADERS} DESTINATION "${CMAKE_INSTALL_PREFIX}/include/zypp" )
184
185 SET( zypp_base_SRCS
186   base/InterProcessMutex.cc
187   base/SerialNumber.cc
188   base/Random.cc
189   base/Measure.cc
190   base/Fd.cc
191   base/Gettext.cc
192   base/GzStream.cc
193   base/IOStream.cc
194   base/InputStream.cc
195   base/ReferenceCounted.cc
196   base/String.cc
197   base/Regex.cc
198   base/Unit.cc
199   base/ExternalDataSource.cc
200   base/Exception.cc
201   base/UserRequestException.cc
202   base/Sysconfig.cc
203   base/ProfilingFormater.cc
204   base/LogControl.cc
205 )
206
207 SET( zypp_base_HEADERS
208   base/InterProcessMutex.h
209   base/Collector.h
210   base/SerialNumber.h
211   base/Easy.h
212   base/Random.h
213   base/Algorithm.h
214   base/Counter.h
215   base/Debug.h
216   base/DefaultFalseBool.h
217   base/DefaultIntegral.h
218   base/Deprecated.h
219   base/DtorReset.h
220   base/Exception.h
221   base/UserRequestException.h
222   base/ExternalDataSource.h
223   base/Fd.h
224   base/Function.h
225   base/Functional.h
226   base/Gettext.h
227   base/GzStream.h
228   base/IOStream.h
229   base/InputStream.h
230   base/Iterator.h
231   base/KindOf.h
232   base/LogControl.h
233   base/LogTools.h
234   base/Logger.h
235   base/Measure.h
236   base/NonCopyable.h
237   base/ProfilingFormater.h
238   base/ProvideNumericId.h
239   base/PtrTypes.h
240   base/ReferenceCounted.h
241   base/SafeBool.h
242   base/String.h
243   base/Regex.h
244   base/Sysconfig.h
245   base/Tr1hash.h
246   base/Unit.h
247   base/WatchFile.h
248 )
249
250 INSTALL(  FILES
251   ${zypp_base_HEADERS}
252   DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/base
253 )
254
255 SET( zypp_data_SRCS
256   data/ResolvableData.cc
257   data/RecordId.cc
258   data/ResolvableDataConsumer.cc
259 )
260
261 SET( zypp_data_HEADERS
262   data/ResolvableData.h
263   data/RecordId.h
264   data/ResolvableDataConsumer.h
265 )
266
267 INSTALL(  FILES
268   ${zypp_data_HEADERS}
269   DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/data
270 )
271
272 SET( zypp_media_SRCS
273   media/MediaException.cc
274   media/MediaAccess.cc
275   media/MediaHandler.cc
276   media/Mount.cc
277   media/MediaNFS.cc
278   media/MediaCD.cc
279   media/MediaDIR.cc
280   media/MediaDISK.cc
281   media/MediaSMB.cc
282   media/MediaCIFS.cc
283   media/ProxyInfo.cc
284   media/MediaCurl.cc
285   media/MediaISO.cc
286   media/MediaManager.cc
287   media/MediaUserAuth.cc
288   media/CurlConfig.cc
289 )
290
291 SET( zypp_media_HEADERS
292   media/MediaAccess.h
293   media/MediaCD.h
294   media/MediaCIFS.h
295   media/MediaCurl.h
296   media/MediaDIR.h
297   media/MediaDISK.h
298   media/MediaException.h
299   media/MediaHandler.h
300   media/MediaISO.h
301   media/MediaManager.h
302   media/MediaNFS.h
303   media/MediaSMB.h
304   media/MediaSource.h
305   media/MediaUserAuth.h
306   media/Mount.h
307   media/ProxyInfo.h
308   media/CurlConfig.h
309 )
310
311 INSTALL(  FILES
312   ${zypp_media_HEADERS}
313   DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/media
314 )
315
316 SET( zypp_media_proxyinfo_SRCS
317   media/proxyinfo/ProxyInfoSysconfig.cc
318 )
319
320 SET( zypp_media_proxyinfo_HEADERS
321   media/proxyinfo/ProxyInfoImpl.h
322   media/proxyinfo/ProxyInfoSysconfig.h
323   media/proxyinfo/ProxyInfos.h
324 )
325
326 INSTALL(  FILES
327   ${zypp_media_proxyinfo_HEADERS}
328   DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/media/proxyinfo
329 )
330
331 SET( zypp_parser_SRCS
332   parser/ParseException.cc
333   parser/TagParser.cc
334   parser/IniParser.cc
335   parser/IniDict.cc
336   parser/LibXMLHelper.cc
337   parser/XMLNodeIterator.cc
338   parser/RepoFileReader.cc
339   parser/xml_escape_parser.cpp
340 )
341
342 SET( zypp_parser_HEADERS
343   parser/ParseException.h
344   parser/TagParser.h
345   parser/IniParser.h
346   parser/IniDict.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
353 )
354
355 INSTALL(  FILES
356   ${zypp_parser_HEADERS}
357   DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/parser
358 )
359
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
368 )
369
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
380 )
381
382 INSTALL(  FILES
383   ${zypp_parser_susetags_HEADERS}
384   DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/parser/susetags
385 )
386
387 SET( zypp_parser_plaindir_SRCS
388   parser/plaindir/RepoParser.cc
389 )
390
391 SET( zypp_parser_plaindir_HEADERS
392   parser/plaindir/RepoParser.h
393 )
394
395 INSTALL(  FILES
396   ${zypp_parser_plaindir_HEADERS}
397   DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/parser/plaindir
398 )
399
400 SET( zypp_parser_xml_SRCS
401   parser/xml/Node.cc
402   parser/xml/ParseDef.cc
403   parser/xml/ParseDefConsume.cc
404   parser/xml/ParseDefException.cc
405   parser/xml/Reader.cc
406   parser/xml/XmlString.cc
407   parser/xml/libxmlfwd.cc
408 )
409
410 SET( zypp_parser_xml_HEADERS
411   parser/xml/Node.h
412   parser/xml/ParseDef.h
413   parser/xml/ParseDefConsume.h
414   parser/xml/ParseDefException.h
415   parser/xml/ParseDefTraits.h
416   parser/xml/Reader.h
417   parser/xml/XmlString.h
418   parser/xml/libxmlfwd.h
419 )
420
421 INSTALL(  FILES
422   ${zypp_parser_xml_HEADERS}
423   DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/parser/xml
424 )
425
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
437 )
438
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
453 )
454
455 INSTALL(  FILES
456   ${zypp_parser_yum_HEADERS}
457   DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/parser/yum
458 )
459
460 SET( zypp_pool_SRCS
461   pool/GetResolvablesToInsDel.cc
462   pool/PoolImpl.cc
463   pool/PoolStats.cc
464 )
465
466 SET( zypp_pool_HEADERS
467   pool/GetResolvablesToInsDel.h
468   pool/PoolImpl.h
469   pool/PoolStats.h
470   pool/PoolTraits.h
471 )
472
473 INSTALL(  FILES
474   ${zypp_pool_HEADERS}
475   DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/pool
476 )
477
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
492   solver/detail/SolverQueueItem.cc
493   solver/detail/SolverQueueItemInstall.cc
494   solver/detail/SolverQueueItemDelete.cc
495   solver/detail/SolverQueueItemUpdate.cc
496   solver/detail/SolverQueueItemInstallOneOf.cc
497   solver/detail/SATResolver.cc
498 )
499
500 SET( zypp_solver_detail_HEADERS
501   solver/detail/Helper.h
502   solver/detail/InstallOrder.h
503   solver/detail/ProblemSolutionIgnore.h
504   solver/detail/ProblemSolutionInstall.h
505   solver/detail/ProblemSolutionKeep.h
506   solver/detail/ProblemSolutionUninstall.h
507   solver/detail/ProblemSolutionUnlock.h
508   solver/detail/ProblemSolutionCombi.h
509   solver/detail/Resolver.h
510   solver/detail/SolutionAction.h
511   solver/detail/Testcase.h
512   solver/detail/Types.h
513   solver/detail/SolverQueueItem.h
514   solver/detail/SolverQueueItemInstall.h
515   solver/detail/SolverQueueItemDelete.h
516   solver/detail/SolverQueueItemUpdate.h
517   solver/detail/SolverQueueItemInstallOneOf.h
518   solver/detail/SATResolver.h
519 )
520
521 INSTALL(  FILES
522   ${zypp_solver_detail_HEADERS}
523   DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/solver/detail
524 )
525
526 SET( zypp_sat_SRCS
527   sat/Pool.cc
528   sat/Solvable.cc
529   sat/SolvableSet.cc
530   sat/SolvIterMixin.cc
531   sat/WhatProvides.cc
532   sat/LocaleSupport.cc
533   sat/LookupAttr.cc
534   sat/SolvAttr.cc
535 )
536
537 SET( zypp_sat_HEADERS
538   sat/Pool.h
539   sat/Solvable.h
540   sat/SolvableSet.h
541   sat/SolvIterMixin.h
542   sat/WhatProvides.h
543   sat/LocaleSupport.h
544   sat/LookupAttr.h
545   sat/SolvAttr.h
546 )
547
548 INSTALL(  FILES
549   ${zypp_sat_HEADERS}
550   DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/sat
551 )
552
553 SET( zypp_sat_detail_SRCS
554   sat/detail/PoolImpl.cc
555 )
556
557 SET( zypp_sat_detail_HEADERS
558   sat/detail/PoolMember.h
559   sat/detail/PoolImpl.h
560 )
561
562 INSTALL(  FILES
563   ${zypp_sat_detail_HEADERS}
564   DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/sat/detail
565 )
566
567
568 SET( zypp_target_SRCS
569   target/RequestedLocalesFile.cc
570   target/CommitLog.cc
571   target/CommitPackageCache.cc
572   target/CommitPackageCacheImpl.cc
573   target/CommitPackageCacheReadAhead.cc
574   target/TargetCallbackReceiver.cc
575   target/TargetException.cc
576   target/TargetImpl.cc
577 )
578
579 SET( zypp_target_HEADERS
580   target/RequestedLocalesFile.h
581   target/CommitLog.h
582   target/CommitPackageCache.h
583   target/CommitPackageCacheImpl.h
584   target/CommitPackageCacheReadAhead.h
585   target/TargetCallbackReceiver.h
586   target/TargetException.h
587   target/TargetImpl.h
588 )
589
590 INSTALL(  FILES
591   ${zypp_target_HEADERS}
592   DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/target
593 )
594
595 SET( zypp_target_hal_SRCS
596   target/hal/Hal.cc
597   target/hal/HalContext.cc
598 )
599
600 SET( zypp_target_hal_HEADERS
601   target/hal/Hal.h
602   target/hal/HalContext.h
603   target/hal/HalException.h
604 )
605
606 INSTALL(  FILES
607   ${zypp_target_hal_HEADERS}
608   DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/target/hal
609 )
610
611 SET( zypp_target_modalias_SRCS
612   target/modalias/Modalias.cc
613 )
614
615 SET( zypp_target_modalias_HEADERS
616   target/modalias/Modalias.h
617 )
618
619 INSTALL(  FILES
620   ${zypp_target_modalias_HEADERS}
621   DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/target/modalias
622 )
623
624 SET( zypp_target_rpm_SRCS
625   target/rpm/BinHeader.cc
626   target/rpm/RpmCallbacks.cc
627   target/rpm/RpmDb.cc
628   target/rpm/RpmException.cc
629   target/rpm/RpmHeader.cc
630   target/rpm/librpmDb.cc
631   target/rpm/librpmDb.cv3.cc
632 )
633
634 SET( zypp_target_rpm_HEADERS
635   target/rpm/BinHeader.h
636   target/rpm/RpmCallbacks.h
637   target/rpm/RpmDb.h
638   target/rpm/RpmException.h
639   target/rpm/RpmHeader.h
640   target/rpm/librpm.h
641   target/rpm/librpmDb.h
642 )
643
644 INSTALL(  FILES
645   ${zypp_target_rpm_HEADERS}
646   DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/target/rpm
647 )
648
649 SET( zypp_thread_SRCS
650   thread/Mutex.cc
651 )
652
653 SET( zypp_thread_HEADERS
654   thread/Mutex.h
655   thread/MutexException.h
656   thread/MutexLock.h
657   thread/Once.h
658 )
659
660 INSTALL(  FILES
661   ${zypp_thread_HEADERS}
662   DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/thread
663 )
664
665 SET( zypp_ui_SRCS
666   ui/PatchContents.cc
667   ui/PatchContentsImpl.cc
668   ui/PatternContents.cc
669   ui/PatternContentsImpl.cc
670   ui/PatternExpander.cc
671   ui/Selectable.cc
672   ui/SelectableImpl.cc
673   ui/Status.cc
674   ui/UserWantedPackages.cc
675 )
676
677 SET( zypp_ui_HEADERS
678   ui/PatchContents.h
679   ui/PatchContentsImpl.h
680   ui/PatternContents.h
681   ui/PatternContentsImpl.h
682   ui/PatternExpander.h
683   ui/SelFilters.h
684   ui/Selectable.h
685   ui/SelectableImpl.h
686   ui/SelectableTraits.h
687   ui/Status.h
688   ui/UserWantedPackages.h
689 )
690
691 INSTALL(  FILES
692   ${zypp_ui_HEADERS}
693   DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/ui
694 )
695
696 SET( zypp_url_SRCS
697   url/UrlUtils.cc
698   url/UrlBase.cc
699 )
700
701 SET( zypp_url_HEADERS
702   url/UrlBase.h
703   url/UrlException.h
704   url/UrlUtils.h
705 )
706
707 INSTALL(  FILES
708   ${zypp_url_HEADERS}
709   DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/url
710 )
711
712 SET( zypp_zypp_detail_SRCS
713   zypp_detail/ZYppImpl.cc
714 )
715
716 SET( zypp_zypp_detail_HEADERS
717   zypp_detail/ZYppImpl.h
718   zypp_detail/ZYppReadOnlyHack.h
719 )
720
721 INSTALL(  FILES
722   ${zypp_zypp_detail_HEADERS}
723   DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/zypp_detail
724 )
725
726 SET( zypp_repo_SRCS
727   repo/dummy.cc
728   repo/RepoException.cc
729   repo/RepoType.cc
730   repo/PackageProvider.cc
731   repo/SrcPackageProvider.cc
732   repo/ScriptProvider.cc
733   repo/RepoProvideFile.cc
734   repo/DeltaCandidates.cc
735   repo/Applydeltarpm.cc
736   repo/PackageDelta.cc
737   repo/SUSEMediaVerifier.cc
738   repo/MediaInfoDownloader.cc
739   repo/Downloader.cc
740   repo/RepoVariables.cc
741 )
742
743 SET( zypp_repo_HEADERS
744   repo/RepoException.h
745   repo/RepoType.h
746   repo/PackageProvider.h
747   repo/SrcPackageProvider.h
748   repo/ScriptProvider.h
749   repo/RepoProvideFile.h
750   repo/DeltaCandidates.h
751   repo/Applydeltarpm.h
752   repo/PackageDelta.h
753   repo/SUSEMediaVerifier.h
754   repo/MediaInfoDownloader.h
755   repo/Downloader.h
756   repo/RepoVariables.h
757 )
758
759 INSTALL( FILES
760   ${zypp_repo_HEADERS}
761   DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/repo
762 )
763
764 SET( zypp_repo_yum_SRCS
765   repo/yum/Downloader.cc
766   repo/yum/ResourceType.cc
767 )
768
769 SET( zypp_repo_yum_HEADERS
770   repo/yum/Downloader.h
771   repo/yum/ResourceType.h
772 )
773
774 SET( zypp_repo_susetags_SRCS
775   repo/susetags/Downloader.cc
776 )
777
778 SET( zypp_repo_susetags_HEADERS
779   repo/susetags/Downloader.h
780 )
781
782 SET( zypp_lib_SRCS
783 ${zypp_pool_SRCS}
784 ${zypp_parser_susetags_SRCS}
785 ${zypp_parser_xml_SRCS}
786 ${zypp_parser_yum_SRCS}
787 ${zypp_parser_plaindir_SRCS}
788 ${zypp_parser_SRCS}
789 ${zypp_data_SRCS}
790 ${zypp_media_proxyinfo_SRCS}
791 ${zypp_media_SRCS}
792 ${zypp_url_SRCS}
793 ${zypp_repo_SRCS}
794 ${zypp_repo_yum_SRCS}
795 ${zypp_repo_susetags_SRCS}
796 ${zypp_repo_data_SRCS}
797 ${zypp_target_rpm_SRCS}
798 ${zypp_target_hal_SRCS}
799 ${zypp_target_modalias_SRCS}
800 ${zypp_target_SRCS}
801 ${zypp_solver_detail_SRCS}
802 ${zypp_ui_SRCS}
803 ${zypp_thread_SRCS}
804 ${zypp_SRCS}
805 ${zypp_zypp_detail_SRCS}
806 ${zypp_sat_SRCS}
807 ${zypp_sat_detail_SRCS}
808 ${zypp_EARLY_SRCS}
809 ${zypp_base_SRCS}
810 )
811
812 SET( zypp_lib_HEADERS
813 ${zypp_target_rpm_HEADERS}
814 ${zypp_parser_tagfile_HEADERS}
815 ${zypp_parser_susetags_HEADERS}
816 ${zypp_parser_yum_HEADERS}
817 ${zypp_parser_plaindir_HEADERS}
818 ${zypp_parser_xml_HEADERS}
819 ${zypp_parser_HEADERS}
820 ${zypp_data_HEADERS}
821 ${zypp_ui_HEADERS}
822 ${zypp_media_HEADERS}
823 ${zypp_target_hal_HEADERS}
824 ${zypp_media_proxyinfo_HEADERS}
825 ${zypp_base_HEADERS}
826 ${zypp_solver_detail_HEADERS}
827 ${zypp_sat_HEADERS}
828 ${zypp_sat_detail_HEADERS}
829 ${zypp_url_HEADERS}
830 ${zypp_HEADERS}
831 ${zypp_zypp_detail_HEADERS}
832 ${zypp_thread_HEADERS}
833 ${zypp_repo_HEADERS}
834 ${zypp_source_susetags_HEADERS}
835 ${zypp_target_modalias_HEADERS}
836 ${zypp_target_HEADERS}
837 ${zypp_pool_HEADERS}
838 )
839
840 #
841 # Macro to set the log group for a list of files
842 #
843 MACRO( SET_LOGGROUP _group _files  )
844   SET_SOURCE_FILES_PROPERTIES( ${_files} COMPILE_FLAGS -DZYPP_BASE_LOGGER_LOGGROUP=\\"${_group}\\" )
845   FOREACH (_currentFile ${ARGN})
846 #MESSAGE( STATUS "setting loggroup to \"${_group}\" for ${_currentFile}" )
847     SET_SOURCE_FILES_PROPERTIES( ${_currentFile} COMPILE_FLAGS -DZYPP_BASE_LOGGER_LOGGROUP=\\"${_group}\\" )
848   ENDFOREACH (_currentFile ${ARGN})
849 ENDMACRO( SET_LOGGROUP )
850
851 # Default loggroup for all files
852 SET_LOGGROUP( "zypp" ${zypp_lib_SRCS} )
853
854 # override some defaults
855 SET_LOGGROUP( "satsolver" ${zypp_sat_SRCS} )
856 #SET_LOGGROUP( "group" ${zypp_target_rpm_SRCS} )
857 #SET_LOGGROUP( "group" ${zypp_parser_yum2_SRCS} )
858 #SET_LOGGROUP( "group" ${zypp_capability_SRCS} )
859 #SET_LOGGROUP( "group" ${zypp_ui_SRCS} )
860 #SET_LOGGROUP( "group" ${zypp_data_SRCS} )
861 #SET_LOGGROUP( "group" ${zypp_media_SRCS} )
862 #SET_LOGGROUP( "group" ${zypp_target_hal_SRCS} )
863 #SET_LOGGROUP( "group" ${zypp_parser_xml_SRCS} )
864 #SET_LOGGROUP( "group" ${zypp_media_proxyinfo_SRCS} )
865 #SET_LOGGROUP( "group" ${zypp_source_yum_SRCS} )
866 #SET_LOGGROUP( "group" ${zypp_base_SRCS} )
867 #SET_LOGGROUP( "group" ${zypp_solver_detail_SRCS} )
868 #SET_LOGGROUP( "group" ${zypp_sat_SRCS} )
869 #SET_LOGGROUP( "group" ${zypp_url_SRCS} )
870 #SET_LOGGROUP( "group" ${zypp_source_SRCS} )
871 #SET_LOGGROUP( "group" ${zypp_parser_SRCS} )
872 #SET_LOGGROUP( "group" ${zypp_SRCS} )
873 #SET_LOGGROUP( "group" ${zypp_zypp_detail_SRCS} )
874 #SET_LOGGROUP( "group" ${zypp_thread_SRCS} )
875 #SET_LOGGROUP( "group" ${zypp_source_susetags_SRCS} )
876 #SET_LOGGROUP( "group" ${zypp_target_modalias_SRCS} )
877 #SET_LOGGROUP( "group" ${zypp_target_SRCS} )
878 #SET_LOGGROUP( "group" ${zypp_parser_yum_SRCS} )
879 #SET_LOGGROUP( "group" ${zypp_pool_SRCS} )
880
881
882 ADD_LIBRARY(zypp SHARED ${zypp_lib_SRCS})
883 SET_TARGET_PROPERTIES( zypp PROPERTIES VERSION "${LIBZYPP_VERSION_INFO}" )
884 SET_TARGET_PROPERTIES( zypp PROPERTIES SOVERSION "${LIBZYPP_SOVERSION_INFO}" )
885 ADD_DEPENDENCIES(zypp schema_header)
886 # System libraries
887 TARGET_LINK_LIBRARIES(zypp util )
888 TARGET_LINK_LIBRARIES(zypp ${DBUS_LIBRARY} )
889 TARGET_LINK_LIBRARIES(zypp ${RPM_LIBRARY} )
890 TARGET_LINK_LIBRARIES(zypp ${GETTEXT_LIBRARIES} )
891 TARGET_LINK_LIBRARIES(zypp ${HAL_LIBRARY} )
892 TARGET_LINK_LIBRARIES(zypp ${HAL_STORAGE_LIBRARY} )
893 TARGET_LINK_LIBRARIES(zypp ${CURL_LIBRARY} )
894 TARGET_LINK_LIBRARIES(zypp ${LIBXML_LIBRARY} )
895 TARGET_LINK_LIBRARIES(zypp ${ZLIB_LIBRARY} )
896 TARGET_LINK_LIBRARIES(zypp ${SATSOLVER_LIBRARY} )
897 TARGET_LINK_LIBRARIES(zypp ${OPENSSL_LIBRARIES})
898 TARGET_LINK_LIBRARIES(zypp crypto)
899
900 INSTALL(TARGETS zypp LIBRARY DESTINATION ${LIB_INSTALL_DIR} )
901
902 # install XML schemas
903 FILE( GLOB YUM_SCHEMA_FILES ${CMAKE_SOURCE_DIR}/zypp/parser/yum/schema/*.rng )
904 INSTALL(FILES ${YUM_SCHEMA_FILES} DESTINATION "${CMAKE_INSTALL_PREFIX}/share/zypp/schema/yum" )