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

Uploaded Python 3

File details

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

File metadata

  • Download URL: fbp-1.3.tar.gz
  • Upload date:
  • Size: 5.6 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.tar.gz
Algorithm Hash digest
SHA256 68007600b3fce0701c5fbb59e39afb9d27da06c44c48c2017693d754edd6fb9b
MD5 87804861e82c583409a932e875d253d0
BLAKE2b-256 26b39d376a9d95ae030a3ca5939f63a07b64d5a4d63f64ac205276db0aa53c41

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fbp-1.3-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 fbp-1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2236d4fa0eeedb49361d25a5014cf8951d1c401f282247db3ce3429fd8125dfd
MD5 c625a53c810c98a07806702aa9e587f4
BLAKE2b-256 26be0bfd31af61575cd61d45e8b8c21025b68769018769c713fd7a2d7d01f098

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