[Feature Request] Support for CMake

オープン
#556 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
18/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
c, cmake
領域
build-system

調査の方向性

The issue names no source files or entry points; it asks for a CMake build for the C library. Start by finding the existing build files in the repository and the FreeRTOS-Kernel CMake support the issue cites as a reference. Done would mean a CMake configuration that builds the library with GCC and Clang, which the maintainers would need to agree on first.

索引モデルが issue の本文から書いたものです。

説明

help wanted

Is your feature request related to a problem? Please describe.
As an integrator of FreeRTOS-Plus-TCP would like to support compilation via CMake.

Describe the solution you'd like

I would like to be able to integrate FreeRTOS-Plus-TCP via CMake to support a simpler build environment for native and cross-compilation.

I typically build my environments with an opt-out approach to all warnings and issues linters/compilers provide while compiling/building. The primary compilers I use are GNU and Clang (sometimes MSVC).

I typically pull in repositories of this kind using (FetchContent)[https://cmake.org/cmake/help/latest/module/FetchContent.html?highlight=fetchcontent] functionality as it provides one key benefit over git submodules which is to allow a top level project to dictate the version being pulled, yet others FetchContent repos may request different versions. Allowing the integrator of this project to decide on the version being pulled. It also allows for a simple migration if/when a contributor decides to fork a repo (if required).

Describe alternatives you've considered
There are other build environments out there that support cross compilation (eg. meson, bazel); however, CMake is the most wide spread and widely used. It is also the one that has support in the FreeRTOS-Kernel project as of v10.5.0. Supporting other build environments in the future is not hindered by supporting CMake now.

Additional context
I will provide an example build of the existing code that I lay over the current FreeRTOS-Plus-TCP that allows me to compile for both GCC and CLang and provides hooks to compile with other compilers.

With the addition of the compiler warning opt-out approach it will also identify documentation and other potential fixes that you may want to clean-up within the code, now that those compilers are defined with the strictest of measures.

主要言語
C
スター
215
フォーク
222
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

FreeRTOS/FreeRTOS-Plus-TCP のほかの issue

FreeRTOS/FreeRTOS-Plus-TCP の issue をすべて見る

似ている issue

C の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。