Skip to main content

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.

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

Uploaded Source

File details

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

File metadata

  • Download URL: cmaker-0.0.2.tar.gz
  • Upload date:
  • Size: 4.3 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.2.tar.gz
Algorithm Hash digest
SHA256 3aece30493d8c8f6f23ce51165107aabd3fcbe1250705e135989d91bd127e947
MD5 a6d23cd6b1ff80290c046f4ebe461559
BLAKE2b-256 29e6287c548b79cb8f51409a99c26f41006aaff6e425cb4f2925274a453c28e3

See more details on using hashes here.

Release history Release notifications | RSS feed

0.0.6

1 file

0.0.5

1 file

0.0.4

1 file

0.0.3

1 file

This release

0.0.2 This release

1 file

0.0.1

1 file

0.0.0

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page