forked from leetal/ios-cmake
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request leetal#97 from leetal/dev
Experimental macOS & Catalyst support, experimental Apple Silicon support + Bugfixes
- Loading branch information
Showing
7 changed files
with
254 additions
and
129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,14 @@ | ||
#include "HelloWorld.hpp" | ||
#include <TargetConditionals.h> | ||
|
||
std::string HelloWorld::helloWorld() | ||
{ | ||
return std::string("Hello World"); | ||
#if TARGET_OS_MACCATALYST | ||
return std::string("Hello World from Mac Catalyst"); | ||
#elif TARGET_OS_MAC | ||
return std::string("Hello World from macOS"); | ||
#elif TARGET_OS_IPHONE | ||
return std::string("Hello World from iOS"); | ||
#endif | ||
return std::string("Hello World from an unknown platform"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.