ruslo / polly

:wrench: Collection of CMake toolchain files and scripts for cross-platform build and CI testing (GCC, Visual Studio, iOS, Android, Clang analyzer, sanitizers etc.)
BSD 2-Clause "Simplified" License
859 stars 191 forks source link

Inquiry: Windows Phone 8.1 / 10, Windows Runtime Support #135

Open heefan opened 7 years ago

heefan commented 7 years ago

Hi Ruslo, Shall I know does polly support Windows Phone 8.1, Windows Phone 10, UWP and Windows Runtime toolchain and Windows CppUnitTestFramework ? Thanks. I did not find them out.

ruslo commented 7 years ago

Shall I know does polly support Windows Phone 8.1, Windows Phone 10

There is no such toolchains, never used it. If it's supported by CMake it should be not hard to add.

UWP and Windows Runtime toolchain and Windows CppUnitTestFramework

I even didn't know what it is, sorry :)

heefan commented 7 years ago

No problem.

Microsoft try to promote Windows Runtime Component on Windows 10 and Windows Phone 10, which is called universal windows platform (UWP). However, in Windows 8.1 and Windows Phone 8.1, they are called Universal App, and Windows Runtime Component was introduced that time if I am not wrong. Windows Runtime Component is similar with .NET framework.

I have tried to use the following command to generate UWP project,

cmake .. -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION=10.0 -G "Visual Studio 2015"

Frankly speaking, it is far away from my expectation. I realised OpenCV support winrt. But only for Windows Phone/Store 8.0 and 8.1

Never mind anyway. ;)


Microsoft CppUnitTestFramework is simialr with iOS XCTest framework Nowdays source code project alwasy goes alone with unit test project as in one solution. Similarly, I would like to know whether Polly is able to generate Xcode project file with XCTest support on iOS ?

I have tried XCTest work with macOS framework and App, but failed in iOS project. ;( Reference: CMake XCTest sample


Thanks

ruslo commented 7 years ago

I have tried to use the following command to generate UWP project, ... Frankly speaking, it is far away from my expectation

Well if this doesn't work with CMake it will not work for Polly.

I realised OpenCV support winrt. But only for Windows Phone/Store 8.0 and 8.1

This is something that can be added to Polly.

Microsoft CppUnitTestFramework is simialr with iOS XCTest framework

Not using XCTest too :)

Similarly, I would like to know whether Polly is able to generate Xcode project file with XCTest support on iOS ?

This is something out of scope of Polly as far as I understand. According to this code it's not about toolchains.

ikliashchou commented 7 years ago

Similarly, I would like to know whether Polly is able to generate Xcode project file with XCTest support on iOS ? This is something out of scope of Polly as far as I understand. According to this code it's not about toolchains.

The issue with XCTest, iOS support and polly toolchain is the CMAKE_OSX_SYSROOT value.

As per your answer here you always set it to "iphoneos", while XCTest unit testing of frameworks is allowed only for simulator. This is why XCTest symbols are not found for x86_64 architecture.

So if you change CMAKE_OSX_SYSROOT to "iphonesimulator" in polly iOS toolchain, XCTest will work.

Just checked on the same above mentioned project with changed polly/iOS-10-3.cmake toolchain and it works.

Is there a way to make XCTest work with iOS & polly toolchain without patching?

Thanks

ruslo commented 7 years ago

@ikliashchou Please open separate issue about XCTest, it's not related to Windows Phone support :)