In Visual Studio Community 2015 I'm trying to create a static library that would be shared between Android and Windows platform projects. I've successfully created the library project for Android platform and I'm using it without any problem.
Howerver, I can't seem to find a way how to add a Windows platform support for my library project!
It looks like for my currently created android static library project ( called "Engine" ) a " <New...>
" option is missing in the selection box!?
EDIT : I've created my library as a Visual C++ - Cross Platform - Static library ( Android ) in a hope that I will be able to add the C++ Windows x86 and x64 platform support later on. But now I'm struggling to find a way to do that.
Is there any way I can use a single project for Android and Windows platforms? ( Like ie using x86 and x64 for Windows... )
Ok, looks like it's not possible to have a single C++ project configurable for multiple platforms ( like ie for android and windows platforms )
After doing some research I've noticed that there is a nice way to share the same source code between multiple project in a bit similar ways as if using the static library!
This suits for me perfectly because I have some "common" things that I want my Android and Windows platform projects to share.
Then to ie you Windows or Android project properties menu. Click " Add " -> " Reference... "
In the " Add Reference " window go to " Shared Projects " and select your desired "sharable" project.
That's it!
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.