Platform flattening overhaul (#1393)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Bart Louwers <bart@emeel.net>
This commit is contained in:
mwilsnd
2023-07-26 10:50:34 -05:00
committed by GitHub
parent 1145d0079b
commit 20d9e1028c
932 changed files with 5445 additions and 11714 deletions

View File

@@ -1,5 +1,22 @@
#include <mbgl/render_test.hpp>
int main(int argc, char *argv[]) {
return mbgl::runRenderTests(argc, argv, []() {});
}
#ifdef __APPLE
#if defined(TARGET_IPHONE_SIMULATOR)
#define IS_IOS
#elif defined(TARGET_OS_IPHONE)
#define IS_IOS
#endif
#endif
int main(int argc, char* argv[]) {
#ifdef IS_IOS
try {
#endif
return mbgl::runRenderTests(argc, argv, []() {});
#ifdef IS_IOS
} catch (std::exception const& e) {
std::cerr << "Caught an exception while running tests\n" << e.what() << '\n';
return 1;
}
#endif
}