扫描thread-X项目

1 下载thread-X代码

  $ git clone git://github.com/ninja-build/ninja.git && cd ninja
  $ git checkout release

2 安装编译器

3 项目配置

$ ./configure.py --bootstrap
$ cmake -Bbuild-cmake -H.
$ cmake --build build-cmake
$ ./build-cmake/ninja_test

4 配置ninja

$ vim ~/.bashrc
  export PATH=$PATH:/home/uftp/02_opensource/01_C/ninja
$ source ~/.bashrc

5 编译

$ cmake -Bbuild -DCMAKE_TOOLCHAIN_FILE=cmake/cortex_m4.cmake -GNinja .
$ cmake --build ./build

你可能感兴趣的:(扫描thread-X项目)