Skip to main content

FASTbuild generator for the helpless

Project description

Zetsubou

CI (ubuntu-latest) PyPI version

FASTbuild project generator for the helpless

High level wrapper around FASTbuild build system, written in python. Generates Visual Studio solution from simple yaml description. Supports Conan package manager. Provides commands for common operations, like setting up dev environment, building or clean (and many more in future).

Currently only Windows and msvc are supported, but clang and Linux are planned.


Install

pip install zetsubou

Development

Local install in editable mode

python -m pip install -e .

Deploy conan generator

deploy_generator.bat

or

conan export zetsubou/zetsubou_conan_toolchain.py --user=bentou --channel=stable

Usage

zetsubou [COMMAND] [PROJECT] [OPTIONS...]
zetsubou regen project.yml --verbose

Commands

  • clean - removes all generated build folder and sln
  • install - setups virtual environment based on your build_tools.ini
  • gen - generates bff files, creates visual studio project and solution
  • regen - clean, install and gen in one command
  • build - build generated project
  • create - (WiP) emit new project from template

Example Project

project.yml

project: MyTest

config:
  verbose_build: false
  platforms:
    - 'platform/windows.yml'
  rules:
    - 'configurations/MsvcRules.yml'
  configurations:
    - 'configurations/Debug.yml'
    - 'configurations/Release.yml'
  config_string: '{platform}-{configuration}-{toolchain}'

conan:
  build_tools: build_tools.ini
  dependencies: dependencies.ini

targets:
  - 'my_app/my_app.yml'

my_app.yml

target: 'MyApp'

config:
  kind: EXECUTABLE

source:
  paths: 'src'
  patterns:
    - '*.cpp'

Directory structure

my_project/
├── build/              # generated
│   ├── conan/          # conan dependencies install output
│   ├── fbuild/         # generated fastbuild files (bff)
│   ├── projects/       # generated vcxproj files
│   ├── scripts/        # command scripts
│   └── venv/           # virtual environment, with activate and deactivate scripts

├── my_app/
│   ├── src/
│   │   └── main.cpp
│   └── my_app.yml

├── my_project.sln      # generated
├── build_tools.ini
├── dependencies.ini
└── project.yml

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

zetsubou-0.8.0.tar.gz (65.9 kB view details)

Uploaded Source

Built Distribution

zetsubou-0.8.0-py3-none-any.whl (87.6 kB view details)

Uploaded Python 3

File details

Details for the file zetsubou-0.8.0.tar.gz.

File metadata

  • Download URL: zetsubou-0.8.0.tar.gz
  • Upload date:
  • Size: 65.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for zetsubou-0.8.0.tar.gz
Algorithm Hash digest
SHA256 cbacc66e06bceaca578933a42a755a70a44f1f0d449f5b6516e6349915ca209d
MD5 ffa4035bba0a434e82d08050dce724e6
BLAKE2b-256 cdb12cf7f0eb14c55325215a0d7db039369bb4d003b62d1bed967ac5129f61d6

See more details on using hashes here.

File details

Details for the file zetsubou-0.8.0-py3-none-any.whl.

File metadata

  • Download URL: zetsubou-0.8.0-py3-none-any.whl
  • Upload date:
  • Size: 87.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for zetsubou-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dabba1574aa2d57fca732969ff6ba85cef2799e5a9fde2d3c9b07429f410b730
MD5 b5a3bb13d6386ff7353b0ededdd2502c
BLAKE2b-256 65ce69c3daaa747a874249a7ee1cba1ca500a86889b30d1670ea1a0c11abd91f

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