scons to makefile?

1,228 views
Skip to first unread message

notanymike

unread,
Mar 19, 2012, 11:26:03 AM3/19/12
to cort...@googlegroups.com
Is there a way to automatically convert a sconscript file to a makefile, or are they easy to manually transition? Would a makefile be able to successfully build Cortex?

john haddon

unread,
Mar 20, 2012, 4:04:29 PM3/20/12
to cortexdev
I'm not aware of any automatic scons->make conversion. A Makefile
could successfully build Cortex, but right now SCons is your best bet,
as that's how all the successful builds have been made.

While we're on the subject though, I'm curious about this :

http://code.google.com/p/rez-config/

Seems like it might be rather nice - anyone got any idea what it would
take to convert Cortex to a CMake based build using it?
Cheers...
John

notanymike

unread,
Mar 20, 2012, 4:14:32 PM3/20/12
to cort...@googlegroups.com

Thanks, I was considering make because I didn't want to have to keep changing the default Python in ubuntu (I'm now using the linux mint kde version), but I figured out how to get the scons script to be run by another python binary without messing around with any settings/instillations...

Malcolm Humphreys

unread,
Mar 20, 2012, 7:12:39 PM3/20/12
to cort...@googlegroups.com
I'm pretty sure Dan/Carsten did some of this work at least for the IECoreHoudini

http://code.google.com/p/cortex-vfx/source/browse/trunk/contrib/IECoreHoudini/CMakeLists.txt
http://code.google.com/p/cortex-vfx/source/browse/#svn/trunk/contrib/IECoreHoudini/config/cmake

Most of the work would be in creating the Find<Module>.cmake for all the dependant parts that work in both custom (vfx shops) and standard setups. Good news is most of these exist in part in other projects, so once they are in place the rest is super straight forward.

.malcolm

> --
> You received this message because you are subscribed to the "cortexdev" group.
> To post to this group, send email to cort...@googlegroups.com
> To unsubscribe from this group, send email to cortexdev-...@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/cortexdev?hl=en

Allan Johns

unread,
Apr 5, 2012, 4:28:04 AM4/5/12
to cort...@googlegroups.com
Hey, Rez author here,

Having Cortex make use of the Rez project would be great, but imo you should first consider just porting to CMake - doing both at the same time would probably be painful.

As Malcolm mentions, the FindXXX.cmake code represents a chunk of the work, because there isn't really a standard for that. This is something I'd like Rez to address eventually though... possibly via some kind of rez-conf tool that uses cmake to create standardised packages for common dependencies (boost, ilm etc etc), so they're then exposed through the same interface in every studio.

hth
A
Reply all
Reply to author
Forward
0 new messages