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


Release history Release notifications | RSS feed

This version

1.2

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xbp-1.2.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for xbp-1.2.tar.gz
Algorithm Hash digest
SHA256 fea2d5536d8ba879f0c9c6df3d09365c3539754640b2a7d8cf56e52ef3c2e4c1
MD5 51e515cc40335e4dc94af6233110be74
BLAKE2b-256 6102061d952013cf79bc52a20d0ac3daeca9aa8462d9d97f168a0ca6c9f4e398

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xbp-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.8.10

File hashes

Hashes for xbp-1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8b67b6744d5e6e83709de7d6866d01fdc9d8cc9b6dc630b2f7066365a92ae281
MD5 eb5740106e3ef77c55a1b5a339789c4c
BLAKE2b-256 4418c805424a61a540aeff2de17f9d4c969078be74e0485f69d9d716c3abaf1b

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