Two days of research gave me no results. I want to configure a conanfile to build an existing .sln
for UWP / WindowsStore, to make sure everything is allowed.
Here's an MSBuild part of the conanfile.py
class LibConan(ConanFile):
def build(self)
msbuild = MSBuild(self)
msbuild.build(
'library.sln',
targets=['liblibrary'],
platforms={'x86': 'Win32', 'x86_64': 'x64'},
toolset=self.settings.compiler.toolset,
use_env=False)
Where and what arguments/options should I put?
CMakeLists.txt
.sln
(library) is a third-party library, hence not applicable to change the .sln
or .vcxproj
filesThe WindowsStore
is considered a settings.os
in Conan. Thus, you need to configure your settings for such profile:
conan create . -s os=WindowsStore
Or, you can create a new Conan profile with such os.