set target conditionals for apple targets
This commit is contained in:
@@ -1,11 +1,23 @@
|
||||
#include "controller.h"
|
||||
|
||||
#include <SDL.h>
|
||||
|
||||
#include "imgui/backends/imgui_impl_sdl2.h"
|
||||
#include "imgui/backends/imgui_impl_sdlrenderer2.h"
|
||||
#include "imgui/imgui.h"
|
||||
#include "imgui/imgui_internal.h"
|
||||
|
||||
#if defined(__APPLE__) && defined(__MACH__)
|
||||
#include <TargetConditionals.h>
|
||||
#if TARGET_IPHONE_SIMULATOR == 1
|
||||
#include "imgui/backends/imgui_impl_metal.h"
|
||||
#elif TARGET_OS_IPHONE == 1
|
||||
#include "imgui/backends/imgui_impl_metal.h"
|
||||
#elif TARGET_OS_MAC == 1
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "absl/status/status.h"
|
||||
@@ -280,7 +292,7 @@ absl::Status Controller::OnEntry(std::string filename) {
|
||||
platform_ = Platform::kLinux;
|
||||
#else
|
||||
platform_ = Platform::kUnknown;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
RETURN_IF_ERROR(CreateSDL_Window())
|
||||
RETURN_IF_ERROR(CreateRenderer())
|
||||
@@ -541,4 +553,4 @@ absl::Status Controller::LoadAudioDevice() {
|
||||
|
||||
} // namespace core
|
||||
} // namespace app
|
||||
} // namespace yaze
|
||||
} // namespace yaze
|
||||
|
||||
Reference in New Issue
Block a user