源文件中的每个文件编译器标志? [英] Per-file compiler flags in sources file?

查看:86
本文介绍了源文件中的每个文件编译器标志?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道我可以在.vcproj文件中指定每个文件的编译器标志,但是对于Windows Embedded Compact 7在构建它时并不真正关心项目文件而是使用'sources'文件。  那么有没有办法在单个'sources'文件中设置每个文件编译器
标志?

I know that I can specify per-file compiler flags in the .vcproj file, but for Windows Embedded Compact 7 when building it doesn't really care about the project file and uses the 'sources' file instead.  So is there any way to have per-file compiler flags set in a single 'sources' file?

推荐答案

这样做的唯一方法将文件放在具有自己的源文件的单独文件夹中。
The only way to do this is put the file in a seperate folder with its own sources file.


这篇关于源文件中的每个文件编译器标志?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆