Skip to content
Snippets Groups Projects
Commit af92a8bc authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Some light de-Carbonization

parent 2892e008
No related branches found
No related tags found
No related merge requests found
...@@ -296,12 +296,6 @@ target_link_libraries( ...@@ -296,12 +296,6 @@ target_link_libraries(
${RT_LIBRARY} ${RT_LIBRARY}
) )
if (DARWIN)
include(CMakeFindFrameworks)
find_library(CARBON_LIBRARY Carbon)
target_link_libraries(llcommon PUBLIC ${CARBON_LIBRARY})
endif (DARWIN)
add_dependencies(llcommon stage_third_party_libs) add_dependencies(llcommon stage_third_party_libs)
if (LL_TESTS) if (LL_TESTS)
......
...@@ -71,7 +71,7 @@ target_link_libraries(SLPlugin ...@@ -71,7 +71,7 @@ target_link_libraries(SLPlugin
) )
if (DARWIN) if (DARWIN)
# Mac version needs to link against Carbon # Mac version needs to link against Cocoa
target_link_libraries(SLPlugin ${COCOA_LIBRARY}) target_link_libraries(SLPlugin ${COCOA_LIBRARY})
# Make sure the app bundle has a Resources directory (it will get populated by viewer-manifest.py later) # Make sure the app bundle has a Resources directory (it will get populated by viewer-manifest.py later)
add_custom_command( add_custom_command(
......
...@@ -49,9 +49,6 @@ void LLCocoaPlugin::setupCocoa() ...@@ -49,9 +49,6 @@ void LLCocoaPlugin::setupCocoa()
// when init'ing the Cocoa App window. // when init'ing the Cocoa App window.
[[NSUserDefaults standardUserDefaults] setObject:@"NO" forKey:@"NSTreatUnknownArgumentsAsOpen"]; [[NSUserDefaults standardUserDefaults] setObject:@"NO" forKey:@"NSTreatUnknownArgumentsAsOpen"];
// This is a bit of voodoo taken from the Apple sample code "CarbonCocoa_PictureCursor":
// http://developer.apple.com/samplecode/CarbonCocoa_PictureCursor/index.html
// Needed for Carbon based applications which call into Cocoa // Needed for Carbon based applications which call into Cocoa
NSApplicationLoad(); NSApplicationLoad();
......
...@@ -39,7 +39,6 @@ ...@@ -39,7 +39,6 @@
#include "indra_constants.h" #include "indra_constants.h"
#include <OpenGL/OpenGL.h> #include <OpenGL/OpenGL.h>
#include <Carbon/Carbon.h>
#include <CoreServices/CoreServices.h> #include <CoreServices/CoreServices.h>
extern BOOL gDebugWindowProc; extern BOOL gDebugWindowProc;
...@@ -1815,6 +1814,7 @@ LLSD LLWindowMacOSX::getNativeKeyData() ...@@ -1815,6 +1814,7 @@ LLSD LLWindowMacOSX::getNativeKeyData()
BOOL LLWindowMacOSX::dialogColorPicker( F32 *r, F32 *g, F32 *b) BOOL LLWindowMacOSX::dialogColorPicker( F32 *r, F32 *g, F32 *b)
{ {
#if 0
BOOL retval = FALSE; BOOL retval = FALSE;
OSErr error = noErr; OSErr error = noErr;
NColorPickerInfo info; NColorPickerInfo info;
...@@ -1839,6 +1839,8 @@ BOOL LLWindowMacOSX::dialogColorPicker( F32 *r, F32 *g, F32 *b) ...@@ -1839,6 +1839,8 @@ BOOL LLWindowMacOSX::dialogColorPicker( F32 *r, F32 *g, F32 *b)
} }
return (retval); return (retval);
#endif
return FALSE;
} }
void *LLWindowMacOSX::getPlatformWindow() void *LLWindowMacOSX::getPlatformWindow()
......
...@@ -1457,16 +1457,17 @@ if (DARWIN) ...@@ -1457,16 +1457,17 @@ if (DARWIN)
COMPILE_FLAGS "-fmodules -fcxx-modules -Wno-nullability-completeness" COMPILE_FLAGS "-fmodules -fcxx-modules -Wno-nullability-completeness"
) )
find_library(AGL_LIBRARY AGL)
find_library(APPKIT_LIBRARY AppKit) find_library(APPKIT_LIBRARY AppKit)
find_library(COCOA_LIBRARY Cocoa) find_library(COCOA_LIBRARY Cocoa)
find_library(IOKIT_LIBRARY IOKit) find_library(IOKIT_LIBRARY IOKit)
find_library(COREFOUNDATION_LIBRARY CoreFoundation)
find_library(COREAUDIO_LIBRARY CoreAudio) find_library(COREAUDIO_LIBRARY CoreAudio)
set(viewer_LIBRARIES set(viewer_LIBRARIES
${COCOA_LIBRARY} ${COCOA_LIBRARY}
${AGL_LIBRARY} ${APPKIT_LIBRARY}
${IOKIT_LIBRARY} ${IOKIT_LIBRARY}
${COREFOUNDATION_LIBRARY}
${COREAUDIO_LIBRARY} ${COREAUDIO_LIBRARY}
) )
......
...@@ -30,8 +30,6 @@ ...@@ -30,8 +30,6 @@
#error "Use only with Mac OS X" #error "Use only with Mac OS X"
#endif #endif
#define LL_CARBON_CRASH_HANDLER 1
#include "llwindowmacosx.h" #include "llwindowmacosx.h"
#include "llappviewermacosx-objc.h" #include "llappviewermacosx-objc.h"
...@@ -49,9 +47,6 @@ ...@@ -49,9 +47,6 @@
#include "llerrorcontrol.h" #include "llerrorcontrol.h"
#include "llvoavatarself.h" // for gAgentAvatarp->getFullname() #include "llvoavatarself.h" // for gAgentAvatarp->getFullname()
#include <ApplicationServices/ApplicationServices.h> #include <ApplicationServices/ApplicationServices.h>
#ifdef LL_CARBON_CRASH_HANDLER
#include <Carbon/Carbon.h>
#endif
#include <vector> #include <vector>
#include <exception> #include <exception>
#include <fstream> #include <fstream>
......
...@@ -36,7 +36,6 @@ ...@@ -36,7 +36,6 @@
#include "stdtypes.h" #include "stdtypes.h"
#if LL_DARWIN #if LL_DARWIN
#include <Carbon/Carbon.h>
// AssertMacros.h does bad things. // AssertMacros.h does bad things.
#undef verify #undef verify
......
...@@ -72,7 +72,7 @@ ...@@ -72,7 +72,7 @@
#include <map> #include <map>
#if LL_DARWIN #if LL_DARWIN
#include <CoreFoundation/CFURL.h> #include <CoreFoundation/CoreFoundation.h>
#endif #endif
// Static initialization // Static initialization
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment