|
View:
New views
8 Messages
—
Rating Filter:
Alert me
|
|
|
|
|
|
Re: [kopete-devel] kdenetwork - unnecessary find_package(KdepimLibs REQUIRED)On Tuesday 27 October 2009 19:33:54 Maciej Mrozowski wrote:
> On Thursday 22 of October 2009 18:44:15 Alexander Neundorf wrote: > > Sorry for a lag. > > > +if(INSIDE_KDENETWORK) > > > > + find_package(KdepimLibs REQUIRED) > > + include_directories(${KDEPIMLIBS_INCLUDE_DIR}) > > + > > +else(INSIDE_KDENETWORK) > > > > Why is kdepimlibs only required when kopete is built as part of > > kdenetwork > > It's not exactly like this - if you look at > http://websvn.kde.org/trunk/KDE/kdenetwork/kopete/CMakeLists.txt?revision=1 > 041143&view=markup > > there's already indication, that kopete authors used to (not sure whether > it applies anymore) distribute/build kopete as standalone application and > check for kdepimlibs in this case. > > > Also, while you are working on this, could you please check which of all > > the included CheckSomething.cmake files in kopete/CMakeLists.txt and > > krdc/CMakeLists.txt are actually used there ? > > Some indeed aren't, and in krdc none are... (see revised patch attached to > this mail). > > > And I don't really like this one: > > +if(INSIDE_KDENETWORK) > > > > There are at least two other options: > > +if(NOT ${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}) > > which will work not only in kdenetwork, but in all other places too, > > > > or, more similar to the first one: > > +if(kdenetwork_SOURCE_DIR) > > This exists only when kopete is built as part of kdenetwork, due to the > > project(kdenetwork) > > call at the top of kdenetwork/CMakeLists.txt, which defines this variable > > (and also kdenetwork_BINARY_DIR) > > I'm not the author of INSIDE_KDENETWORK concept so cannot really comment > here, though I agree with you - the less cmake variables created and the > more universal approach - the better. > > Revised patch: > - moved to (${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}) way > of detecting standalone build in kopete > - removed support for standalone krdc compilation - doesn't work well as it > needs cmake modules from kdenework/cmake anyway. > - removed unused CheckXXX.cmake includes from kopete > - moved KdepimLibs check to kopete subdir > - moved kdenetwork toplevel include_directories (KDEPIMLIBS_INCLUDE_DIR) to > kopete/CMakeLists.txt and removed duplicated one from > kopete/plugins/bonjour - removed duplicated find_package(LibVNCServer) as > there's > macro_optional_find_package(LibVNCServer) already just below > - minor code style cleanup (FIND_PACKAGE->find_package) in kopete > > Any comments on this? (Urs?) > (please keep discussion in kde-buildsystem, thanks) > times easier to read. I'd rather use kdenetwork_SOURCE_DIR or whatever it is that gets generated by the "project(kdenetwork)" call. Seriously, does having an extra variable actually add that significant of a cost? Otherwise, I have no problems with this patch. -- Matt (Not subscribed to kde-buildsystem, please cc me or keep kopete-devel in the chain) _______________________________________________ kopete-devel mailing list kopete-devel@... https://mail.kde.org/mailman/listinfo/kopete-devel |
|
|
Re: [kopete-devel] kdenetwork - unnecessary find_package(KdepimLibs REQUIRED)Maciej Mrozowski wrote:
> On Thursday 22 of October 2009 18:44:15 Alexander Neundorf wrote: > > Sorry for a lag. > > >> +if(INSIDE_KDENETWORK) >> >> + find_package(KdepimLibs REQUIRED) >> + include_directories(${KDEPIMLIBS_INCLUDE_DIR}) >> + >> +else(INSIDE_KDENETWORK) >> >> Why is kdepimlibs only required when kopete is built as part of kdenetwork >> > > It's not exactly like this - if you look at > http://websvn.kde.org/trunk/KDE/kdenetwork/kopete/CMakeLists.txt?revision=1041143&view=markup > > there's already indication, that kopete authors used to (not sure whether it > applies anymore) distribute/build kopete as standalone application and check > for kdepimlibs in this case. > > >> Also, while you are working on this, could you please check which of all >> the included CheckSomething.cmake files in kopete/CMakeLists.txt and >> krdc/CMakeLists.txt are actually used there ? >> > > Some indeed aren't, and in krdc none are... (see revised patch attached to > this mail). > > >> And I don't really like this one: >> +if(INSIDE_KDENETWORK) >> >> There are at least two other options: >> +if(NOT ${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}) >> which will work not only in kdenetwork, but in all other places too, >> >> or, more similar to the first one: >> +if(kdenetwork_SOURCE_DIR) >> This exists only when kopete is built as part of kdenetwork, due to the >> project(kdenetwork) >> call at the top of kdenetwork/CMakeLists.txt, which defines this variable >> (and also kdenetwork_BINARY_DIR) >> > > I'm not the author of INSIDE_KDENETWORK concept so cannot really comment here, > though I agree with you - the less cmake variables created and the more > universal approach - the better. > > Revised patch: > - moved to (${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}) way of > detecting standalone build in kopete > - removed support for standalone krdc compilation - doesn't work well as it > needs cmake modules from kdenework/cmake anyway. > - removed unused CheckXXX.cmake includes from kopete > - moved KdepimLibs check to kopete subdir > - moved kdenetwork toplevel include_directories (KDEPIMLIBS_INCLUDE_DIR) to > kopete/CMakeLists.txt and removed duplicated one from kopete/plugins/bonjour > - removed duplicated find_package(LibVNCServer) as there's > macro_optional_find_package(LibVNCServer) already just below > - minor code style cleanup (FIND_PACKAGE->find_package) in kopete > > Any comments on this? (Urs?) > (please keep discussion in kde-buildsystem, thanks) > > > ------------------------------------------------------------------------ > > _______________________________________________ > kopete-devel mailing list > kopete-devel@... > https://mail.kde.org/mailman/listinfo/kopete-devel version, did not work anymore after Yahoo changed there protocal... Check it out... Larry * -- Powered by Debian/GNU/Linux by Ubuntu ver 9.10 Karmic 73 de Larry/wd9esu 33yr's A.R.O. Reg# Linux User 484593 "This is Linux Country, on a quiet night you can hear WINDOZE ! Systems REBOOTING !!" GPG Fingerprint: A4D2 BFC2 B21B 8F7A C336 EFDC 7039 3CA5 3332 076E Public Key available from subkeys.pgp.net _______________________________________________ kopete-devel mailing list kopete-devel@... https://mail.kde.org/mailman/listinfo/kopete-devel |
|
|
Re: [kopete-devel] kdenetwork - unnecessary find_package(KdepimLibs REQUIRED)On Wednesday 28 October 2009, Matt Rogers wrote:
> On Tuesday 27 October 2009 19:33:54 Maciej Mrozowski wrote: > > On Thursday 22 of October 2009 18:44:15 Alexander Neundorf wrote: > > > > Sorry for a lag. > > > > > +if(INSIDE_KDENETWORK) > > > > > > + find_package(KdepimLibs REQUIRED) > > > + include_directories(${KDEPIMLIBS_INCLUDE_DIR}) > > > + > > > +else(INSIDE_KDENETWORK) > > > > > > Why is kdepimlibs only required when kopete is built as part of > > > kdenetwork > > > > It's not exactly like this - if you look at > > http://websvn.kde.org/trunk/KDE/kdenetwork/kopete/CMakeLists.txt?revision > >=1 041143&view=markup > > > > there's already indication, that kopete authors used to (not sure whether > > it applies anymore) distribute/build kopete as standalone application > > and check for kdepimlibs in this case. > > > > > Also, while you are working on this, could you please check which of > > > all the included CheckSomething.cmake files in kopete/CMakeLists.txt > > > and krdc/CMakeLists.txt are actually used there ? > > > > Some indeed aren't, and in krdc none are... (see revised patch attached > > to this mail). > > > > > And I don't really like this one: > > > +if(INSIDE_KDENETWORK) > > > > > > There are at least two other options: > > > +if(NOT ${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}) > > > which will work not only in kdenetwork, but in all other places too, > > > > > > or, more similar to the first one: > > > +if(kdenetwork_SOURCE_DIR) > > > This exists only when kopete is built as part of kdenetwork, due to the > > > project(kdenetwork) > > > call at the top of kdenetwork/CMakeLists.txt, which defines this > > > variable (and also kdenetwork_BINARY_DIR) > > > > I'm not the author of INSIDE_KDENETWORK concept so cannot really comment > > here, though I agree with you - the less cmake variables created and the > > more universal approach - the better. > > > > Revised patch: > > - moved to (${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}) way > > of detecting standalone build in kopete See at the enmd of this mail. > > - removed support for standalone krdc compilation - doesn't work well as > > it needs cmake modules from kdenework/cmake anyway. The krdc developers should comment on this. > > - removed unused CheckXXX.cmake includes from kopete > > - moved KdepimLibs check to kopete subdir > > - moved kdenetwork toplevel include_directories (KDEPIMLIBS_INCLUDE_DIR) > > to kopete/CMakeLists.txt and removed duplicated one from > > kopete/plugins/bonjour > > - removed duplicated find_package(LibVNCServer) as there's > > macro_optional_find_package(LibVNCServer) already just below > > - minor code style cleanup (FIND_PACKAGE->find_package) in kopete Ok from my side. > > Any comments on this? (Urs?) > > (please keep discussion in kde-buildsystem, thanks) > > I dislike the STREQUAL stuff. if (NOT INSIDE_KDENETWORK) is about a > bazillion times easier to read. I'd rather use kdenetwork_SOURCE_DIR or > whatever it is that gets generated by the "project(kdenetwork)" call. > Seriously, does having an extra variable actually add that significant of a > cost? No, but it would be nicer to use one of the two more generic methods, where you don't create a new mechanism. Alex _______________________________________________ kopete-devel mailing list kopete-devel@... https://mail.kde.org/mailman/listinfo/kopete-devel |
|
|
Re: [kopete-devel] kdenetwork - unnecessary find_package(KdepimLibs REQUIRED)On Wednesday 28 October 2009 18:47:38 Alexander Neundorf wrote:
> On Wednesday 28 October 2009, Matt Rogers wrote: > > On Tuesday 27 October 2009 19:33:54 Maciej Mrozowski wrote: > > > On Thursday 22 of October 2009 18:44:15 Alexander Neundorf wrote: [...] > > > - removed support for standalone krdc compilation - doesn't work well > > > as it needs cmake modules from kdenework/cmake anyway. > > The krdc developers should comment on this. It's supposed to work... Probably it got broken with one of the recent chagnes (telepathy?). Anyway, I would like to keep this "feature" since it makes it easier work with a IDE. It's not fundamental IMHO, but a nice feature. I will try to fix it in a nice way ASAP (probably this weekend?). If anyone has a better way to fix KRDC standalone build, feel free to work on it. [...] > > I dislike the STREQUAL stuff. if (NOT INSIDE_KDENETWORK) is about a > > bazillion times easier to read. I'd rather use kdenetwork_SOURCE_DIR or > > whatever it is that gets generated by the "project(kdenetwork)" call. > > Seriously, does having an extra variable actually add that significant of > > a cost? > > No, but it would be nicer to use one of the two more generic methods, where > you don't create a new mechanism. What's the "best practice" for such standalone-builds? What do you suggest? Bye urs _______________________________________________ kopete-devel mailing list kopete-devel@... https://mail.kde.org/mailman/listinfo/kopete-devel |
|
|
Re: [kopete-devel] kdenetwork - unnecessary find_package(KdepimLibs REQUIRED)On Wednesday 28 of October 2009 21:53:00 Urs Wolfer wrote:
> On Wednesday 28 October 2009 18:47:38 Alexander Neundorf wrote: > > On Wednesday 28 October 2009, Matt Rogers wrote: > > > On Tuesday 27 October 2009 19:33:54 Maciej Mrozowski wrote: > > > > On Thursday 22 of October 2009 18:44:15 Alexander Neundorf wrote: > > [...] > > > > > - removed support for standalone krdc compilation - doesn't work well > > > > as it needs cmake modules from kdenework/cmake anyway. > > > > The krdc developers should comment on this. > > It's supposed to work... Probably it got broken with one of the recent > chagnes (telepathy?). Anyway, I would like to keep this "feature" since it > makes it easier work with a IDE. It's not fundamental IMHO, but a nice > feature. I will try to fix it in a nice way ASAP (probably this weekend?). > If anyone has a better way to fix KRDC standalone build, feel free to work > on it. > > [...] kdenetwork/cmake, because they are shared), so making really standalone build would require: - either duplicating them to project cmake subdirectory (and maybe some recently moved to kdelibs as well if one is paranoid about kdelibs compatibility) - the easiest, but leaves a little maintenance burden - moving most commonly used (or maybe all of them?) to kdelibs, after they pass some QA, and depend on particular kdelibs version at build time. Alternative approach (rather feature request for cmake) - create mechanism to fetch (and update) all cmake modules from some online repository, so that there's no need to depend on particular kdelibs version just to have cmake modules available to use. > > > I dislike the STREQUAL stuff. if (NOT INSIDE_KDENETWORK) is about a > > > bazillion times easier to read. I'd rather use kdenetwork_SOURCE_DIR or > > > whatever it is that gets generated by the "project(kdenetwork)" call. > > > Seriously, does having an extra variable actually add that significant > > > of a cost? If it was up to me, if any, I'd prefer STREQUAL way as it is the most generic and will work like everywhere. It does not need module_SOURCE_DIR nor any other external variables to be defined, thus it can serve as a good copy/paste example to be used elsewhere. I think the best way of getting just some subdirectory to build/develop is to fetch whole module (like kdenetwork), then remove every subdir that is not 'cmake' and not 'krdc' for instance. It will be 'standalone' in terms it won't build unnecessary stuff, yet it doesn't need separate cmake codepaths to get it done (easier maintenance, no duplicated code - win-win if you ask me). -- regards MM _______________________________________________ kopete-devel mailing list kopete-devel@... https://mail.kde.org/mailman/listinfo/kopete-devel |
|
|
Re: [kopete-devel] kdenetwork - unnecessary find_package(KdepimLibs REQUIRED)On Thursday 29 October 2009, Maciej Mrozowski wrote:
> On Wednesday 28 of October 2009 21:53:00 Urs Wolfer wrote: > > On Wednesday 28 October 2009 18:47:38 Alexander Neundorf wrote: > > > On Wednesday 28 October 2009, Matt Rogers wrote: > > > > On Tuesday 27 October 2009 19:33:54 Maciej Mrozowski wrote: > > > > > On Thursday 22 of October 2009 18:44:15 Alexander Neundorf wrote: > > > > [...] > > > > > > > - removed support for standalone krdc compilation - doesn't work > > > > > well as it needs cmake modules from kdenework/cmake anyway. > > > > > > The krdc developers should comment on this. > > > > It's supposed to work... Probably it got broken with one of the recent > > chagnes (telepathy?). Anyway, I would like to keep this "feature" since > > it makes it easier work with a IDE. It's not fundamental IMHO, but a nice > > feature. I will try to fix it in a nice way ASAP (probably this > > weekend?). If anyone has a better way to fix KRDC standalone build, feel > > free to work on it. > > > > [...] > > Well, apart from it mainly lacks cmake modules (that are provided by > toplevel kdenetwork/cmake, because they are shared), so making really > standalone build would require: > - either duplicating them to project cmake subdirectory (and maybe some > recently moved to kdelibs as well if one is paranoid about kdelibs > compatibility) - the easiest, but leaves a little maintenance burden > - moving most commonly used (or maybe all of them?) to kdelibs, after they > pass some QA, and depend on particular kdelibs version at build time. Which modules are that ? Maybe they are used only by krdc ? > Alternative approach (rather feature request for cmake) - create mechanism > to fetch (and update) all cmake modules from some online repository, so > that there's no need to depend on particular kdelibs version just to have > cmake modules available to use. Hmm, would that be different from installing them along with kdelibs ? I mean from the compatibility POV... We could download them from somewhere using wget or file(DOWNLOAD ...), but this would place the compatibility burden on that remote network repository. > > > > I dislike the STREQUAL stuff. if (NOT INSIDE_KDENETWORK) is about a > > > > bazillion times easier to read. I'd rather use kdenetwork_SOURCE_DIR > > > > or whatever it is that gets generated by the "project(kdenetwork)" > > > > call. Seriously, does having an extra variable actually add that > > > > significant of a cost? > > If it was up to me, if any, I'd prefer STREQUAL way as it is the most > generic and will work like everywhere. It does not need module_SOURCE_DIR > nor any other external variables to be defined, thus it can serve as a good > copy/paste example to be used elsewhere. Either STREQUAL or the <project>_SOURCE_DIR, from my POV both are ok. > I think the best way of getting just some subdirectory to build/develop is > to fetch whole module (like kdenetwork), You could also check out kdenetwork non-recursively and then only update cmake/ and krdc/ Alex _______________________________________________ kopete-devel mailing list kopete-devel@... https://mail.kde.org/mailman/listinfo/kopete-devel |
|
|
Re: [kopete-devel] kdenetwork - unnecessary find_package(KdepimLibs REQUIRED)On Thursday 29 October 2009 08:59:12 Maciej Mrozowski wrote:
> On Wednesday 28 of October 2009 21:53:00 Urs Wolfer wrote: > > On Wednesday 28 October 2009 18:47:38 Alexander Neundorf wrote: > > > On Wednesday 28 October 2009, Matt Rogers wrote: > > > > On Tuesday 27 October 2009 19:33:54 Maciej Mrozowski wrote: > > > > > On Thursday 22 of October 2009 18:44:15 Alexander Neundorf wrote: > > > > [...] > > > > > > > - removed support for standalone krdc compilation - doesn't work > > > > > well as it needs cmake modules from kdenework/cmake anyway. > > > > > > The krdc developers should comment on this. > > > > It's supposed to work... Probably it got broken with one of the recent > > chagnes (telepathy?). Anyway, I would like to keep this "feature" since > > it makes it easier work with a IDE. It's not fundamental IMHO, but a nice > > feature. I will try to fix it in a nice way ASAP (probably this > > weekend?). If anyone has a better way to fix KRDC standalone build, feel > > free to work on it. > > > > [...] > > Well, apart from it mainly lacks cmake modules (that are provided by > toplevel kdenetwork/cmake, because they are shared), so making really > standalone build would require: > - either duplicating them to project cmake subdirectory (and maybe some > recently moved to kdelibs as well if one is paranoid about kdelibs > compatibility) - the easiest, but leaves a little maintenance burden > - moving most commonly used (or maybe all of them?) to kdelibs, after they > pass some QA, and depend on particular kdelibs version at build time. > > Alternative approach (rather feature request for cmake) - create mechanism > to fetch (and update) all cmake modules from some online repository, so > that there's no need to depend on particular kdelibs version just to have > cmake modules available to use. > > > > > I dislike the STREQUAL stuff. if (NOT INSIDE_KDENETWORK) is about a > > > > bazillion times easier to read. I'd rather use kdenetwork_SOURCE_DIR > > > > or whatever it is that gets generated by the "project(kdenetwork)" > > > > call. Seriously, does having an extra variable actually add that > > > > significant of a cost? > > If it was up to me, if any, I'd prefer STREQUAL way as it is the most > generic and will work like everywhere. It does not need module_SOURCE_DIR > nor any other external variables to be defined, thus it can serve as a > good copy/paste example to be used elsewhere. > I think the best way of getting just some subdirectory to build/develop is > to fetch whole module (like kdenetwork), then remove every subdir that is > not 'cmake' and not 'krdc' for instance. It will be 'standalone' in terms > it won't build unnecessary stuff, yet it doesn't need separate cmake > codepaths to get it done (easier maintenance, no duplicated code - win-win > if you ask me). > Except that it doesn't work for the more common use case of using git-svn to mirror a single directory, so it's not the best way for me (and others). That was what the whole INSIDE_KDENETWORK thing was trying to address, if we can use the STREQUAL way or some other more generic way, then whatever, as long as I can still use it like I want. -- Matt _______________________________________________ kopete-devel mailing list kopete-devel@... https://mail.kde.org/mailman/listinfo/kopete-devel |
| Free embeddable forum powered by Nabble | Forum Help |