Skip to main content

Fast C/C++ Builder written in Python

Project description

[翻訳者募集中]

BuildPy: 新しい簡単でシンプルなビルドスクリプト

使い方

あなたの c/cpp プロジェクトの中にサブモジュールとしてこのリポジトリをクローンします。
そして、同じ場所に <project-name>.buildpy という名前で、ビルドスクリプトを用意します。

ビルド

ビルドするときに、以下のコマンドを実行します
拡張子は自動で追加されるので、書く必要はありません。

python3 BuildPy/__main__.py <project-name>

スクリプトのサンプル

folders {
  include = include
  source  = src
}

build {
  .fast = true
  .use_glob = true
  .no_overwrite = copy_folder

  compiler {
    c   = clang
    cpp = clang++
  }

  extensions {
    c { c }
    cpp { cc cxx cpp }
  }

  flags {
    opti  = -O2
    c     = $opti -Wno-switch -Wimplicit-fallthrough
    cpp   = $c -std=c++20
    link  = -Wl,--gc-sections
  }

  objects_folder = build
  linker = $compiler.cpp
}

Contribute

どんなプルリクエストでも遠慮なく投稿してください!

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

fbp-1.2.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

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

fbp-1.2-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file fbp-1.2.tar.gz.

File metadata

  • Download URL: fbp-1.2.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for fbp-1.2.tar.gz
Algorithm Hash digest
SHA256 f7bbc4a765f68c1dbfa8c17901474e59db5bb5c76a6769fba22cc1809784cc9c
MD5 f814f31a231c0d50490e795301f63344
BLAKE2b-256 68e7c504477106535f4bff0194e8f3efdb5ce9b72a03c5c6fcea436935ce0d0d

See more details on using hashes here.

File details

Details for the file fbp-1.2-py3-none-any.whl.

File metadata

  • Download URL: fbp-1.2-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for fbp-1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9c4f9cfa4a35a68b50036e4fa2af7cc52178caa5a248949615a37c738a26289a
MD5 82f1d44ddf93741e1ee507ef3070098d
BLAKE2b-256 24166aaca03a403c7deb3aed02a451ca8b46f4064fadd5f489946f282fc344d6

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