Alessio Biancalana Grab The Blaster di Alessio Biancalana

APT passa a CMake

Dato che ultimamente ho scritto spesso del codice C mi sono appassionato ai sistemi di build, ai Makefile, e a tutto quello che ci gira intorno. Stavo anche scrivendo la guida per i niubbi, ma l’ho lasciata nell’hard disk del fisso a casa mentre in vacanza ho portato il laptop (il quale ho scoperto essere poco utile per le notti in aeroporto: ho cestinato tutti i film che avevo…).

Tentando di giustificare il mio essere poco prolifico con queste frasi, passiamo oltre e andiamo a guardare che diamine ha fatto Julian Andres portando APT a CMake. È un sacco di roba, e penso che il passaggio più importante – almeno per me che sono a zero su C e building/bundling – sia questo:

Talking about CMake: I don’t really love it. As you might know, CMake differentiates between targets and files. Targets can in some cases depend on files (generated by a command in the same directory), but overall files are not really targets. You also cannot have a target with the same name as a file you are generating in a custom command, you have to rename your target (make is OK with the generated stuff, but ninja complains about cycles because your custom target and your custom command have the same name).

Alla fine della fiera è un lavoro secondo me molto, molto carino. E io vorrei saper mettere le mani a questo modo al sorgente di un tool così importante :-)

comments powered by Disqus

Member of

Previous Random Next