From 1c79ea89451790cda866ce14e28669cd2aabd3da Mon Sep 17 00:00:00 2001 From: Dimitri Diakopoulos Date: Sat, 16 May 2015 23:59:46 -0700 Subject: [PATCH] refactored xcode project to build as static lib; added example xcode proj + workspace --- .../project.pbxproj | 346 ++++++++++++++++++ .../contents.xcworkspacedata | 7 + .../xcschemes/libnyquist.xcscheme | 89 +++++ .../contents.xcworkspacedata | 10 + {src => examples/src}/Main.cpp | 4 +- libnyquist.xcodeproj/project.pbxproj | 30 +- .../xcschemes/libnyquist.xcscheme | 13 +- 7 files changed, 482 insertions(+), 17 deletions(-) create mode 100644 examples/libnyquist-example.xcodeproj/project.pbxproj create mode 100644 examples/libnyquist-example.xcodeproj/project.xcworkspace/contents.xcworkspacedata create mode 100644 examples/libnyquist-example.xcodeproj/xcshareddata/xcschemes/libnyquist.xcscheme create mode 100644 examples/libnyquist-examples.xcworkspace/contents.xcworkspacedata rename {src => examples/src}/Main.cpp (98%) diff --git a/examples/libnyquist-example.xcodeproj/project.pbxproj b/examples/libnyquist-example.xcodeproj/project.pbxproj new file mode 100644 index 0000000..5a9ca21 --- /dev/null +++ b/examples/libnyquist-example.xcodeproj/project.pbxproj @@ -0,0 +1,346 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 083DB3F11B0871D700FB0661 /* RtAudio.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 083DB3EF1B0871D700FB0661 /* RtAudio.cpp */; }; + 08B91D791AC273A900335131 /* libpthread.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 08B91D781AC273A900335131 /* libpthread.dylib */; }; + 08B91D7B1AC273AE00335131 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 08B91D7A1AC273AE00335131 /* CoreAudio.framework */; }; + 08B91D7D1AC273E400335131 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 08B91D7C1AC273E400335131 /* CoreFoundation.framework */; }; + 08B91D7F1AC273EA00335131 /* CoreServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 08B91D7E1AC273EA00335131 /* CoreServices.framework */; }; + 08B91D9F1AC73B8A00335131 /* Main.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 08B91D951AC73B8A00335131 /* Main.cpp */; }; + 08BD8BD61B087097006C227C /* libnyquist.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 08BD8BD51B087097006C227C /* libnyquist.a */; }; +/* End PBXBuildFile section */ + +/* Begin PBXCopyFilesBuildPhase section */ + 08B91D241AC26FC100335131 /* CopyFiles */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = /usr/share/man/man1/; + dstSubfolderSpec = 0; + files = ( + ); + runOnlyForDeploymentPostprocessing = 1; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + 083DB3EF1B0871D700FB0661 /* RtAudio.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = RtAudio.cpp; path = ../third_party/rtaudio/RtAudio.cpp; sourceTree = SOURCE_ROOT; }; + 083DB3F01B0871D700FB0661 /* RtAudio.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = RtAudio.h; path = ../third_party/rtaudio/RtAudio.h; sourceTree = SOURCE_ROOT; }; + 08B91D261AC26FC100335131 /* nyquist-example */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = "nyquist-example"; sourceTree = BUILT_PRODUCTS_DIR; }; + 08B91D781AC273A900335131 /* libpthread.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libpthread.dylib; path = usr/lib/libpthread.dylib; sourceTree = SDKROOT; }; + 08B91D7A1AC273AE00335131 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreAudio.framework; path = System/Library/Frameworks/CoreAudio.framework; sourceTree = SDKROOT; }; + 08B91D7C1AC273E400335131 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreFoundation.framework; path = System/Library/Frameworks/CoreFoundation.framework; sourceTree = SDKROOT; }; + 08B91D7E1AC273EA00335131 /* CoreServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreServices.framework; path = System/Library/Frameworks/CoreServices.framework; sourceTree = SDKROOT; }; + 08B91D951AC73B8A00335131 /* Main.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = Main.cpp; path = src/Main.cpp; sourceTree = SOURCE_ROOT; }; + 08BD8BD51B087097006C227C /* libnyquist.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libnyquist.a; path = ../../../Library/Developer/Xcode/DerivedData/bin/Debug/libnyquist.a; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 08B91D231AC26FC100335131 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 08BD8BD61B087097006C227C /* libnyquist.a in Frameworks */, + 08B91D7F1AC273EA00335131 /* CoreServices.framework in Frameworks */, + 08B91D7D1AC273E400335131 /* CoreFoundation.framework in Frameworks */, + 08B91D7B1AC273AE00335131 /* CoreAudio.framework in Frameworks */, + 08B91D791AC273A900335131 /* libpthread.dylib in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 083DB3EB1B0871B300FB0661 /* third_party */ = { + isa = PBXGroup; + children = ( + 083DB3EF1B0871D700FB0661 /* RtAudio.cpp */, + 083DB3F01B0871D700FB0661 /* RtAudio.h */, + ); + name = third_party; + sourceTree = ""; + }; + 08B91D1D1AC26FC100335131 = { + isa = PBXGroup; + children = ( + 08B91D281AC26FC100335131 /* libnyquist */, + 08B91D801AC73B3B00335131 /* Frameworks */, + 08B91D271AC26FC100335131 /* Products */, + ); + sourceTree = ""; + }; + 08B91D271AC26FC100335131 /* Products */ = { + isa = PBXGroup; + children = ( + 08B91D261AC26FC100335131 /* nyquist-example */, + ); + name = Products; + sourceTree = ""; + }; + 08B91D281AC26FC100335131 /* libnyquist */ = { + isa = PBXGroup; + children = ( + 08B91D821AC73B6900335131 /* src */, + 083DB3EB1B0871B300FB0661 /* third_party */, + ); + path = libnyquist; + sourceTree = ""; + }; + 08B91D801AC73B3B00335131 /* Frameworks */ = { + isa = PBXGroup; + children = ( + 08B91D7E1AC273EA00335131 /* CoreServices.framework */, + 08B91D7C1AC273E400335131 /* CoreFoundation.framework */, + 08B91D7A1AC273AE00335131 /* CoreAudio.framework */, + 08B91D781AC273A900335131 /* libpthread.dylib */, + 08BD8BD51B087097006C227C /* libnyquist.a */, + ); + name = Frameworks; + sourceTree = ""; + }; + 08B91D821AC73B6900335131 /* src */ = { + isa = PBXGroup; + children = ( + 08B91D951AC73B8A00335131 /* Main.cpp */, + ); + name = src; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 08B91D251AC26FC100335131 /* nyquist-example */ = { + isa = PBXNativeTarget; + buildConfigurationList = 08B91D2D1AC26FC100335131 /* Build configuration list for PBXNativeTarget "nyquist-example" */; + buildPhases = ( + 08B91D221AC26FC100335131 /* Sources */, + 08B91D231AC26FC100335131 /* Frameworks */, + 08B91D241AC26FC100335131 /* CopyFiles */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = "nyquist-example"; + productName = libnyquist; + productReference = 08B91D261AC26FC100335131 /* nyquist-example */; + productType = "com.apple.product-type.tool"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 08B91D1E1AC26FC100335131 /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 0610; + ORGANIZATIONNAME = "Dimitri Diakopoulos"; + TargetAttributes = { + 08B91D251AC26FC100335131 = { + CreatedOnToolsVersion = 6.1.1; + }; + }; + }; + buildConfigurationList = 08B91D211AC26FC100335131 /* Build configuration list for PBXProject "libnyquist-example" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + ); + mainGroup = 08B91D1D1AC26FC100335131; + productRefGroup = 08B91D271AC26FC100335131 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 08B91D251AC26FC100335131 /* nyquist-example */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXSourcesBuildPhase section */ + 08B91D221AC26FC100335131 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 083DB3F11B0871D700FB0661 /* RtAudio.cpp in Sources */, + 08B91D9F1AC73B8A00335131 /* Main.cpp in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin XCBuildConfiguration section */ + 08B91D2B1AC26FC100335131 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_SYMBOLS_PRIVATE_EXTERN = NO; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MACOSX_DEPLOYMENT_TARGET = 10.10; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = macosx; + }; + name = Debug; + }; + 08B91D2C1AC26FC100335131 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = YES; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MACOSX_DEPLOYMENT_TARGET = 10.10; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = macosx; + }; + name = Release; + }; + 08B91D2E1AC26FC100335131 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + GCC_CHAR_IS_UNSIGNED_CHAR = NO; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_ENABLE_BUILTIN_FUNCTIONS = YES; + GCC_INLINES_ARE_PRIVATE_EXTERN = NO; + GCC_INPUT_FILETYPE = automatic; + GCC_LINK_WITH_DYNAMIC_LIBRARIES = YES; + GCC_NO_COMMON_BLOCKS = NO; + GCC_PREPROCESSOR_DEFINITIONS = ( + __MACOSX_CORE__, + USE_ALLOCA, + OPUS_BUILD, + ); + GCC_STRICT_ALIASING = NO; + HEADER_SEARCH_PATHS = ( + "$(inherited)", + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, + "$(SRCROOT)/../include", + "$(SRCROOT)/../third_party", + ); + LIBRARY_SEARCH_PATHS = ( + "$(inherited)", + "$(USER_LIBRARY_DIR)/Developer/Xcode/DerivedData/bin/Debug", + ); + PRODUCT_NAME = "$(TARGET_NAME)"; + SCAN_ALL_SOURCE_FILES_FOR_INCLUDES = YES; + }; + name = Debug; + }; + 08B91D2F1AC26FC100335131 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + GCC_CHAR_IS_UNSIGNED_CHAR = NO; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_ENABLE_BUILTIN_FUNCTIONS = YES; + GCC_INLINES_ARE_PRIVATE_EXTERN = NO; + GCC_INPUT_FILETYPE = automatic; + GCC_LINK_WITH_DYNAMIC_LIBRARIES = YES; + GCC_NO_COMMON_BLOCKS = NO; + GCC_PREPROCESSOR_DEFINITIONS = ( + __MACOSX_CORE__, + USE_ALLOCA, + OPUS_BUILD, + ); + GCC_STRICT_ALIASING = NO; + HEADER_SEARCH_PATHS = ( + "$(inherited)", + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, + "$(SRCROOT)/../include", + "$(SRCROOT)/../third_party", + ); + LIBRARY_SEARCH_PATHS = ( + "$(inherited)", + "$(USER_LIBRARY_DIR)/Developer/Xcode/DerivedData/bin/Debug", + ); + PRODUCT_NAME = "$(TARGET_NAME)"; + SCAN_ALL_SOURCE_FILES_FOR_INCLUDES = YES; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 08B91D211AC26FC100335131 /* Build configuration list for PBXProject "libnyquist-example" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 08B91D2B1AC26FC100335131 /* Debug */, + 08B91D2C1AC26FC100335131 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 08B91D2D1AC26FC100335131 /* Build configuration list for PBXNativeTarget "nyquist-example" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 08B91D2E1AC26FC100335131 /* Debug */, + 08B91D2F1AC26FC100335131 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 08B91D1E1AC26FC100335131 /* Project object */; +} diff --git a/examples/libnyquist-example.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/examples/libnyquist-example.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..e7932c5 --- /dev/null +++ b/examples/libnyquist-example.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/examples/libnyquist-example.xcodeproj/xcshareddata/xcschemes/libnyquist.xcscheme b/examples/libnyquist-example.xcodeproj/xcshareddata/xcschemes/libnyquist.xcscheme new file mode 100644 index 0000000..bd468b1 --- /dev/null +++ b/examples/libnyquist-example.xcodeproj/xcshareddata/xcschemes/libnyquist.xcscheme @@ -0,0 +1,89 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/examples/libnyquist-examples.xcworkspace/contents.xcworkspacedata b/examples/libnyquist-examples.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..a6b2980 --- /dev/null +++ b/examples/libnyquist-examples.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,10 @@ + + + + + + + diff --git a/src/Main.cpp b/examples/src/Main.cpp similarity index 98% rename from src/Main.cpp rename to examples/src/Main.cpp index 0c8be94..f52ac05 100644 --- a/src/Main.cpp +++ b/examples/src/Main.cpp @@ -2,8 +2,8 @@ #pragma comment(lib, "dsound.lib") #endif -#include "AudioDevice.h" -#include "AudioDecoder.h" +#include "libnyquist/AudioDevice.h" +#include "libnyquist/AudioDecoder.h" #include diff --git a/libnyquist.xcodeproj/project.pbxproj b/libnyquist.xcodeproj/project.pbxproj index b1cedd8..020e183 100644 --- a/libnyquist.xcodeproj/project.pbxproj +++ b/libnyquist.xcodeproj/project.pbxproj @@ -34,7 +34,6 @@ 08B91D9C1AC73B8A00335131 /* AudioDevice.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 08B91D921AC73B8A00335131 /* AudioDevice.cpp */; }; 08B91D9D1AC73B8A00335131 /* Common.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 08B91D931AC73B8A00335131 /* Common.cpp */; }; 08B91D9E1AC73B8A00335131 /* FlacDecoder.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 08B91D941AC73B8A00335131 /* FlacDecoder.cpp */; }; - 08B91D9F1AC73B8A00335131 /* Main.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 08B91D951AC73B8A00335131 /* Main.cpp */; }; 08B91DA01AC73B8A00335131 /* VorbisDecoder.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 08B91D961AC73B8A00335131 /* VorbisDecoder.cpp */; }; 08B91DA11AC73B8A00335131 /* OpusDecoder.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 08B91D971AC73B8A00335131 /* OpusDecoder.cpp */; }; 08B91DA21AC73B8A00335131 /* WavDecoder.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 08B91D981AC73B8A00335131 /* WavDecoder.cpp */; }; @@ -59,6 +58,9 @@ 0804D1441AE6BA5100F4B1FD /* celt_encoder.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = celt_encoder.c; path = third_party/opus/celt/celt_encoder.c; sourceTree = SOURCE_ROOT; }; 080A58561B0866AA00302850 /* RiffUtils.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = RiffUtils.h; path = include/libnyquist/RiffUtils.h; sourceTree = SOURCE_ROOT; }; 080A58571B0866F600302850 /* RiffUtils.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = RiffUtils.cpp; path = src/RiffUtils.cpp; sourceTree = SOURCE_ROOT; }; + 080A586A1B086D9100302850 /* libnyquist.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = libnyquist.h; sourceTree = ""; }; + 080A586C1B086D9100302850 /* libnyquistPriv.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = libnyquistPriv.h; sourceTree = ""; }; + 080A586E1B086D9100302850 /* libnyquist.cp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = libnyquist.cp; sourceTree = ""; }; 081FFB181ADF803800673073 /* FlacDependencies.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = FlacDependencies.c; path = src/FlacDependencies.c; sourceTree = SOURCE_ROOT; }; 086DADAB1ADF9DF30031F793 /* VorbisDependencies.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = VorbisDependencies.c; path = src/VorbisDependencies.c; sourceTree = SOURCE_ROOT; }; 08894F1E1AEAA5D7007AAF90 /* bits.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = bits.c; path = third_party/wavpack/src/bits.c; sourceTree = SOURCE_ROOT; }; @@ -72,7 +74,7 @@ 08894F261AEAA5D7007AAF90 /* unpack3.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = unpack3.c; path = third_party/wavpack/src/unpack3.c; sourceTree = SOURCE_ROOT; }; 08894F271AEAA5D7007AAF90 /* words.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = words.c; path = third_party/wavpack/src/words.c; sourceTree = SOURCE_ROOT; }; 08894F281AEAA5D7007AAF90 /* wputils.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = wputils.c; path = third_party/wavpack/src/wputils.c; sourceTree = SOURCE_ROOT; }; - 08B91D261AC26FC100335131 /* libnyquist */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = libnyquist; sourceTree = BUILT_PRODUCTS_DIR; }; + 08B91D261AC26FC100335131 /* libnyquist.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libnyquist.a; sourceTree = BUILT_PRODUCTS_DIR; }; 08B91D751AC2713900335131 /* RtAudio.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = RtAudio.cpp; path = third_party/rtaudio/RtAudio.cpp; sourceTree = SOURCE_ROOT; }; 08B91D761AC2713900335131 /* RtAudio.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = RtAudio.h; path = third_party/rtaudio/RtAudio.h; sourceTree = SOURCE_ROOT; }; 08B91D781AC273A900335131 /* libpthread.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libpthread.dylib; path = usr/lib/libpthread.dylib; sourceTree = SDKROOT; }; @@ -96,7 +98,6 @@ 08B91D921AC73B8A00335131 /* AudioDevice.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = AudioDevice.cpp; path = src/AudioDevice.cpp; sourceTree = SOURCE_ROOT; }; 08B91D931AC73B8A00335131 /* Common.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = Common.cpp; path = src/Common.cpp; sourceTree = SOURCE_ROOT; }; 08B91D941AC73B8A00335131 /* FlacDecoder.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = FlacDecoder.cpp; path = src/FlacDecoder.cpp; sourceTree = SOURCE_ROOT; }; - 08B91D951AC73B8A00335131 /* Main.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = Main.cpp; path = src/Main.cpp; sourceTree = SOURCE_ROOT; }; 08B91D961AC73B8A00335131 /* VorbisDecoder.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = VorbisDecoder.cpp; path = src/VorbisDecoder.cpp; sourceTree = SOURCE_ROOT; }; 08B91D971AC73B8A00335131 /* OpusDecoder.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = OpusDecoder.cpp; path = src/OpusDecoder.cpp; sourceTree = SOURCE_ROOT; }; 08B91D981AC73B8A00335131 /* WavDecoder.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = WavDecoder.cpp; path = src/WavDecoder.cpp; sourceTree = SOURCE_ROOT; }; @@ -148,6 +149,16 @@ name = util; sourceTree = ""; }; + 080A58691B086D9100302850 /* libnyquist */ = { + isa = PBXGroup; + children = ( + 080A586A1B086D9100302850 /* libnyquist.h */, + 080A586C1B086D9100302850 /* libnyquistPriv.h */, + 080A586E1B086D9100302850 /* libnyquist.cp */, + ); + path = libnyquist; + sourceTree = ""; + }; 08894F1D1AEAA5B7007AAF90 /* wavpack */ = { isa = PBXGroup; children = ( @@ -171,6 +182,7 @@ children = ( 08B91D281AC26FC100335131 /* libnyquist */, 08B91D511AC270BB00335131 /* third_party */, + 080A58691B086D9100302850 /* libnyquist */, 08B91D801AC73B3B00335131 /* Frameworks */, 08B91D271AC26FC100335131 /* Products */, ); @@ -179,7 +191,7 @@ 08B91D271AC26FC100335131 /* Products */ = { isa = PBXGroup; children = ( - 08B91D261AC26FC100335131 /* libnyquist */, + 08B91D261AC26FC100335131 /* libnyquist.a */, ); name = Products; sourceTree = ""; @@ -251,7 +263,6 @@ 08B91D931AC73B8A00335131 /* Common.cpp */, 080A58571B0866F600302850 /* RiffUtils.cpp */, 08B91D941AC73B8A00335131 /* FlacDecoder.cpp */, - 08B91D951AC73B8A00335131 /* Main.cpp */, 08B91D961AC73B8A00335131 /* VorbisDecoder.cpp */, 08B91D971AC73B8A00335131 /* OpusDecoder.cpp */, 08B91D981AC73B8A00335131 /* WavDecoder.cpp */, @@ -277,8 +288,8 @@ ); name = libnyquist; productName = libnyquist; - productReference = 08B91D261AC26FC100335131 /* libnyquist */; - productType = "com.apple.product-type.tool"; + productReference = 08B91D261AC26FC100335131 /* libnyquist.a */; + productType = "com.apple.product-type.library.static"; }; /* End PBXNativeTarget section */ @@ -323,7 +334,6 @@ 08B91D9B1AC73B8A00335131 /* AudioDecoder.cpp in Sources */, 08894F291AEAA5D7007AAF90 /* bits.c in Sources */, 081FFB191ADF803800673073 /* FlacDependencies.c in Sources */, - 08B91D9F1AC73B8A00335131 /* Main.cpp in Sources */, 0804D13F1AE69F0100F4B1FD /* OpusDependencies.c in Sources */, 08B91DA01AC73B8A00335131 /* VorbisDecoder.cpp in Sources */, 08894F2B1AEAA5D7007AAF90 /* extra2.c in Sources */, @@ -431,6 +441,8 @@ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; CLANG_CXX_LIBRARY = "libc++"; CLANG_ENABLE_MODULES = YES; + EXECUTABLE_EXTENSION = a; + EXECUTABLE_PREFIX = ""; GCC_CHAR_IS_UNSIGNED_CHAR = NO; GCC_C_LANGUAGE_STANDARD = gnu99; GCC_ENABLE_BUILTIN_FUNCTIONS = YES; @@ -475,6 +487,8 @@ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; CLANG_CXX_LIBRARY = "libc++"; CLANG_ENABLE_MODULES = YES; + EXECUTABLE_EXTENSION = a; + EXECUTABLE_PREFIX = ""; GCC_CHAR_IS_UNSIGNED_CHAR = NO; GCC_C_LANGUAGE_STANDARD = gnu99; GCC_ENABLE_BUILTIN_FUNCTIONS = YES; diff --git a/libnyquist.xcodeproj/xcshareddata/xcschemes/libnyquist.xcscheme b/libnyquist.xcodeproj/xcshareddata/xcschemes/libnyquist.xcscheme index 6c6b053..438e1db 100644 --- a/libnyquist.xcodeproj/xcshareddata/xcschemes/libnyquist.xcscheme +++ b/libnyquist.xcodeproj/xcshareddata/xcschemes/libnyquist.xcscheme @@ -15,7 +15,7 @@ @@ -33,7 +33,7 @@ @@ -49,16 +49,15 @@ ignoresPersistentStateOnLaunch = "NO" debugDocumentVersioning = "YES" allowLocationSimulation = "YES"> - + - + @@ -73,7 +72,7 @@