I am using gradle 1.11(1.11-20131217230034+0000) to build our visual studio projects.
Environment: Windows 7, visual studio 2012 professional,
I have the following issues with building: 1. In build/tmp/…/options.txt file I see the default include path and lib path for vcinstall and windowsSDk are
“/IC:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include”
but for the building, I still need to add include path “C:/Program Files (x86)/Microsoft Visual Studio 11.0/VC/atlmfc/include” for compilation, and path “C:/Program Files (x86)/Windows Kits/8.0/Lib/win8/um/x86” for lib linking, why these paths are not included? As I know, visual studio include these paths.
How can I get vcinstallDir and windows sdk dir at gradle configuration time? I have visulCpp toolchain, but I always get null of its installDir and WindowsSdk dir. I am trying to add some other paths like 1 mentioned which gradle doesn’t include.
How can I get the output path of object files at gradle configutaion time in binaries.all{} block. If configuration with buildtypes and platforms, the output path is different, how to locat path “build\objectFiles\mainSharedLibrary\x86Release\mainCpp”?
How can I get vcinstallDir and windows sdk dir at gradle configuration time? I have visulCpp toolchain, but I always get null of its installDir and WindowsSdk dir. I am trying to add some other paths like 1 mentioned which gradle doesn’t include.
This is a limitation of the current implementation. It’s on the list of things to add.
How can I get the output path of object files at gradle configutaion time in binaries.all{} block. If configuration with buildtypes and platforms, the output path is different, how to locat path “build\objectFiles\mainSharedLibrary\x86Release\mainCpp”?
This will be different for each source set in a binary. What do you want to do with this path?
Adding these files to the ‘objectFiles’ directory would effectively make them inputs to the linker. If that’s what you want, you’re probably better off adding these as additional inputs to the link task, rather than just putting them in the same directory.
Anyway this part doesn’t work currently, it will perfect if you have DSL like myBinary.tasks.link or myBinary.tasks.compile to get the compile and link task for a binary, then I think I can get objectFileDir from compile task.