Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Converts CMake build descriptions for a complete project to SCons scripts (SConstruct/SConscript)

Project Description

Basics

This tool can be used to “convert” a CMake-based build project to SCons. It’s intended for comparisons between these two build systems, mainly regarding speed performance. But it can also be used to automate the tedious work of rewriting all the build spec files, when switching a project from CMake to SCons.

Please note that currently not all CMake commands are implemented, so you still have to look over all output files and correct things where necessary.

Installing

For installing via pip, you have to say

pip install cmake2scons

Your other option is to clone the repository https://bitbucket.org/dirkbaechle/cmake2scons, change into its top-level folder, get root and then run the command

python setup.py install

Starting

After a successful installation, you can call CMake2SCons from the command-line

CMake2SCons

It supports an optional parameter, the path to the top-level folder of your CMake-based project. If no argument is given, the current working directory is used (default “.”). CMake2SCons then scans all contained folders recursively for files named “CMakeLists.txt” and writes a new “SConscript” in parallel for each. The top-level CMake file gets converted to an “SConstruct” file.

A simple usage message gets listed with the -h option (or --help).

Requirements

CMake2SCons should run under any Python2.x, with having the

  • pyparsing

binding installed.

TODOs and known problems

  • Implement more commands.
Release History

Release History

This version
History Node

1.1

History Node

1.0

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
CMake2SCons-1.1.tar.gz (8.7 kB) Copy SHA256 Checksum SHA256 Source Dec 15, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting