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 a file 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), then specify this file to the program. If this file is named "makerc.config":
makerc.py --input main.cpp --output app.exe --config makerc.config
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.1.tar.gz
(4.4 kB
view details)
File details
Details for the file cmaker-0.0.1.tar.gz.
File metadata
- Download URL: cmaker-0.0.1.tar.gz
- Upload date:
- Size: 4.4 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3325f9fafcf241c49beb86548f6cebd511bef5d3270ee90beb594f75ba6f2c86
|
|
| MD5 |
e723127627cfbc243c3c4184668ff332
|
|
| BLAKE2b-256 |
6156251ba573f820cf23dc5ec5c14e9860e09f2cb913eec27d8ac442813aa4a9
|