xmake-io / xmake

🔥 A cross-platform build utility based on Lua
https://xmake.io
Apache License 2.0
10.08k stars 784 forks source link

对于Keil MDK更完善的支持 #4644

Open HalfSweet opened 9 months ago

HalfSweet commented 9 months ago

你在什么场景下需要该功能?

对于一些单片机的开发来说,Keil MDK是常用的一个IDE,它使用的armclang或者armcc的支持型号很多并且优化良好。但是在Linux或者MacOS平台上Armcc或者Armclang for mdk的工具链支持并不是很完善,因此是否可以做一个能自动生成keil mdk工程的插件进行转换,也方便大多数开发者的使用习惯和后续的CI/CD工作。

描述可能的解决方案

增加一个生成Keil MDK工程文件(uvprojx或者keil6风格的cbuild)的插件

描述你认为的候选方案

其他信息

No response

Issues-translate-bot commented 9 months ago

Bot detected the issue body's language is not English, translate it automatically.


Title: More complete support for Keil MDK

In what scenario do you need this feature?

For the development of some microcontrollers, Keil MDK is a commonly used IDE. The armclang or armcc it uses supports many models and is well optimized. However, the tool chain support of Armcc or Armclang for mdk on Linux or MacOS platforms is not very complete. Therefore, is it possible to make a plug-in that can automatically generate keil mdk projects for conversion, which will also facilitate the usage habits of most developers and subsequent CI? /CD works.

Describe possible solutions

Add a plug-in to generate Keil MDK project files (uvprojx or keil6 style cbuild)

Describe your alternatives

other information

No response

waruqi commented 9 months ago

不是可以直接构建么,MDK的项目,为啥还要转。暂时不支持。。

Issues-translate-bot commented 9 months ago

Bot detected the issue body's language is not English, translate it automatically.


Isn’t it possible to build it directly? Why should I transfer the MDK project? Not supported at the moment. .

HalfSweet commented 9 months ago

在Linux和MacOS上xmake没法构建armclang工程

Issues-translate-bot commented 9 months ago

Bot detected the issue body's language is not English, translate it automatically.


xmake cannot build armclang project on Linux and MacOS

waruqi commented 9 months ago

在Linux和MacOS上xmake没法构建armclang工程

这跟生成 keil 工程有啥关系? keil 又不支持 macos linux。难道生成了,就能在 macos 上构建了?

HalfSweet commented 9 months ago

当然可以支持,目前的armclang是可以跨平台的,可以参考 https://learn.arm.com/learning-paths/microcontrollers/vcpkg-tool-installation/

waruqi commented 9 months ago

当然可以支持,目前的armclang是可以跨平台的,可以参考 https://learn.arm.com/learning-paths/microcontrollers/vcpkg-tool-installation/

我不是说 armclang ,我是说 keil IDE 也支持 macOS ? 我怎么没找到 有链接么

HalfSweet commented 9 months ago

支持的,不过是以vscode插件的方式引入,详情可见 https://marketplace.visualstudio.com/items?itemName=Arm.keil-studio-pack

Issues-translate-bot commented 9 months ago

Bot detected the issue body's language is not English, translate it automatically.


xmake cannot build armclang project on Linux and MacOS

What does this have to do with generating keil projects? keil does not support macos linux. Could it be that once it is generated, it can be built on macos?

Issues-translate-bot commented 9 months ago

Bot detected the issue body's language is not English, translate it automatically.


Of course it can be supported. The current armclang is cross-platform. You can refer to https://learn.arm.com/learning-paths/microcontrollers/vcpkg-tool-installation/

Issues-translate-bot commented 9 months ago

Bot detected the issue body's language is not English, translate it automatically.


Of course it can be supported. The current armclang is cross-platform. You can refer to https://learn.arm.com/learning-paths/microcontrollers/vcpkg-tool-installation/

I don't mean armclang, I mean keil IDE also supports macOS? Why can't I find it? Is there a link?

Issues-translate-bot commented 9 months ago

Bot detected the issue body's language is not English, translate it automatically.


It is supported, but it is introduced as a vscode plug-in. For details, please see https://marketplace.visualstudio.com/items?itemName=Arm.keil-studio-pack

waruqi commented 9 months ago

还没试过这个插件,等后面可以看下,改进直接构建的支持。。但是生成 keil 工程文件,短期内不会考虑

Issues-translate-bot commented 9 months ago

Bot detected the issue body's language is not English, translate it automatically.


I haven’t tried this plug-in yet, but I’ll check it out later to improve support for direct builds. . However, generating keil project files will not be considered in the short term.