diff options
author | Memphiz <memphis@machzwo.de> | 2012-09-06 17:45:50 +0200 |
---|---|---|
committer | Memphiz <memphis@machzwo.de> | 2012-09-06 19:16:42 +0200 |
commit | 61a9e882a4f4154dba240a854aa45ee04b97c636 (patch) | |
tree | 33244ff4bacc274f7f176652d5f27580d0b4ffcd | |
parent | 3d91ac2e46fcf03a068aedaf1e84afb2c71923d9 (diff) |
[osx] - move SDLMain.mm from xbmc/osx to xbmc/main and stick it into the main.a - fixes compilation of test framework
-rw-r--r-- | XBMC.xcodeproj/project.pbxproj | 21 | ||||
-rw-r--r-- | configure.in | 3 | ||||
-rw-r--r-- | xbmc/main/Makefile | 7 | ||||
-rw-r--r-- | xbmc/main/Makefile.in | 14 | ||||
-rw-r--r-- | xbmc/main/osx/SDLMain.h (renamed from xbmc/osx/SDLMain.h) | 0 | ||||
-rw-r--r-- | xbmc/main/osx/SDLMain.mm (renamed from xbmc/osx/SDLMain.mm) | 0 | ||||
-rw-r--r-- | xbmc/osx/Makefile.in | 1 |
7 files changed, 31 insertions, 15 deletions
diff --git a/XBMC.xcodeproj/project.pbxproj b/XBMC.xcodeproj/project.pbxproj index 267883ae5c..c72c829d6e 100644 --- a/XBMC.xcodeproj/project.pbxproj +++ b/XBMC.xcodeproj/project.pbxproj @@ -436,6 +436,7 @@ DF93D7F61444B568007C6459 /* HDHomeRunDirectory.cpp in Sources */ = {isa = PBXBuildFile; fileRef = DF93D7F51444B568007C6459 /* HDHomeRunDirectory.cpp */; }; DF98D98C1434F47D00A6EBE1 /* SkinVariable.cpp in Sources */ = {isa = PBXBuildFile; fileRef = DF98D98A1434F47D00A6EBE1 /* SkinVariable.cpp */; }; DFAB049813F8376700B70BFB /* InertialScrollingHandler.cpp in Sources */ = {isa = PBXBuildFile; fileRef = DFAB049613F8376700B70BFB /* InertialScrollingHandler.cpp */; }; + DFB15B2215F8FB8100CDF0DE /* SDLMain.mm in Sources */ = {isa = PBXBuildFile; fileRef = DFB15B2115F8FB8100CDF0DE /* SDLMain.mm */; }; DFB65FB515373AE7006B8FF1 /* AEFactory.cpp in Sources */ = {isa = PBXBuildFile; fileRef = DFB65F6515373AE7006B8FF1 /* AEFactory.cpp */; }; DFB65FB715373AE7006B8FF1 /* AEEncoderFFmpeg.cpp in Sources */ = {isa = PBXBuildFile; fileRef = DFB65F6A15373AE7006B8FF1 /* AEEncoderFFmpeg.cpp */; }; DFB65FB815373AE7006B8FF1 /* CoreAudioAE.cpp in Sources */ = {isa = PBXBuildFile; fileRef = DFB65F6D15373AE7006B8FF1 /* CoreAudioAE.cpp */; }; @@ -1031,7 +1032,6 @@ F5E56BA61082A675006E788A /* PosixMountProvider.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F5E56BA51082A675006E788A /* PosixMountProvider.cpp */; }; F5EA02260F6DA990005C2EC5 /* CocoaPowerSyscall.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F5EA02200F6DA85C005C2EC5 /* CocoaPowerSyscall.cpp */; }; F5EA02270F6DA9A5005C2EC5 /* PowerManager.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F5EA021A0F6DA7E8005C2EC5 /* PowerManager.cpp */; }; - F5EA04800F72F188005C2EC5 /* SDLMain.mm in Sources */ = {isa = PBXBuildFile; fileRef = F5EA04280F72EB88005C2EC5 /* SDLMain.mm */; }; F5EA05C20F733812005C2EC5 /* CocoaInterface.mm in Sources */ = {isa = PBXBuildFile; fileRef = F5EA05C00F733812005C2EC5 /* CocoaInterface.mm */; }; F5ED8D6C1551F91400842059 /* BlurayDirectory.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F5ED8D6A1551F91400842059 /* BlurayDirectory.cpp */; }; F5ED908815538DCE00842059 /* XBMCTinyXML.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F5ED908615538DCE00842059 /* XBMCTinyXML.cpp */; }; @@ -1953,6 +1953,8 @@ DF98D98B1434F47D00A6EBE1 /* SkinVariable.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SkinVariable.h; sourceTree = "<group>"; }; DFAB049613F8376700B70BFB /* InertialScrollingHandler.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = InertialScrollingHandler.cpp; sourceTree = "<group>"; }; DFAB049713F8376700B70BFB /* InertialScrollingHandler.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = InertialScrollingHandler.h; sourceTree = "<group>"; }; + DFB15B2015F8FB8100CDF0DE /* SDLMain.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDLMain.h; sourceTree = "<group>"; }; + DFB15B2115F8FB8100CDF0DE /* SDLMain.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = SDLMain.mm; sourceTree = "<group>"; }; DFB65F6415373AE7006B8FF1 /* AEAudioFormat.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AEAudioFormat.h; sourceTree = "<group>"; }; DFB65F6515373AE7006B8FF1 /* AEFactory.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = AEFactory.cpp; sourceTree = "<group>"; }; DFB65F6615373AE7006B8FF1 /* AEFactory.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AEFactory.h; sourceTree = "<group>"; }; @@ -3231,8 +3233,6 @@ F5EA021B0F6DA7E8005C2EC5 /* PowerManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PowerManager.h; sourceTree = "<group>"; }; F5EA02200F6DA85C005C2EC5 /* CocoaPowerSyscall.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CocoaPowerSyscall.cpp; sourceTree = "<group>"; }; F5EA02210F6DA85C005C2EC5 /* CocoaPowerSyscall.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CocoaPowerSyscall.h; sourceTree = "<group>"; }; - F5EA04280F72EB88005C2EC5 /* SDLMain.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = SDLMain.mm; sourceTree = "<group>"; }; - F5EA04E80F72F9CA005C2EC5 /* SDLMain.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SDLMain.h; path = xbmc/osx/SDLMain.h; sourceTree = SOURCE_ROOT; }; F5EA05C00F733812005C2EC5 /* CocoaInterface.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = CocoaInterface.mm; path = xbmc/osx/CocoaInterface.mm; sourceTree = SOURCE_ROOT; }; F5EA05C30F73381A005C2EC5 /* CocoaInterface.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CocoaInterface.h; path = xbmc/osx/CocoaInterface.h; sourceTree = SOURCE_ROOT; }; F5ED8D6A1551F91400842059 /* BlurayDirectory.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = BlurayDirectory.cpp; sourceTree = "<group>"; }; @@ -4300,6 +4300,7 @@ 552A226615F7E11B0015C0D0 /* main */ = { isa = PBXGroup; children = ( + DFB15B1F15F8FB8100CDF0DE /* osx */, 552A226815F7E14B0015C0D0 /* main.cpp */, ); name = main; @@ -4497,6 +4498,16 @@ path = websocket; sourceTree = "<group>"; }; + DFB15B1F15F8FB8100CDF0DE /* osx */ = { + isa = PBXGroup; + children = ( + DFB15B2015F8FB8100CDF0DE /* SDLMain.h */, + DFB15B2115F8FB8100CDF0DE /* SDLMain.mm */, + ); + name = osx; + path = main/osx; + sourceTree = "<group>"; + }; DFB65F6315373AE7006B8FF1 /* AudioEngine */ = { isa = PBXGroup; children = ( @@ -4603,8 +4614,6 @@ 6E2FACD20E26E92800DF79EA /* Info.plist */, F51CEEEE0F5C5D20004F4602 /* OSXGNUReplacements.c */, F51CEEF00F5C5D28004F4602 /* OSXGNUReplacements.h */, - F5EA04E80F72F9CA005C2EC5 /* SDLMain.h */, - F5EA04280F72EB88005C2EC5 /* SDLMain.mm */, E306D12C0DDF7B590052C2AD /* XBMCHelper.cpp */, E306D12D0DDF7B590052C2AD /* XBMCHelper.h */, ); @@ -7174,7 +7183,6 @@ F51CF2D00F6055A4004F4602 /* sha1.c in Sources */, F5EA02260F6DA990005C2EC5 /* CocoaPowerSyscall.cpp in Sources */, F5EA02270F6DA9A5005C2EC5 /* PowerManager.cpp in Sources */, - F5EA04800F72F188005C2EC5 /* SDLMain.mm in Sources */, F5EA05C20F733812005C2EC5 /* CocoaInterface.mm in Sources */, E46F7C2A0F77217400C25D29 /* Zeroconf.cpp in Sources */, E46F7C2D0F77219700C25D29 /* ZeroconfOSX.cpp in Sources */, @@ -7693,6 +7701,7 @@ 5538433115F3678900CE061B /* NptCocoaEnviroment.mm in Sources */, 5538433415F3685C00CE061B /* NptAppleAutoreleasePool.mm in Sources */, 552A226915F7E14B0015C0D0 /* main.cpp in Sources */, + DFB15B2215F8FB8100CDF0DE /* SDLMain.mm in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; diff --git a/configure.in b/configure.in index e35c2feb8b..fdcef0e05e 100644 --- a/configure.in +++ b/configure.in @@ -2278,7 +2278,8 @@ OUTPUT_FILES="Makefile \ xbmc/peripherals/bus/Makefile \ xbmc/peripherals/devices/Makefile \ xbmc/android/activity/Makefile \ - xbmc/android/loader/Makefile" + xbmc/android/loader/Makefile \ + xbmc/main/Makefile" if test "$use_skin_touched" = "yes"; then OUTPUT_FILES="$OUTPUT_FILES addons/skin.touched/media/Makefile" diff --git a/xbmc/main/Makefile b/xbmc/main/Makefile deleted file mode 100644 index 4bf3b2acb9..0000000000 --- a/xbmc/main/Makefile +++ /dev/null @@ -1,7 +0,0 @@ -SRCS= \ - main.cpp - -LIB=main.a - -include ../../Makefile.include --include $(patsubst %.cpp,%.P,$(patsubst %.c,%.P,$(SRCS))) diff --git a/xbmc/main/Makefile.in b/xbmc/main/Makefile.in new file mode 100644 index 0000000000..8e9e6f37b2 --- /dev/null +++ b/xbmc/main/Makefile.in @@ -0,0 +1,14 @@ +abs_top_srcdir=@abs_top_srcdir@ + +.SUFFIXES : .m .mm + +SRCS=main.cpp + +ifeq ($(findstring osx,@ARCH@),osx) +SRCS+=osx/SDLMain.mm +endif + +LIB=main.a + +include $(abs_top_srcdir)/Makefile.include +-include $(patsubst %.mm,%.P,$(patsubst %.cpp,%.P,$(patsubst %.c,%.P,$(SRCS)))) diff --git a/xbmc/osx/SDLMain.h b/xbmc/main/osx/SDLMain.h index 8771e6cf66..8771e6cf66 100644 --- a/xbmc/osx/SDLMain.h +++ b/xbmc/main/osx/SDLMain.h diff --git a/xbmc/osx/SDLMain.mm b/xbmc/main/osx/SDLMain.mm index 5c4ce6e676..5c4ce6e676 100644 --- a/xbmc/osx/SDLMain.mm +++ b/xbmc/main/osx/SDLMain.mm diff --git a/xbmc/osx/Makefile.in b/xbmc/osx/Makefile.in index 281773226b..34597d5b21 100644 --- a/xbmc/osx/Makefile.in +++ b/xbmc/osx/Makefile.in @@ -7,7 +7,6 @@ INCLUDES=-I$(abs_top_srcdir) \ .SUFFIXES : .m .mm SRCS = \ - SDLMain.mm \ XBMCHelper.m \ AutoPool.mm \ DarwinUtils.mm \ |