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.4.tar.gz (4.5 kB view details)

Uploaded Source

File details

Details for the file cmaker-0.0.4.tar.gz.

File metadata

  • Download URL: cmaker-0.0.4.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.6.8

File hashes

Hashes for cmaker-0.0.4.tar.gz
Algorithm Hash digest
SHA256 319e74bd6726a0e1eeb453f10fc385ba7c901d6d3eebe053c9d96e837397634a
MD5 ef011c3edf01a1522da56170b438f719
BLAKE2b-256 bbfff537ef606f209d55a537037ab64530b38dcc031aad1c0d8d76436ae5149c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page