SOURCES文件中的条件语句不更新子项目窗口 [英] Conditional statement in SOURCES file does not update subproject window

查看:61
本文介绍了SOURCES文件中的条件语句不更新子项目窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试以在不同平台上构建时自动切换文件的方式设置我的项目。


我能够添加条件语句项目SOURCES文件。


但是,尽管它构建了,但子项目(在解决方案资源管理器中)没有使用正确的文件进行更新。


I将条件语句放入  FILE_VIEW_INCLUDES_FOLDER时也会出错。


例如:


FILE_VIEW_INCLUDES_FOLDER = \


FILE_VIEW_INCLUDES_FOLDER = \

    aa.h \

    .. \bb.h \

    .. $ \\ _111.h \

!IF" $(_ TGTPLAT)" ==" VirtualPC"    

    .. \222.h \   

!endif




这将导致编译错误。



在SOURCES下,只显示条件括号外的文件,但其中的文件(即使条件为真)也未显示在解决方案资源管理器中。

解决方案

我不知道这是否正确......



但我觉得在这种情况下使用 单独的目录会更好......



--KeshavaGN


I'm trying to set-up my project in a way that it automatically switch files when build on a different platform.

I was able to add conditional statement in the project SOURCES file.

However, although it builds, the Subproject(in solution explorer) is not being updated with the correct file.

I also get error when I put a conditional statement in FILE_VIEW_INCLUDES_FOLDER.

For example:

FILE_VIEW_INCLUDES_FOLDER= \

FILE_VIEW_INCLUDES_FOLDER= \
    aa.h \
    ..\bb.h \
    ..\111.h \
!IF "$(_TGTPLAT)"=="VirtualPC"    
    ..\222.h \    
!endif


This will led to a compile error.

Under SOURCES, only the files outside of the conditional bracket gets displayed but the files inside it (even if condition is true), is not shown in solution explorer.

解决方案

I don't know whether this is correct or not...

But i think it better to use separate directories in this situation...

--KeshavaGN


这篇关于SOURCES文件中的条件语句不更新子项目窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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