Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
刚刚发现cocos2d-x 3.0 beta在vs2012 proj下定义了自己的宏“$(EngineRoot)”,想知道怎么弄!我不能上传图片...
假设您按照文档中的建议使用 cocos.py 脚本生成 cocos2d 项目,您会发现 EngineRoot 在项目顶部附近的 cocos2d_headers.props 文件中定义如下:
<PropertyGroup Label="UserMacros"> <EngineRoot>$(MSBuildThisFileDirectory)..\..\</EngineRoot> </PropertyGroup>
您应该能够在自己的(非生成的)项目中做同样的事情。