Skip to content

使用xmake编译com组件问题 #5675

@fengjinfuyl

Description

@fengjinfuyl

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文件识别为源文件并编译

工程配置

无需

附加信息和错误日志

无需

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions