[Rock-dev] Rock.cmake

Sylvain Joyeux sylvain.joyeux at dfki.de
Mon Apr 18 15:17:06 CEST 2011


On 04/18/2011 03:07 PM, Peter Soetens wrote:
>> The macros in Rock.cmake follow general guidelines for "make
>> install-oriented stuff" and pkg-config-based dependency tracking. Plus a
>> few sub-package-specific thing (as for instance, testsuite, vizkit
>> plugins and stuff like that that are optional parts of the standard rock
>> library package). Not much more than that.
>
> The similarity to UseOrocos.cmake is strikingly though. The extra luggage on
> useorocos is that it also implements dependency tracking, automatic linking
> and .pc generation, all things which you do in orogen itself.
All things that I personally list in the "too much" category, especially 
for libraries. Manifests are all-enclosing (i.e. the packages listed in 
a manifest are a lot more than what is actually needed by the library's 
public interface. It is also true for orogen projects (albeit less true 
IMO), in which the typekit and the task library have different include 
path and linking requirements (for instance).

I've become very careful with magical stuff, and I believe that putting 
that much magic in the build system is a very bad idea indeed. Moreover, 
you basically shut down people that don't want to use manifest.xml as 
they don't have any "nice" way to add dependencies (something the rock 
macros do)

With the Rock.cmake macros, people have to list their dependencies on a 
per-target basis *and* design their pc file to limit the amount of 
cross-dependencies. The default one provided by the package templates 
works for simple cases (the common case), and for more complex one 
people need to learn a bit more. I see that as a good thing.
-- 
Sylvain Joyeux (Dr.Ing.)
Space & Security Robotics

!!! Achtung, neue Telefonnummer!!!

Standort Bremen:
DFKI GmbH
Robotics Innovation Center
Robert-Hooke-Straße 5
28359 Bremen, Germany

Phone: +49 (0)421 178-454136
Fax:   +49 (0)421 218-454150
E-Mail: robotik at dfki.de

Weitere Informationen: http://www.dfki.de/robotik
-----------------------------------------------------------------------
Deutsches Forschungszentrum fuer Kuenstliche Intelligenz GmbH
Firmensitz: Trippstadter Straße 122, D-67663 Kaiserslautern
Geschaeftsfuehrung: Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster
(Vorsitzender) Dr. Walter Olthoff
Vorsitzender des Aufsichtsrats: Prof. Dr. h.c. Hans A. Aukes
Amtsgericht Kaiserslautern, HRB 2313
Sitz der Gesellschaft: Kaiserslautern (HRB 2313)
USt-Id.Nr.:    DE 148646973
Steuernummer:  19/673/0060/3
-----------------------------------------------------------------------


More information about the Rock-dev mailing list