diff --git a/liblinphone-tutorials/hello-world/REAME b/liblinphone-tutorials/hello-world/REAME new file mode 100644 index 000000000..464be2646 --- /dev/null +++ b/liblinphone-tutorials/hello-world/REAME @@ -0,0 +1,2 @@ +This xcode project just compile helloworld.c linphone tutorial. +This project assumes liblinphone-sdk to be located in linphone-iphone directory. diff --git a/liblinphone-tutorials/hello-world/hello-world.xcodeproj/project.pbxproj b/liblinphone-tutorials/hello-world/hello-world.xcodeproj/project.pbxproj new file mode 100755 index 000000000..826177e62 --- /dev/null +++ b/liblinphone-tutorials/hello-world/hello-world.xcodeproj/project.pbxproj @@ -0,0 +1,298 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 45; + objects = { + +/* Begin PBXBuildFile section */ + 1D60589F0D05DD5A006BFB54 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D30AB110D05D00D00671497 /* Foundation.framework */; }; + 1DF5F4E00D08C38300B7A737 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */; }; + 2220D597127844C9008F2C2E /* helloworld.c in Sources */ = {isa = PBXBuildFile; fileRef = 2220D596127844C9008F2C2E /* helloworld.c */; }; + 2220D5BE127845EE008F2C2E /* libeXosip2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2220D5BD127845EE008F2C2E /* libeXosip2.a */; }; + 2220D5C0127845EE008F2C2E /* libgsm.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2220D5BF127845EE008F2C2E /* libgsm.a */; }; + 2220D5C2127845EE008F2C2E /* libilbc.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2220D5C1127845EE008F2C2E /* libilbc.a */; }; + 2220D5C4127845EE008F2C2E /* liblinphone.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2220D5C3127845EE008F2C2E /* liblinphone.a */; }; + 2220D5C6127845EE008F2C2E /* libmediastreamer.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2220D5C5127845EE008F2C2E /* libmediastreamer.a */; }; + 2220D5C8127845EE008F2C2E /* libortp.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2220D5C7127845EE008F2C2E /* libortp.a */; }; + 2220D5CA127845EE008F2C2E /* libosip2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2220D5C9127845EE008F2C2E /* libosip2.a */; }; + 2220D5CC127845EE008F2C2E /* libosipparser2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2220D5CB127845EE008F2C2E /* libosipparser2.a */; }; + 2220D5CE127845EE008F2C2E /* libspeex.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2220D5CD127845EE008F2C2E /* libspeex.a */; }; + 2220D5D0127845EE008F2C2E /* libspeexdsp.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2220D5CF127845EE008F2C2E /* libspeexdsp.a */; }; + 2220D5D81278461C008F2C2E /* CFNetwork.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2220D5D71278461C008F2C2E /* CFNetwork.framework */; }; + 2220D5DA1278461C008F2C2E /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2220D5D91278461C008F2C2E /* CoreAudio.framework */; }; + 2220D5EA12784672008F2C2E /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2220D5E912784672008F2C2E /* AudioToolbox.framework */; }; + 288765FD0DF74451002DB57D /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 288765FC0DF74451002DB57D /* CoreGraphics.framework */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + 1D30AB110D05D00D00671497 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; + 1D6058910D05DD3D006BFB54 /* hello-world.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "hello-world.app"; sourceTree = BUILT_PRODUCTS_DIR; }; + 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; + 2220D596127844C9008F2C2E /* helloworld.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = helloworld.c; path = ../../submodules/linphone/coreapi/help/helloworld.c; sourceTree = SOURCE_ROOT; }; + 2220D5BD127845EE008F2C2E /* libeXosip2.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libeXosip2.a; path = "/Users/jehanmonnier/workspaces/workspace-iphone-port/linphone-iphone/liblinphone-sdk/apple-darwin/lib/libeXosip2.a"; sourceTree = ""; }; + 2220D5BF127845EE008F2C2E /* libgsm.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libgsm.a; path = "/Users/jehanmonnier/workspaces/workspace-iphone-port/linphone-iphone/liblinphone-sdk/apple-darwin/lib/libgsm.a"; sourceTree = ""; }; + 2220D5C1127845EE008F2C2E /* libilbc.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libilbc.a; path = "/Users/jehanmonnier/workspaces/workspace-iphone-port/linphone-iphone/liblinphone-sdk/apple-darwin/lib/libilbc.a"; sourceTree = ""; }; + 2220D5C3127845EE008F2C2E /* liblinphone.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = liblinphone.a; path = "/Users/jehanmonnier/workspaces/workspace-iphone-port/linphone-iphone/liblinphone-sdk/apple-darwin/lib/liblinphone.a"; sourceTree = ""; }; + 2220D5C5127845EE008F2C2E /* libmediastreamer.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libmediastreamer.a; path = "/Users/jehanmonnier/workspaces/workspace-iphone-port/linphone-iphone/liblinphone-sdk/apple-darwin/lib/libmediastreamer.a"; sourceTree = ""; }; + 2220D5C7127845EE008F2C2E /* libortp.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libortp.a; path = "/Users/jehanmonnier/workspaces/workspace-iphone-port/linphone-iphone/liblinphone-sdk/apple-darwin/lib/libortp.a"; sourceTree = ""; }; + 2220D5C9127845EE008F2C2E /* libosip2.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libosip2.a; path = "/Users/jehanmonnier/workspaces/workspace-iphone-port/linphone-iphone/liblinphone-sdk/apple-darwin/lib/libosip2.a"; sourceTree = ""; }; + 2220D5CB127845EE008F2C2E /* libosipparser2.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libosipparser2.a; path = "/Users/jehanmonnier/workspaces/workspace-iphone-port/linphone-iphone/liblinphone-sdk/apple-darwin/lib/libosipparser2.a"; sourceTree = ""; }; + 2220D5CD127845EE008F2C2E /* libspeex.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libspeex.a; path = "/Users/jehanmonnier/workspaces/workspace-iphone-port/linphone-iphone/liblinphone-sdk/apple-darwin/lib/libspeex.a"; sourceTree = ""; }; + 2220D5CF127845EE008F2C2E /* libspeexdsp.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libspeexdsp.a; path = "/Users/jehanmonnier/workspaces/workspace-iphone-port/linphone-iphone/liblinphone-sdk/apple-darwin/lib/libspeexdsp.a"; sourceTree = ""; }; + 2220D5D51278461C008F2C2E /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AudioUnit.framework; path = System/Library/Frameworks/AudioUnit.framework; sourceTree = SDKROOT; }; + 2220D5D71278461C008F2C2E /* CFNetwork.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CFNetwork.framework; path = System/Library/Frameworks/CFNetwork.framework; sourceTree = SDKROOT; }; + 2220D5D91278461C008F2C2E /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreAudio.framework; path = System/Library/Frameworks/CoreAudio.framework; sourceTree = SDKROOT; }; + 2220D5E912784672008F2C2E /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AudioToolbox.framework; path = System/Library/Frameworks/AudioToolbox.framework; sourceTree = SDKROOT; }; + 288765FC0DF74451002DB57D /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; + 32CA4F630368D1EE00C91783 /* hello_world_Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = hello_world_Prefix.pch; sourceTree = ""; }; + 8D1107310486CEB800E47090 /* hello_world-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "hello_world-Info.plist"; plistStructureDefinitionIdentifier = "com.apple.xcode.plist.structure-definition.iphone.info-plist"; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 1D60588F0D05DD3D006BFB54 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 1D60589F0D05DD5A006BFB54 /* Foundation.framework in Frameworks */, + 1DF5F4E00D08C38300B7A737 /* UIKit.framework in Frameworks */, + 288765FD0DF74451002DB57D /* CoreGraphics.framework in Frameworks */, + 2220D5BE127845EE008F2C2E /* libeXosip2.a in Frameworks */, + 2220D5C0127845EE008F2C2E /* libgsm.a in Frameworks */, + 2220D5C2127845EE008F2C2E /* libilbc.a in Frameworks */, + 2220D5C4127845EE008F2C2E /* liblinphone.a in Frameworks */, + 2220D5C6127845EE008F2C2E /* libmediastreamer.a in Frameworks */, + 2220D5C8127845EE008F2C2E /* libortp.a in Frameworks */, + 2220D5CA127845EE008F2C2E /* libosip2.a in Frameworks */, + 2220D5CC127845EE008F2C2E /* libosipparser2.a in Frameworks */, + 2220D5CE127845EE008F2C2E /* libspeex.a in Frameworks */, + 2220D5D0127845EE008F2C2E /* libspeexdsp.a in Frameworks */, + 2220D5D81278461C008F2C2E /* CFNetwork.framework in Frameworks */, + 2220D5DA1278461C008F2C2E /* CoreAudio.framework in Frameworks */, + 2220D5EA12784672008F2C2E /* AudioToolbox.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 080E96DDFE201D6D7F000001 /* Classes */ = { + isa = PBXGroup; + children = ( + ); + path = Classes; + sourceTree = ""; + }; + 19C28FACFE9D520D11CA2CBB /* Products */ = { + isa = PBXGroup; + children = ( + 1D6058910D05DD3D006BFB54 /* hello-world.app */, + ); + name = Products; + sourceTree = ""; + }; + 29B97314FDCFA39411CA2CEA /* CustomTemplate */ = { + isa = PBXGroup; + children = ( + 080E96DDFE201D6D7F000001 /* Classes */, + 29B97315FDCFA39411CA2CEA /* Other Sources */, + 29B97317FDCFA39411CA2CEA /* Resources */, + 29B97323FDCFA39411CA2CEA /* Frameworks */, + 19C28FACFE9D520D11CA2CBB /* Products */, + 2220D5BD127845EE008F2C2E /* libeXosip2.a */, + 2220D5BF127845EE008F2C2E /* libgsm.a */, + 2220D5C1127845EE008F2C2E /* libilbc.a */, + 2220D5C3127845EE008F2C2E /* liblinphone.a */, + 2220D5C5127845EE008F2C2E /* libmediastreamer.a */, + 2220D5C7127845EE008F2C2E /* libortp.a */, + 2220D5C9127845EE008F2C2E /* libosip2.a */, + 2220D5CB127845EE008F2C2E /* libosipparser2.a */, + 2220D5CD127845EE008F2C2E /* libspeex.a */, + 2220D5CF127845EE008F2C2E /* libspeexdsp.a */, + 2220D5D51278461C008F2C2E /* AudioUnit.framework */, + 2220D5D71278461C008F2C2E /* CFNetwork.framework */, + 2220D5D91278461C008F2C2E /* CoreAudio.framework */, + 2220D5E912784672008F2C2E /* AudioToolbox.framework */, + ); + name = CustomTemplate; + sourceTree = ""; + }; + 29B97315FDCFA39411CA2CEA /* Other Sources */ = { + isa = PBXGroup; + children = ( + 2220D596127844C9008F2C2E /* helloworld.c */, + 32CA4F630368D1EE00C91783 /* hello_world_Prefix.pch */, + ); + name = "Other Sources"; + sourceTree = ""; + }; + 29B97317FDCFA39411CA2CEA /* Resources */ = { + isa = PBXGroup; + children = ( + 8D1107310486CEB800E47090 /* hello_world-Info.plist */, + ); + name = Resources; + sourceTree = ""; + }; + 29B97323FDCFA39411CA2CEA /* Frameworks */ = { + isa = PBXGroup; + children = ( + 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */, + 1D30AB110D05D00D00671497 /* Foundation.framework */, + 288765FC0DF74451002DB57D /* CoreGraphics.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 1D6058900D05DD3D006BFB54 /* hello-world */ = { + isa = PBXNativeTarget; + buildConfigurationList = 1D6058960D05DD3E006BFB54 /* Build configuration list for PBXNativeTarget "hello-world" */; + buildPhases = ( + 1D60588D0D05DD3D006BFB54 /* Resources */, + 1D60588E0D05DD3D006BFB54 /* Sources */, + 1D60588F0D05DD3D006BFB54 /* Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = "hello-world"; + productName = "hello-world"; + productReference = 1D6058910D05DD3D006BFB54 /* hello-world.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 29B97313FDCFA39411CA2CEA /* Project object */ = { + isa = PBXProject; + buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "hello-world" */; + compatibilityVersion = "Xcode 3.1"; + hasScannedForEncodings = 1; + mainGroup = 29B97314FDCFA39411CA2CEA /* CustomTemplate */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 1D6058900D05DD3D006BFB54 /* hello-world */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 1D60588D0D05DD3D006BFB54 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 1D60588E0D05DD3D006BFB54 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 2220D597127844C9008F2C2E /* helloworld.c in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin XCBuildConfiguration section */ + 1D6058940D05DD3E006BFB54 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + COPY_PHASE_STRIP = NO; + GCC_DYNAMIC_NO_PIC = NO; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = hello_world_Prefix.pch; + INFOPLIST_FILE = "hello_world-Info.plist"; + LIBRARY_SEARCH_PATHS = ( + "$(inherited)", + "\"$(SRCROOT)/../../liblinphone-sdk/apple-darwin/lib\"", + ); + PRODUCT_NAME = "hello-world"; + }; + name = Debug; + }; + 1D6058950D05DD3E006BFB54 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + COPY_PHASE_STRIP = YES; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = hello_world_Prefix.pch; + INFOPLIST_FILE = "hello_world-Info.plist"; + LIBRARY_SEARCH_PATHS = ( + "$(inherited)", + "\"$(SRCROOT)/../../liblinphone-sdk/apple-darwin/lib\"", + ); + PRODUCT_NAME = "hello-world"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + C01FCF4F08A954540054247B /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ARCHS = "$(ARCHS_STANDARD_32_BIT)"; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + GCC_C_LANGUAGE_STANDARD = c99; + GCC_PREPROCESSOR_DEFINITIONS = DEBUG; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + HEADER_SEARCH_PATHS = "$(SRCROOT)/../../liblinphone-sdk/apple-darwin/include"; + LIBRARY_SEARCH_PATHS = "$(SRCROOT)/../../liblinphone-sdk/apple-darwin/lib"; + PREBINDING = NO; + SDKROOT = iphoneos4.0; + }; + name = Debug; + }; + C01FCF5008A954540054247B /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ARCHS = "$(ARCHS_STANDARD_32_BIT)"; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + GCC_C_LANGUAGE_STANDARD = c99; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + HEADER_SEARCH_PATHS = "$(SRCROOT)/../../liblinphone-sdk/apple-darwin/include"; + LIBRARY_SEARCH_PATHS = "$(SRCROOT)/../../liblinphone-sdk/apple-darwin/lib"; + OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1"; + PREBINDING = NO; + SDKROOT = iphoneos4.0; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 1D6058960D05DD3E006BFB54 /* Build configuration list for PBXNativeTarget "hello-world" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 1D6058940D05DD3E006BFB54 /* Debug */, + 1D6058950D05DD3E006BFB54 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + C01FCF4E08A954540054247B /* Build configuration list for PBXProject "hello-world" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + C01FCF4F08A954540054247B /* Debug */, + C01FCF5008A954540054247B /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 29B97313FDCFA39411CA2CEA /* Project object */; +} diff --git a/liblinphone-tutorials/hello-world/hello_world-Info.plist b/liblinphone-tutorials/hello-world/hello_world-Info.plist new file mode 100644 index 000000000..15665856b --- /dev/null +++ b/liblinphone-tutorials/hello-world/hello_world-Info.plist @@ -0,0 +1,28 @@ + + + + + CFBundleDevelopmentRegion + English + CFBundleDisplayName + ${PRODUCT_NAME} + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIconFile + + CFBundleIdentifier + com.yourcompany.${PRODUCT_NAME:rfc1034identifier} + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + ${PRODUCT_NAME} + CFBundlePackageType + APPL + CFBundleSignature + ???? + CFBundleVersion + 1.0 + LSRequiresIPhoneOS + + + diff --git a/liblinphone-tutorials/hello-world/hello_world_Prefix.pch b/liblinphone-tutorials/hello-world/hello_world_Prefix.pch new file mode 100644 index 000000000..cadc64edb --- /dev/null +++ b/liblinphone-tutorials/hello-world/hello_world_Prefix.pch @@ -0,0 +1,8 @@ +// +// Prefix header for all source files of the 'hello-world' target in the 'hello-world' project +// + +#ifdef __OBJC__ + #import + #import +#endif