Quantcast
Channel: Planet Ubuntu
Viewing all articles
Browse latest Browse all 17727

Monty Taylor: Quickly Templates for C/C++ in/using pandora-build

$
0
0

I've been remiss in blogging about this - been on my todo list for a while, but you know, coding is less exciting than blogging.

But then this morning I was reading Shane's post about Quickly templates for Vala and one he hacked up for C, which has spurred me on to actually get off my butt and write a blog post - since I've had a quickly template which supports C and C++ for months now. Sigh. Sorry.

Anyhow - the template a part of the pandora-build project, and can be installed with:

 add-apt-repository ppa:drizzle-developers/ppa
 apt-get install pandora-build

At that point:

 quickly create pandora-build foo application

or

 quickly create pandora-build foo library

Should work. There are two different sub-commands for making a lib or an app, since those are a slightly different layout. All of the projects created are fully pandora-build enabled. There is a quickly upgrade command for upgrading to the latest installed pandora-build for the project, and a quickly add class command which will create new stub class files for you and add them to the build system. The stub project should work immediately with autoreconf -i ; ./configure ; make distcheck

There are also pandora-build-c templates if you want C rather than C++, but I just gave them a test and there is a bug that I  fixed in the c++ versions but didn't carry over to the C templates. I'll try to get that sorted real soon now.

Since this is all driven by my managing of the build systems withing Drizzle, Gearman and libmemcached, I keep adding bits in from our standards there - so I've got adding in support for gtest test suites and Sphinx documentation on my todo list. I also need to add support for spinning up debs, but I'm a little at odds with how that should work as I'm not so much a believer in debian packaging in upstream sources... so I'll have to battle with that later.

Update: Turns out I suck - I didn't upload to Maverick - fixing. 

Update: Ok. C-template problem fixed. v0.156. New packages uploaded to the drizzle-developers PPA. 


Viewing all articles
Browse latest Browse all 17727

Trending Articles