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.3.2.tar.gz (5.7 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.3.2-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for fbp-1.3.2.tar.gz
Algorithm Hash digest
SHA256 ed6c3dc44a9d692ea777889ea76379eebd7bb9ea4730b6179e2e782d498bf4da
MD5 9c4347aa6b99844b68035166f309b12c
BLAKE2b-256 da62b0995660a5c974eac646932134d540f64240bf9dcaad0052c143a98b5c09

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for fbp-1.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 dc439d831b5a8ef80db58cec59794ee5c2d4c000f8dd799e7b70454006a9a21f
MD5 8a691b362ecd524621249f1d29ef0eac
BLAKE2b-256 6df862acf0ef3e2320881b73f6e4ef1e5e7d91a7c59cd977c98f91380b738613

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