Skip to content

Commit

Permalink
Merge pull request xbmc#1782 from davilla/fix-osx-incudes
Browse files Browse the repository at this point in the history
[osx] fixed borked include paths, osx matches command-line make now
  • Loading branch information
davilla committed Nov 15, 2012
2 parents 134374d + db96f20 commit 288715f
Show file tree
Hide file tree
Showing 33 changed files with 108 additions and 112 deletions.
130 changes: 63 additions & 67 deletions XBMC.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/libhts/htsstr.c
Expand Up @@ -22,7 +22,7 @@
#include <stdlib.h>
#include <string.h>
#ifdef __APPLE__
#include "OSXGNUReplacements.h"
#include "osx/OSXGNUReplacements.h"
#elif defined(_MSC_VER)
#include "msvc.h"
#endif
Expand Down
2 changes: 1 addition & 1 deletion lib/libhts/net_posix.c
Expand Up @@ -23,7 +23,7 @@
#ifndef SOL_TCP
#define SOL_TCP IPPROTO_TCP
#endif
#include "OSXGNUReplacements.h"
#include "osx/OSXGNUReplacements.h"
#elif defined(__FreeBSD__)
#ifndef SOL_TCP
#define SOL_TCP IPPROTO_TCP
Expand Down
6 changes: 3 additions & 3 deletions xbmc/Application.cpp
Expand Up @@ -295,11 +295,11 @@
#endif

#ifdef TARGET_DARWIN_OSX
#include "CocoaInterface.h"
#include "XBMCHelper.h"
#include "osx/CocoaInterface.h"
#include "osx/XBMCHelper.h"
#endif
#ifdef TARGET_DARWIN
#include "DarwinUtils.h"
#include "osx/DarwinUtils.h"
#endif


Expand Down
2 changes: 1 addition & 1 deletion xbmc/ApplicationMessenger.cpp
Expand Up @@ -50,7 +50,7 @@
#include "WIN32Util.h"
#define CHalManager CWIN32Util
#elif defined(TARGET_DARWIN)
#include "CocoaInterface.h"
#include "osx/CocoaInterface.h"
#endif
#include "addons/AddonCallbacks.h"
#include "addons/AddonCallbacksGUI.h"
Expand Down
2 changes: 1 addition & 1 deletion xbmc/cores/AudioEngine/Encoders/AEEncoderFFmpeg.cpp
Expand Up @@ -22,7 +22,7 @@
#define DTS_ENCODE_BITRATE 1411200

#include "AEEncoderFFmpeg.h"
#include "Utils/AEUtil.h"
#include "cores/AudioEngine/Utils/AEUtil.h"
#include "utils/log.h"
#include "settings/AdvancedSettings.h"
#include "settings/GUISettings.h"
Expand Down
6 changes: 3 additions & 3 deletions xbmc/cores/AudioEngine/Encoders/AEEncoderFFmpeg.h
Expand Up @@ -19,9 +19,9 @@
*
*/

#include "Interfaces/AEEncoder.h"
#include "Utils/AERemap.h"
#include "Utils/AEPackIEC61937.h"
#include "cores/AudioEngine/Interfaces/AEEncoder.h"
#include "cores/AudioEngine/Utils/AERemap.h"
#include "cores/AudioEngine/Utils/AEPackIEC61937.h"

/* ffmpeg re-defines this, so undef it to squash the warning */
#undef restrict
Expand Down
2 changes: 1 addition & 1 deletion xbmc/cores/AudioEngine/Engines/CoreAudio/CoreAudioAE.cpp
Expand Up @@ -22,7 +22,6 @@

#include "CoreAudioAE.h"

#include "MathUtils.h"
#include "CoreAudioAEStream.h"
#include "CoreAudioAESound.h"
#include "cores/AudioEngine/Utils/AEUtil.h"
Expand All @@ -33,6 +32,7 @@
#include "utils/EndianSwap.h"
#include "utils/log.h"
#include "utils/TimeUtils.h"
#include "utils/MathUtils.h"

#define DELAY_FRAME_TIME 20
#define BUFFERSIZE 16416
Expand Down
2 changes: 1 addition & 1 deletion xbmc/cores/AudioEngine/Engines/CoreAudio/CoreAudioAE.h
Expand Up @@ -24,7 +24,7 @@

#include "system.h"

#include "Interfaces/AE.h"
#include "cores/AudioEngine/Interfaces/AE.h"
#include "ICoreAudioAEHAL.h"
#include "ICoreAudioSource.h"
#include "CoreAudioAEStream.h"
Expand Down
6 changes: 3 additions & 3 deletions xbmc/cores/AudioEngine/Engines/CoreAudio/CoreAudioAESound.cpp
Expand Up @@ -22,11 +22,11 @@

#include "CoreAudioAESound.h"

#include "AEFactory.h"
#include "AEAudioFormat.h"
#include "CoreAudioAE.h"
#include "Interfaces/AESound.h"
#include "threads/SingleLock.h"
#include "cores/AudioEngine/AEFactory.h"
#include "cores/AudioEngine/AEAudioFormat.h"
#include "cores/AudioEngine/Interfaces/AESound.h"
#include "cores/AudioEngine/Utils/AEConvert.h"
#include "cores/AudioEngine/Utils/AERemap.h"
#include "cores/AudioEngine/Utils/AEUtil.h"
Expand Down
4 changes: 2 additions & 2 deletions xbmc/cores/AudioEngine/Engines/CoreAudio/CoreAudioAESound.h
Expand Up @@ -19,9 +19,9 @@
*
*/

#include "Interfaces/AESound.h"
#include "cores/AudioEngine/Interfaces/AESound.h"
#include "cores/AudioEngine/Utils/AEWAVLoader.h"
#include "threads/CriticalSection.h"
#include "Utils/AEWAVLoader.h"

class CCoreAudioAESound : public IAESound
{
Expand Down
4 changes: 2 additions & 2 deletions xbmc/cores/AudioEngine/Engines/CoreAudio/CoreAudioAEStream.h
Expand Up @@ -22,10 +22,10 @@
#include <samplerate.h>
#include <list>

#include "AEAudioFormat.h"
#include "CoreAudioRingBuffer.h"
#include "ICoreAudioSource.h"
#include "Interfaces/AEStream.h"
#include "cores/AudioEngine/AEAudioFormat.h"
#include "cores/AudioEngine/Interfaces/AEStream.h"
#include "cores/AudioEngine/Utils/AEConvert.h"
#include "cores/AudioEngine/Utils/AERemap.h"

Expand Down
2 changes: 1 addition & 1 deletion xbmc/cores/AudioEngine/Engines/CoreAudio/CoreAudioMixMap.h
Expand Up @@ -23,7 +23,7 @@

#if defined(TARGET_DARWIN_OSX)

#include "AEAudioFormat.h"
#include "cores/AudioEngine/AEAudioFormat.h"

#include <CoreAudio/CoreAudio.h>

Expand Down
4 changes: 2 additions & 2 deletions xbmc/cores/AudioEngine/Engines/CoreAudio/ICoreAudioAEHAL.h
Expand Up @@ -19,8 +19,8 @@
*
*/

#include "AEAudioFormat.h"
#include "Interfaces/AE.h"
#include "cores/AudioEngine/AEAudioFormat.h"
#include "cores/AudioEngine/Interfaces/AE.h"
#include "ICoreAudioSource.h"

class ICoreAudioAEHAL;
Expand Down
2 changes: 1 addition & 1 deletion xbmc/cores/AudioEngine/Interfaces/AEEncoder.h
Expand Up @@ -20,7 +20,7 @@
*/

#include "DllAvCodec.h"
#include "AEAudioFormat.h"
#include "cores/AudioEngine/AEAudioFormat.h"

/**
* IAEEncoder interface for on the fly audio compression
Expand Down
4 changes: 2 additions & 2 deletions xbmc/cores/AudioEngine/Utils/AEDeviceInfo.h
Expand Up @@ -21,8 +21,8 @@

#include <string>
#include <vector>
#include "AEAudioFormat.h"
#include "Utils/AEChannelInfo.h"
#include "cores/AudioEngine/AEAudioFormat.h"
#include "cores/AudioEngine/Utils/AEChannelInfo.h"

typedef std::vector<unsigned int > AESampleRateList;
typedef std::vector<enum AEDataFormat> AEDataFormatList;
Expand Down
4 changes: 2 additions & 2 deletions xbmc/cores/AudioEngine/Utils/AERemap.cpp
Expand Up @@ -21,8 +21,8 @@
#include <sstream>

#include "AERemap.h"
#include "AEFactory.h"
#include "AEUtil.h"
#include "cores/AudioEngine/AEFactory.h"
#include "cores/AudioEngine/Utils/AEUtil.h"
#include "utils/log.h"
#include "settings/GUISettings.h"

Expand Down
2 changes: 1 addition & 1 deletion xbmc/cores/AudioEngine/Utils/AERemap.h
Expand Up @@ -19,7 +19,7 @@
*
*/

#include "AEAudioFormat.h"
#include "cores/AudioEngine/AEAudioFormat.h"

class CAERemap {
public:
Expand Down
2 changes: 1 addition & 1 deletion xbmc/cores/AudioEngine/Utils/AEWAVLoader.h
Expand Up @@ -20,7 +20,7 @@
*/

#include "utils/StdString.h"
#include "AEAudioFormat.h"
#include "cores/AudioEngine/AEAudioFormat.h"

class CAEWAVLoader
{
Expand Down
Expand Up @@ -27,7 +27,7 @@
#include "utils/log.h"
#include "guilib/Geometry.h"
#if defined(TARGET_DARWIN)
#include "CocoaInterface.h"
#include "osx/CocoaInterface.h"
#endif

#define HOLDMODE_NONE 0
Expand Down
2 changes: 1 addition & 1 deletion xbmc/filesystem/SAPDirectory.cpp
Expand Up @@ -29,7 +29,7 @@
#include "utils/TimeUtils.h"
#include "URL.h"
#if defined(TARGET_DARWIN)
#include "OSXGNUReplacements.h" // strnlen
#include "osx/OSXGNUReplacements.h" // strnlen
#endif
#ifdef __FreeBSD__
#include "freebsd/FreeBSDGNUReplacements.h"
Expand Down
2 changes: 1 addition & 1 deletion xbmc/guilib/GUIEditControl.cpp
Expand Up @@ -29,7 +29,7 @@
#include "utils/md5.h"

#if defined(TARGET_DARWIN)
#include "CocoaInterface.h"
#include "osx/CocoaInterface.h"
#endif

const char* CGUIEditControl::smsLetters[10] = { " !@#$%^&*()[]{}<>/\\|0", ".,;:\'\"-+_=?`~1", "abc2", "def3", "ghi4", "jkl5", "mno6", "pqrs7", "tuv8", "wxyz9" };
Expand Down
2 changes: 1 addition & 1 deletion xbmc/interfaces/Builtins.cpp
Expand Up @@ -79,7 +79,7 @@

#if defined(TARGET_DARWIN)
#include "filesystem/SpecialProtocol.h"
#include "CocoaInterface.h"
#include "osx/CocoaInterface.h"
#endif

#ifdef HAS_CDDA_RIPPER
Expand Down
2 changes: 1 addition & 1 deletion xbmc/linux/LinuxTimezone.cpp
Expand Up @@ -27,7 +27,7 @@
#include "LinuxTimezone.h"
#include "utils/SystemInfo.h"
#if defined(TARGET_DARWIN)
#include "OSXGNUReplacements.h"
#include "osx/OSXGNUReplacements.h"
#endif
#ifdef __FreeBSD__
#include "freebsd/FreeBSDGNUReplacements.h"
Expand Down
4 changes: 2 additions & 2 deletions xbmc/main/osx/SDLMain.mm
Expand Up @@ -15,7 +15,7 @@
#import <sys/param.h> /* for MAXPATHLEN */
#import <unistd.h>

#import "CocoaInterface.h"
#import "osx/CocoaInterface.h"
//hack around problem with xbmc's typedef int BOOL
// and obj-c's typedef unsigned char BOOL
#define BOOL XBMC_BOOL
Expand All @@ -25,7 +25,7 @@
#import "storage/osx/DarwinStorageProvider.h"
#undef BOOL

#import "HotKeyController.h"
#import "osx/HotKeyController.h"

// For some reaon, Apple removed setAppleMenu from the headers in 10.4,
// but the method still is there and works. To avoid warnings, we declare
Expand Down
2 changes: 1 addition & 1 deletion xbmc/powermanagement/osx/CocoaPowerSyscall.cpp
Expand Up @@ -38,7 +38,7 @@ typedef unsigned char BYTE;

#include "osx/DarwinUtils.h"

#include "CocoaInterface.h"
#include "osx/CocoaInterface.h"

#if defined(TARGET_DARWIN_OSX)
OSStatus SendAppleEventToSystemProcess(AEEventID eventToSendID)
Expand Down
2 changes: 1 addition & 1 deletion xbmc/pvr/timers/PVRTimerInfoTag.h
Expand Up @@ -38,7 +38,7 @@
*/

#include "XBDateTime.h"
#include "../addons/include/xbmc_pvr_types.h"
#include "addons/include/xbmc_pvr_types.h"

#include <boost/shared_ptr.hpp>

Expand Down
2 changes: 1 addition & 1 deletion xbmc/settings/GUIWindowSettingsCategory.cpp
Expand Up @@ -72,7 +72,7 @@
#endif
#endif
#if defined(TARGET_DARWIN_OSX)
#include "XBMCHelper.h"
#include "osx/XBMCHelper.h"
#endif
#include "network/GUIDialogAccessPoints.h"
#include "filesystem/Directory.h"
Expand Down
2 changes: 1 addition & 1 deletion xbmc/storage/osx/DarwinStorageProvider.cpp
Expand Up @@ -28,7 +28,7 @@
#if defined(TARGET_DARWIN_OSX)
#include <DiskArbitration/DiskArbitration.h>
#endif
#include "CocoaInterface.h"
#include "osx/CocoaInterface.h"

bool CDarwinStorageProvider::m_event = false;

Expand Down
2 changes: 1 addition & 1 deletion xbmc/utils/RssReader.cpp
Expand Up @@ -27,7 +27,7 @@
#include "filesystem/File.h"
#include "filesystem/CurlFile.h"
#if defined(TARGET_DARWIN)
#include "CocoaInterface.h"
#include "osx/CocoaInterface.h"
#endif
#include "settings/Settings.h"
#include "guilib/LocalizeStrings.h"
Expand Down
2 changes: 1 addition & 1 deletion xbmc/video/VideoReferenceClock.cpp
Expand Up @@ -33,7 +33,7 @@
#define NVSETTINGSCMD "nvidia-settings -nt -q RefreshRate3"
#elif defined(TARGET_DARWIN_OSX)
#include <QuartzCore/CVDisplayLink.h>
#include "CocoaInterface.h"
#include "osx/CocoaInterface.h"
#elif defined(TARGET_DARWIN_IOS)
#include "windowing/WindowingFactory.h"
#elif defined(_WIN32) && defined(HAS_DX)
Expand Down
4 changes: 2 additions & 2 deletions xbmc/windowing/osx/WinSystemOSX.mm
Expand Up @@ -33,9 +33,9 @@
#include "input/KeyboardStat.h"
#include "threads/SingleLock.h"
#include "utils/log.h"
#include "XBMCHelper.h"
#include "osx/XBMCHelper.h"
#include "utils/SystemInfo.h"
#include "CocoaInterface.h"
#include "osx/CocoaInterface.h"
#undef BOOL

#import <SDL/SDL_video.h>
Expand Down
2 changes: 1 addition & 1 deletion xbmc/windowing/osx/WinSystemOSXGL.mm
Expand Up @@ -23,7 +23,7 @@
//hack around problem with xbmc's typedef int BOOL
// and obj-c's typedef unsigned char BOOL
#define BOOL XBMC_BOOL
#include "../guilib/Texture.h"
#include "guilib/Texture.h"
#include "WinSystemOSXGL.h"
#include "rendering/gl/RenderSystemGL.h"
#undef BOOL
Expand Down

0 comments on commit 288715f

Please sign in to comment.