aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfuzzard <fuzzard@kodi.tv>2021-09-20 17:55:05 +1000
committerfuzzard <fuzzard@kodi.tv>2021-09-20 17:55:05 +1000
commit438fff19fa3fb77c4433a05c009e5c6c6ead1dda (patch)
treeffaca83716af2978a98423af9bd71650d34c2de9
parent694ffcad285a04795705c7b0da7100051c9163f6 (diff)
[osx] rename SDLMain.h to XBMCApplication.h
Header is generic, and will be used for nswindow based osx app
-rw-r--r--cmake/platform/osx/osx.cmake2
-rw-r--r--cmake/scripts/osx/ArchSetup.cmake2
-rw-r--r--xbmc/platform/darwin/osx/SDL/SDLMain.mm2
-rw-r--r--xbmc/platform/darwin/osx/XBMCApplication.h (renamed from xbmc/platform/darwin/osx/SDLMain.h)2
4 files changed, 4 insertions, 4 deletions
diff --git a/cmake/platform/osx/osx.cmake b/cmake/platform/osx/osx.cmake
index f2d58a39c0..5f911d121e 100644
--- a/cmake/platform/osx/osx.cmake
+++ b/cmake/platform/osx/osx.cmake
@@ -10,7 +10,7 @@ if(NOT APP_WINDOW_SYSTEM OR APP_WINDOW_SYSTEM STREQUAL sdl)
list(APPEND SYSTEM_DEFINES -DHAS_SDL)
list(APPEND PLATFORM_REQUIRED_DEPS Sdl)
list(APPEND CORE_MAIN_SOURCE ${CMAKE_SOURCE_DIR}/xbmc/platform/darwin/osx/SDL/SDLMain.mm
- ${CMAKE_SOURCE_DIR}/xbmc/platform/darwin/osx/SDLMain.h)
+ ${CMAKE_SOURCE_DIR}/xbmc/platform/posix/main.cpp)
else()
message(SEND_ERROR "Currently only SDL windowing is supported. Please set APP_WINDOW_SYSTEM to \"sdl\"")
endif()
diff --git a/cmake/scripts/osx/ArchSetup.cmake b/cmake/scripts/osx/ArchSetup.cmake
index 6066468c70..0ea19e165e 100644
--- a/cmake/scripts/osx/ArchSetup.cmake
+++ b/cmake/scripts/osx/ArchSetup.cmake
@@ -2,7 +2,7 @@ if(NOT CMAKE_TOOLCHAIN_FILE)
message(FATAL_ERROR "CMAKE_TOOLCHAIN_FILE required for osx. See ${CMAKE_SOURCE_DIR}/cmake/README.md")
endif()
-list(APPEND CORE_MAIN_SOURCE ${CMAKE_SOURCE_DIR}/xbmc/platform/posix/main.cpp)
+list(APPEND CORE_MAIN_SOURCE ${CMAKE_SOURCE_DIR}/xbmc/platform/darwin/osx/XBMCApplication.h)
set(ARCH_DEFINES -DTARGET_POSIX -DTARGET_DARWIN -DTARGET_DARWIN_OSX)
list(APPEND SYSTEM_DEFINES -D_REENTRANT -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE
diff --git a/xbmc/platform/darwin/osx/SDL/SDLMain.mm b/xbmc/platform/darwin/osx/SDL/SDLMain.mm
index 74be33bbac..395f055b04 100644
--- a/xbmc/platform/darwin/osx/SDL/SDLMain.mm
+++ b/xbmc/platform/darwin/osx/SDL/SDLMain.mm
@@ -11,7 +11,7 @@
#import "platform/darwin/osx/CocoaInterface.h"
#import "platform/darwin/osx/HotKeyController.h"
-#import "platform/darwin/osx/SDLMain.h"
+#import "platform/darwin/osx/XBMCApplication.h"
#import "platform/darwin/osx/storage/OSXStorageProvider.h"
#import <SDL/SDL.h>
diff --git a/xbmc/platform/darwin/osx/SDLMain.h b/xbmc/platform/darwin/osx/XBMCApplication.h
index 71fea04632..09e80cdac5 100644
--- a/xbmc/platform/darwin/osx/SDLMain.h
+++ b/xbmc/platform/darwin/osx/XBMCApplication.h
@@ -1,5 +1,5 @@
/*
- * SDLMain.h - main entry point for our Cocoa-ized SDL app
+ * XBMCApplication.h
* Initial Version: Darrell Walisser <dwaliss1@purdue.edu>
* Non-NIB-Code & other changes: Max Horn <max@quendi.de>
*