-
-
Notifications
You must be signed in to change notification settings - Fork 780
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
使用xmake编译com组件问题 #5675
Comments
Title: Use xmake to compile com component problems Xmake version2.9.5 Operating system version and architectureVersion Windows 10 Pro Build Number 22H2 Installation Date 2024/3/28 OS Build 19045.4894 Experience Windows Feature Experience Pack 1000.19060.1000.0 Describe the problemThere are often idl (interface define language interface definition language) files in com components. Expected resultsidl files can be recognized as source files and compiled Project configurationNo need Additional information and error logsNo need to |
需要看一下 cmake 编译 idl 的命令(msbuild/ninja) |
You need to look at the cmake command to compile idl (msbuild/ninja) |
具体的编译命令,是midl,在msvc环境下,midl xxx.idl这样。 |
The specific compilation command is midl. In the msvc environment, midl xxx.idl is like this. |
如: library Example_AddIn_Lib
}; |
like: library Example_AddIn_Lib [uuid(70C74CBD-E067-4BA0-AAE8-15938745860E) ] [uuid(014BD906-E8DB-4BC5-86F3-C2D7ADD4BFCB)] [hidden, uuid(97CF6B86-97E1-4946-92EF-C93D28BEED80)] [hidden,uuid(AE0BDFFA-D79F-4B54-B4C3-FFF5D2D810CF)] // {DD17DAEA-B754-4565-AD2E-F2FB445B3A1C} //{72474165-AD4E-4C21-B7CF-3B8B630EDA41} }; |
目前还不支持,可以提个 pr 过来 |
It is not supported yet, you can submit a PR. |
这,难办啊..
…---原始邮件---
发件人: ***@***.***>
发送时间: 2024年9月30日(周一) 上午10:31
收件人: ***@***.***>;
抄送: ***@***.******@***.***>;
主题: Re: [xmake-io/xmake] 使用xmake编译com组件问题 (Issue #5675)
目前还不支持,可以提个 pr 过来
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Xmake 版本
2.9.5
操作系统版本和架构
版本 Windows 10 专业版 版本号 22H2 安装日期 2024/3/28 操作系统内部版本 19045.4894 体验 Windows Feature Experience Pack 1000.19060.1000.0
描述问题
com组件中常常会有idl(interface define language接口定义语言)文件,
我尝试使用addfiles("xxx/xxx.idl")这样的形式将其加入到编译中,xmake出现类似提示error: unknown source file: Resource\ex.idl。
我在官网搜索idl未找到帮助,我想请问下,xmake是否支持将idl视为源文件,加入到编译中。
可供参考的是,
cmake中
file(GLOB IDL_FILE Resource/*.idl)
add_library(${ProjectName} SHARED ${SRC_FILES} ${DEF_FILE} ${IDL_FILE} ${HEADER_FILES} Resource/ex.rc )
可以直接这样就达成。
期待的结果
可以将idl文件识别为源文件并编译
工程配置
无需
附加信息和错误日志
无需
The text was updated successfully, but these errors were encountered: