Skip to main content

Broken Mouse Studios' build solution

Project description

bmgen - Broken Mouse Studios' build solution

DISCLAIMER

This project is currently in it's beta phase!

It needs to be cleaned up and does not yet have it's full set of features. You may quickly hit it's limits.

You should expect API changes and are welcome to give feedback via https://git.brokenmouse.studio/bms/bmgen/issues

Features

  • build scripts written in Python
  • incremental builds
  • temporary build directories
  • colorful and easy to read output
  • simple build commands

Installation

  • Install bmgen via pip install bmgen or python3 -m pip install bmgen

Building a simple C project

This example shows a script which builds two files named main.c and game.c into a binary named mygame with SDL2.

The following is a breakdown of the script.

  1. First import the clang command:
from bmgen.commands.clang import clang
  1. Then set the output directory -- which will also instantly get created -- and tell the clang command to create it's object directory inside the output directory:
inst.set_output_dir('bin')
clang.update_object_dir()
  1. Build the program via clang:
clang('mygame', ['main.c', 'game.c'], ['sdl2'])

The final bmgen.py looks like this:

from bmgen.commands.clang import clang

inst.set_output_dir('bin')
clang.update_object_dir()

clang('mygame', ['main.c', 'game.c'], ['sdl2'])

Building the program is now as easy as running bmgen in your terminal!

License

This software and it's accompanying files are licensed under the Mozilla Public License Version 2.0.

For the license's contents, see LICENSE or go to https://mozilla.org/MPL/2.0/.

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

bmgen-2023.4.0b2.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bmgen-2023.4.0b2-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file bmgen-2023.4.0b2.tar.gz.

File metadata

  • Download URL: bmgen-2023.4.0b2.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for bmgen-2023.4.0b2.tar.gz
Algorithm Hash digest
SHA256 a90d6eeb6484770fed0637f6ae8817c43501f5df376c811070c69dd47e37c62d
MD5 4ee9647b4dc8950c6048296af4735a92
BLAKE2b-256 aa89b1154f164f24c272dc2c63d698c7364873791ca717968b81783ae14dd4bc

See more details on using hashes here.

File details

Details for the file bmgen-2023.4.0b2-py3-none-any.whl.

File metadata

  • Download URL: bmgen-2023.4.0b2-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for bmgen-2023.4.0b2-py3-none-any.whl
Algorithm Hash digest
SHA256 ce05cd1402f376061b6496f34221bb945bd1d46a74909c1e4b27e1251638c2da
MD5 ef93188a19aec0264d7f271e05322778
BLAKE2b-256 aa0570cb55cd91c2d4d87a68039b48cb3792095b2cb22d39dbe2ea3ca27c296f

See more details on using hashes here.

Supported by

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