0

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?

NOTES

  • The existing project doesn't provide CMakeLists.txt
  • The .sln (library) is a third-party library, hence not applicable to change the .sln or .vcxproj files
arsdever
  • 1,111
  • 1
  • 11
  • 32

1 Answers1

1

The 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.

uilianries
  • 3,363
  • 15
  • 28