6f05cf702f5c36e5d7537eca84743ab896570d8d
[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 )
493
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
507 )
508
509 INSTALL(  FILES
510   ${zypp_solver_detail_HEADERS}
511   DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/solver/detail
512 )
513
514 SET( zypp_sat_SRCS
515   sat/Pool.cc
516   sat/Solvable.cc
517   sat/SolvableSet.cc
518   sat/SolvIterMixin.cc
519   sat/WhatProvides.cc
520   sat/LocaleSupport.cc
521   sat/LookupAttr.cc
522   sat/SATResolver.cc
523   sat/SolvAttr.cc
524   sat/SolverQueueItem.cc
525 )
526
527 SET( zypp_sat_HEADERS
528   sat/Pool.h
529   sat/Solvable.h
530   sat/SolvableSet.h
531   sat/SolvIterMixin.h
532   sat/WhatProvides.h
533   sat/LocaleSupport.h
534   sat/LookupAttr.h
535   sat/SATResolver.h
536   sat/SolverQueueItem.h
537   sat/SolvAttr.h
538 )
539
540 INSTALL(  FILES
541   ${zypp_sat_HEADERS}
542   DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/sat
543 )
544
545 SET( zypp_sat_detail_SRCS
546   sat/detail/PoolImpl.cc
547 )
548
549 SET( zypp_sat_detail_HEADERS
550   sat/detail/PoolMember.h
551   sat/detail/PoolImpl.h
552 )
553
554 INSTALL(  FILES
555   ${zypp_sat_detail_HEADERS}
556   DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/sat/detail
557 )
558
559
560 SET( zypp_target_SRCS
561   target/RequestedLocalesFile.cc
562   target/CommitLog.cc
563   target/CommitPackageCache.cc
564   target/CommitPackageCacheImpl.cc
565   target/CommitPackageCacheReadAhead.cc
566   target/TargetCallbackReceiver.cc
567   target/TargetException.cc
568   target/TargetImpl.cc
569 )
570
571 SET( zypp_target_HEADERS
572   target/RequestedLocalesFile.h
573   target/CommitLog.h
574   target/CommitPackageCache.h
575   target/CommitPackageCacheImpl.h
576   target/CommitPackageCacheReadAhead.h
577   target/TargetCallbackReceiver.h
578   target/TargetException.h
579   target/TargetImpl.h
580 )
581
582 INSTALL(  FILES
583   ${zypp_target_HEADERS}
584   DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/target
585 )
586
587 SET( zypp_target_hal_SRCS
588   target/hal/Hal.cc
589   target/hal/HalContext.cc
590 )
591
592 SET( zypp_target_hal_HEADERS
593   target/hal/Hal.h
594   target/hal/HalContext.h
595   target/hal/HalException.h
596 )
597
598 INSTALL(  FILES
599   ${zypp_target_hal_HEADERS}
600   DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/target/hal
601 )
602
603 SET( zypp_target_modalias_SRCS
604   target/modalias/Modalias.cc
605 )
606
607 SET( zypp_target_modalias_HEADERS
608   target/modalias/Modalias.h
609 )
610
611 INSTALL(  FILES
612   ${zypp_target_modalias_HEADERS}
613   DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/target/modalias
614 )
615
616 SET( zypp_target_rpm_SRCS
617   target/rpm/BinHeader.cc
618   target/rpm/RpmCallbacks.cc
619   target/rpm/RpmDb.cc
620   target/rpm/RpmException.cc
621   target/rpm/RpmHeader.cc
622   target/rpm/librpmDb.cc
623   target/rpm/librpmDb.cv3.cc
624 )
625
626 SET( zypp_target_rpm_HEADERS
627   target/rpm/BinHeader.h
628   target/rpm/RpmCallbacks.h
629   target/rpm/RpmDb.h
630   target/rpm/RpmException.h
631   target/rpm/RpmHeader.h
632   target/rpm/librpm.h
633   target/rpm/librpmDb.h
634 )
635
636 INSTALL(  FILES
637   ${zypp_target_rpm_HEADERS}
638   DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/target/rpm
639 )
640
641 SET( zypp_thread_SRCS
642   thread/Mutex.cc
643 )
644
645 SET( zypp_thread_HEADERS
646   thread/Mutex.h
647   thread/MutexException.h
648   thread/MutexLock.h
649   thread/Once.h
650 )
651
652 INSTALL(  FILES
653   ${zypp_thread_HEADERS}
654   DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/thread
655 )
656
657 SET( zypp_ui_SRCS
658   ui/PatchContents.cc
659   ui/PatchContentsImpl.cc
660   ui/PatternContents.cc
661   ui/PatternContentsImpl.cc
662   ui/PatternExpander.cc
663   ui/Selectable.cc
664   ui/SelectableImpl.cc
665   ui/Status.cc
666   ui/UserWantedPackages.cc
667 )
668
669 SET( zypp_ui_HEADERS
670   ui/PatchContents.h
671   ui/PatchContentsImpl.h
672   ui/PatternContents.h
673   ui/PatternContentsImpl.h
674   ui/PatternExpander.h
675   ui/SelFilters.h
676   ui/Selectable.h
677   ui/SelectableImpl.h
678   ui/SelectableTraits.h
679   ui/Status.h
680   ui/UserWantedPackages.h
681 )
682
683 INSTALL(  FILES
684   ${zypp_ui_HEADERS}
685   DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/ui
686 )
687
688 SET( zypp_url_SRCS
689   url/UrlUtils.cc
690   url/UrlBase.cc
691 )
692
693 SET( zypp_url_HEADERS
694   url/UrlBase.h
695   url/UrlException.h
696   url/UrlUtils.h
697 )
698
699 INSTALL(  FILES
700   ${zypp_url_HEADERS}
701   DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/url
702 )
703
704 SET( zypp_zypp_detail_SRCS
705   zypp_detail/ZYppImpl.cc
706 )
707
708 SET( zypp_zypp_detail_HEADERS
709   zypp_detail/ZYppImpl.h
710   zypp_detail/ZYppReadOnlyHack.h
711 )
712
713 INSTALL(  FILES
714   ${zypp_zypp_detail_HEADERS}
715   DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/zypp_detail
716 )
717
718 SET( zypp_repo_SRCS
719   repo/dummy.cc
720   repo/RepoException.cc
721   repo/RepoType.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
728   repo/PackageDelta.cc
729   repo/SUSEMediaVerifier.cc
730   repo/MediaInfoDownloader.cc
731   repo/Downloader.cc
732   repo/RepoVariables.cc
733 )
734
735 SET( zypp_repo_HEADERS
736   repo/RepoException.h
737   repo/RepoType.h
738   repo/PackageProvider.h
739   repo/SrcPackageProvider.h
740   repo/ScriptProvider.h
741   repo/RepoProvideFile.h
742   repo/DeltaCandidates.h
743   repo/Applydeltarpm.h
744   repo/PackageDelta.h
745   repo/SUSEMediaVerifier.h
746   repo/MediaInfoDownloader.h
747   repo/Downloader.h
748   repo/RepoVariables.h
749 )
750
751 INSTALL( FILES
752   ${zypp_repo_HEADERS}
753   DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/repo
754 )
755
756 SET( zypp_repo_yum_SRCS
757   repo/yum/Downloader.cc
758   repo/yum/ResourceType.cc
759 )
760
761 SET( zypp_repo_yum_HEADERS
762   repo/yum/Downloader.h
763   repo/yum/ResourceType.h
764 )
765
766 SET( zypp_repo_susetags_SRCS
767   repo/susetags/Downloader.cc
768 )
769
770 SET( zypp_repo_susetags_HEADERS
771   repo/susetags/Downloader.h
772 )
773
774 SET( zypp_lib_SRCS
775 ${zypp_pool_SRCS}
776 ${zypp_parser_susetags_SRCS}
777 ${zypp_parser_xml_SRCS}
778 ${zypp_parser_yum_SRCS}
779 ${zypp_parser_plaindir_SRCS}
780 ${zypp_parser_SRCS}
781 ${zypp_data_SRCS}
782 ${zypp_media_proxyinfo_SRCS}
783 ${zypp_media_SRCS}
784 ${zypp_url_SRCS}
785 ${zypp_repo_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}
792 ${zypp_target_SRCS}
793 ${zypp_solver_detail_SRCS}
794 ${zypp_ui_SRCS}
795 ${zypp_thread_SRCS}
796 ${zypp_SRCS}
797 ${zypp_zypp_detail_SRCS}
798 ${zypp_sat_SRCS}
799 ${zypp_sat_detail_SRCS}
800 ${zypp_EARLY_SRCS}
801 ${zypp_base_SRCS}
802 )
803
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}
812 ${zypp_data_HEADERS}
813 ${zypp_ui_HEADERS}
814 ${zypp_media_HEADERS}
815 ${zypp_target_hal_HEADERS}
816 ${zypp_media_proxyinfo_HEADERS}
817 ${zypp_base_HEADERS}
818 ${zypp_solver_detail_HEADERS}
819 ${zypp_sat_HEADERS}
820 ${zypp_sat_detail_HEADERS}
821 ${zypp_url_HEADERS}
822 ${zypp_HEADERS}
823 ${zypp_zypp_detail_HEADERS}
824 ${zypp_thread_HEADERS}
825 ${zypp_repo_HEADERS}
826 ${zypp_source_susetags_HEADERS}
827 ${zypp_target_modalias_HEADERS}
828 ${zypp_target_HEADERS}
829 ${zypp_pool_HEADERS}
830 )
831
832 #
833 # Macro to set the log group for a list of files
834 #
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 )
842
843 # Default loggroup for all files
844 SET_LOGGROUP( "zypp" ${zypp_lib_SRCS} )
845
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} )
872
873
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)
878 # System libraries
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)
891
892 INSTALL(TARGETS zypp LIBRARY DESTINATION ${LIB_INSTALL_DIR} )
893
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" )