Commit Graph

16 Commits

Author SHA1 Message Date
Yilin Sun 3e246caa1c CMake: Generator re-write and bug fixes.
Updated CMakeLists.txt generator to handle private macro definitions for
source groups. Individual source groups are added as OBJECT libraries,
which does not generate actual archive but will be linked together at
final application linking stage. Source groups without source files are
added as INTERFACE libraries, which provides library dependencies to the
final application.

Signed-off-by: Yilin Sun <imi415@imi.moe>
2024-08-13 04:19:49 -04:00
Kai d266ed6c43
[tool][cmake] Let cmake generator get more param from `rtconfig.py` (#9139)
let cmake generator get more param from `rtconfig.py`

* support getting c/cpp standard from c/cpp compilation flags
* support getting post action and conv it to cmake variable
* add a custom cmake file for user custom settings
* support setting project name from `--project-name=` option
2024-07-06 16:05:35 +08:00
Astrozen ce913b95c7
[tools/cmake] fix the issue of the missing link flags added in Sconscript (#8957) 2024-05-21 08:58:26 +08:00
Meco Man dd94198bd6 [gcc][armcc][armclang] rtconfig.CROSS_TOOL->rtconfig.PLATFORM 2022-08-16 09:39:00 +08:00
SunJ 8c18ec64bd cmake默认开启生成编译数据库
tools/cmake: Add CMAKE_EXPORT_COMPILE_COMMANDS ON

Signed-off-by: SunJ <jsun@bouffalolab.com>
2022-05-10 10:13:20 +08:00
Man, Jianting (Meco) a0f8d43744
[gcc][armcc][armclang] rtconfig.CROSS_TOOL->rtconfig.PLATFORM (#5802)
* [gcc][armcc][armclang] rtconfig.CROSS_TOOL->rtconfig.PLATFORM
2022-04-20 09:56:04 +08:00
LiuKang 4e1b175138
[update] 通过 SCons生成 CMakefile.txt 使用相对路径 (#5677)
* [update] 通过 SCons生成 CMakefile.txt 使用相对路径
* [update] 通过 SCons生成 VSC 使用相对路径
2022-03-20 10:31:21 +08:00
guozhanxin d500f2dae6 [tools] cmake-clang compatible with bsp that does not support C++. 2021-07-01 08:16:21 +08:00
guozhanxin 194e33a792 [tools] add scons --target=cmake-armclang 2021-07-01 01:30:50 +08:00
guozhanxin b67e6bbafd [cmake] fix path issue. 2021-06-25 21:07:23 +08:00
thread-liu 7a52944051 [update] support windows cmake tool. 2021-06-17 14:44:34 +08:00
thread-liu f5d636626c [update] cmake.py, delete extra code. 2021-04-19 18:31:35 +08:00
thread-liu 9be6445890 [update] cmake.py, add c++ support and libpath. 2021-04-19 09:46:07 +08:00
Meco Jianting Man 8566bfe883
增加作者信息 2021-04-10 17:08:21 +08:00
Meco Man 9a0569d44f add endline 2021-03-18 00:15:13 +08:00
Meco Man b173ebde98 [tools] 增加cmake生成工具 2021-03-18 00:12:48 +08:00