Skip to main content

Recursive make-operation for sprawling C++ projects.

Project description

Cmaker

Recursive make-operation for sprawling C++ projects.

Installation

pip3 install cmaker

Command line use

Consider a C++ application entry source code at main.cpp that includes headers from various folders. To automatically discover its dependencies and compile what is necessary, do:

makerc.py --input main.cpp --output app.exe

This should produce app.exe in the current directory.

Script use

import cmaker

maker = cmaker.Maker("<path-to-config>")
maker.make("<main>.cpp", "<out>")

Custom arguments

Copy the following contents of the configuration file into cmaker.config in the working directory:

c_ext = .cpp
obj_dirsep = .
obj_dir = dump
compile_cmd = g++ -MMD --coverage -c {inp} -o {out}
combine_cmd = g++ -MMD --coverage {inp} -o {out}

Change whatever your heart desires, but you MUST include the -MMD option for g++ to produce dependency files.

Project details


Download files

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

Source Distribution

cmaker-0.0.6.tar.gz (4.6 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page