make targets for examples depend on library target. Generate library named libusb...
authorSean McBride <sean@rogue-research.com>
Wed, 31 Oct 2012 17:18:32 +0000 (13:18 -0400)
committerhjelmn <Nathan Hjelm hjelmn@cs.unm.edu>
Tue, 30 Jul 2013 16:43:34 +0000 (10:43 -0600)
Conflicts:
Xcode/libusbx.xcodeproj/project.pbxproj

Xcode/common.xcconfig [new file with mode: 0644]
Xcode/debug.xcconfig [new file with mode: 0644]
Xcode/libusbx.xcconfig [new file with mode: 0644]
Xcode/libusbx.xcodeproj/project.pbxproj
Xcode/libusbx_debug.xcconfig [new file with mode: 0644]
Xcode/libusbx_release.xcconfig [new file with mode: 0644]
Xcode/release.xcconfig [new file with mode: 0644]
libusb/version_nano.h

diff --git a/Xcode/common.xcconfig b/Xcode/common.xcconfig
new file mode 100644 (file)
index 0000000..f64cd6d
--- /dev/null
@@ -0,0 +1,40 @@
+//
+// libusbx Xcode configuration file
+// Copyright © 2012 Pete Batard <pete@akeo.ie>
+// For more information, please visit: <http://libusbx.org>
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+
+// libusbx does not follow C99 strict aliasing rules, so disable it.
+GCC_STRICT_ALIASING = NO
+
+// Use C99 dialect.
+GCC_C_LANGUAGE_STANDARD = c99
+
+// Compiler warnings.
+CLANG_WARN_EMPTY_BODY = YES
+GCC_WARN_64_TO_32_BIT_CONVERSION = YES
+GCC_WARN_ABOUT_RETURN_TYPE = YES
+GCC_WARN_UNINITIALIZED_AUTOS = YES
+GCC_WARN_FOUR_CHARACTER_CONSTANTS = YES
+GCC_WARN_SHADOW = YES
+GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = YES
+GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = YES
+GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES
+GCC_WARN_ABOUT_MISSING_NEWLINE = YES
+GCC_WARN_UNKNOWN_PRAGMAS = YES
+GCC_WARN_UNUSED_FUNCTION = YES
+GCC_WARN_UNUSED_LABEL = YES
+GCC_WARN_UNUSED_VARIABLE = YES
diff --git a/Xcode/debug.xcconfig b/Xcode/debug.xcconfig
new file mode 100644 (file)
index 0000000..73dc083
--- /dev/null
@@ -0,0 +1,29 @@
+//
+// libusbx Xcode configuration file
+// Copyright © 2012 Pete Batard <pete@akeo.ie>
+// For more information, please visit: <http://libusbx.org>
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+
+#include "common.xcconfig"
+
+// Embed debug symbols in binary itself.
+DEBUG_INFORMATION_FORMAT = dwarf
+
+// No optimizations in debug.
+GCC_OPTIMIZATION_LEVEL = 0
+
+// 
+GCC_PREPROCESSOR_DEFINITIONS = $(inherited) DEBUG=1
diff --git a/Xcode/libusbx.xcconfig b/Xcode/libusbx.xcconfig
new file mode 100644 (file)
index 0000000..9c6385a
--- /dev/null
@@ -0,0 +1,21 @@
+//
+// libusbx Xcode configuration file
+// Copyright © 2012 Pete Batard <pete@akeo.ie>
+// For more information, please visit: <http://libusbx.org>
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+
+// For backwards compatibility with libusb, use the same filename.
+PRODUCT_NAME = libusb-1.0.0
index 5bf60e2..1397cee 100644 (file)
@@ -3,7 +3,7 @@
        archiveVersion = 1;
        classes = {
        };
-       objectVersion = 46;
+       objectVersion = 45;
        objects = {
 
 /* Begin PBXAggregateTarget section */
                008FBFA91628B88000BC5BE2 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 008FBFA81628B88000BC5BE2 /* IOKit.framework */; };
                008FBFAB1628B8CB00BC5BE2 /* libobjc.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 008FBFAA1628B8CB00BC5BE2 /* libobjc.dylib */; };
                008FBFEF1628BA3500BC5BE2 /* xusb.c in Sources */ = {isa = PBXBuildFile; fileRef = 008FBFED1628BA0E00BC5BE2 /* xusb.c */; };
-               008FBFF01628BA3A00BC5BE2 /* libusbx.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 008FBF311628B79300BC5BE2 /* libusbx.dylib */; };
+               008FBFF01628BA3A00BC5BE2 /* libusb-1.0.0.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 008FBF311628B79300BC5BE2 /* libusb-1.0.0.dylib */; };
                008FBFFF1628BB9600BC5BE2 /* dpfp.c in Sources */ = {isa = PBXBuildFile; fileRef = 008FBFD71628BA0E00BC5BE2 /* dpfp.c */; };
-               008FC0001628BBCD00BC5BE2 /* libusbx.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 008FBF311628B79300BC5BE2 /* libusbx.dylib */; };
+               008FC0001628BBCD00BC5BE2 /* libusb-1.0.0.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 008FBF311628B79300BC5BE2 /* libusb-1.0.0.dylib */; };
                008FC00F1628BBE400BC5BE2 /* dpfp_threaded.c in Sources */ = {isa = PBXBuildFile; fileRef = 008FBFDB1628BA0E00BC5BE2 /* dpfp_threaded.c */; };
-               008FC0101628BBE900BC5BE2 /* libusbx.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 008FBF311628B79300BC5BE2 /* libusbx.dylib */; };
+               008FC0101628BBE900BC5BE2 /* libusb-1.0.0.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 008FBF311628B79300BC5BE2 /* libusb-1.0.0.dylib */; };
                008FC01F1628BC1500BC5BE2 /* fxload.c in Sources */ = {isa = PBXBuildFile; fileRef = 008FBFE11628BA0E00BC5BE2 /* fxload.c */; };
-               008FC0201628BC1B00BC5BE2 /* libusbx.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 008FBF311628B79300BC5BE2 /* libusbx.dylib */; };
+               008FC0201628BC1B00BC5BE2 /* libusb-1.0.0.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 008FBF311628B79300BC5BE2 /* libusb-1.0.0.dylib */; };
                008FC0211628BC5200BC5BE2 /* ezusb.c in Sources */ = {isa = PBXBuildFile; fileRef = 008FBFDC1628BA0E00BC5BE2 /* ezusb.c */; };
                008FC0301628BC7400BC5BE2 /* listdevs.c in Sources */ = {isa = PBXBuildFile; fileRef = 008FBFE71628BA0E00BC5BE2 /* listdevs.c */; };
-               008FC0311628BC7800BC5BE2 /* libusbx.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 008FBF311628B79300BC5BE2 /* libusbx.dylib */; };
+               008FC0311628BC7800BC5BE2 /* libusb-1.0.0.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 008FBF311628B79300BC5BE2 /* libusb-1.0.0.dylib */; };
 /* End PBXBuildFile section */
 
 /* Begin PBXContainerItemProxy section */
                        remoteGlobalIDString = 008FC0251628BC6B00BC5BE2;
                        remoteInfo = listdevs;
                };
+               1443EE8B1641926D007E0579 /* PBXContainerItemProxy */ = {
+                       isa = PBXContainerItemProxy;
+                       containerPortal = 008FBF281628B79300BC5BE2 /* Project object */;
+                       proxyType = 1;
+                       remoteGlobalIDString = 008FBF301628B79300BC5BE2;
+                       remoteInfo = libusbx;
+               };
+               1443EE8D16419273007E0579 /* PBXContainerItemProxy */ = {
+                       isa = PBXContainerItemProxy;
+                       containerPortal = 008FBF281628B79300BC5BE2 /* Project object */;
+                       proxyType = 1;
+                       remoteGlobalIDString = 008FBF301628B79300BC5BE2;
+                       remoteInfo = libusbx;
+               };
+               1443EE8F16419276007E0579 /* PBXContainerItemProxy */ = {
+                       isa = PBXContainerItemProxy;
+                       containerPortal = 008FBF281628B79300BC5BE2 /* Project object */;
+                       proxyType = 1;
+                       remoteGlobalIDString = 008FBF301628B79300BC5BE2;
+                       remoteInfo = libusbx;
+               };
+               1443EE911641927A007E0579 /* PBXContainerItemProxy */ = {
+                       isa = PBXContainerItemProxy;
+                       containerPortal = 008FBF281628B79300BC5BE2 /* Project object */;
+                       proxyType = 1;
+                       remoteGlobalIDString = 008FBF301628B79300BC5BE2;
+                       remoteInfo = libusbx;
+               };
+               1443EE931641927D007E0579 /* PBXContainerItemProxy */ = {
+                       isa = PBXContainerItemProxy;
+                       containerPortal = 008FBF281628B79300BC5BE2 /* Project object */;
+                       proxyType = 1;
+                       remoteGlobalIDString = 008FBF301628B79300BC5BE2;
+                       remoteInfo = libusbx;
+               };
 /* End PBXContainerItemProxy section */
 
 /* Begin PBXCopyFilesBuildPhase section */
 /* End PBXCopyFilesBuildPhase section */
 
 /* Begin PBXFileReference section */
-               008FBF311628B79300BC5BE2 /* libusbx.dylib */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.dylib"; includeInIndex = 0; path = libusbx.dylib; sourceTree = BUILT_PRODUCTS_DIR; };
+               008FBF311628B79300BC5BE2 /* libusb-1.0.0.dylib */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.dylib"; includeInIndex = 0; path = "libusb-1.0.0.dylib"; sourceTree = BUILT_PRODUCTS_DIR; };
                008FBF541628B7E800BC5BE2 /* core.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = core.c; sourceTree = "<group>"; };
                008FBF551628B7E800BC5BE2 /* descriptor.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = descriptor.c; sourceTree = "<group>"; };
                008FBF561628B7E800BC5BE2 /* io.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = io.c; sourceTree = "<group>"; };
                008FC0051628BBDB00BC5BE2 /* dpfp_threaded */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = dpfp_threaded; sourceTree = BUILT_PRODUCTS_DIR; };
                008FC0151628BC0300BC5BE2 /* fxload */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = fxload; sourceTree = BUILT_PRODUCTS_DIR; };
                008FC0261628BC6B00BC5BE2 /* listdevs */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = listdevs; sourceTree = BUILT_PRODUCTS_DIR; };
+               1443EE8416417E63007E0579 /* common.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = common.xcconfig; sourceTree = SOURCE_ROOT; };
+               1443EE8516417E63007E0579 /* debug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = debug.xcconfig; sourceTree = SOURCE_ROOT; };
+               1443EE8616417E63007E0579 /* libusbx_debug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = libusbx_debug.xcconfig; sourceTree = SOURCE_ROOT; };
+               1443EE8716417E63007E0579 /* libusbx.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = libusbx.xcconfig; sourceTree = SOURCE_ROOT; };
+               1443EE8816417E63007E0579 /* release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = release.xcconfig; sourceTree = SOURCE_ROOT; };
+               1443EE8916417EA6007E0579 /* libusbx_release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = libusbx_release.xcconfig; sourceTree = SOURCE_ROOT; };
 /* End PBXFileReference section */
 
 /* Begin PBXFrameworksBuildPhase section */
                        isa = PBXFrameworksBuildPhase;
                        buildActionMask = 2147483647;
                        files = (
-                               008FBFF01628BA3A00BC5BE2 /* libusbx.dylib in Frameworks */,
+                               008FBFF01628BA3A00BC5BE2 /* libusb-1.0.0.dylib in Frameworks */,
                        );
                        runOnlyForDeploymentPostprocessing = 0;
                };
                        isa = PBXFrameworksBuildPhase;
                        buildActionMask = 2147483647;
                        files = (
-                               008FC0001628BBCD00BC5BE2 /* libusbx.dylib in Frameworks */,
+                               008FC0001628BBCD00BC5BE2 /* libusb-1.0.0.dylib in Frameworks */,
                        );
                        runOnlyForDeploymentPostprocessing = 0;
                };
                        isa = PBXFrameworksBuildPhase;
                        buildActionMask = 2147483647;
                        files = (
-                               008FC0101628BBE900BC5BE2 /* libusbx.dylib in Frameworks */,
+                               008FC0101628BBE900BC5BE2 /* libusb-1.0.0.dylib in Frameworks */,
                        );
                        runOnlyForDeploymentPostprocessing = 0;
                };
                        isa = PBXFrameworksBuildPhase;
                        buildActionMask = 2147483647;
                        files = (
-                               008FC0201628BC1B00BC5BE2 /* libusbx.dylib in Frameworks */,
+                               008FC0201628BC1B00BC5BE2 /* libusb-1.0.0.dylib in Frameworks */,
                        );
                        runOnlyForDeploymentPostprocessing = 0;
                };
                        isa = PBXFrameworksBuildPhase;
                        buildActionMask = 2147483647;
                        files = (
-                               008FC0311628BC7800BC5BE2 /* libusbx.dylib in Frameworks */,
+                               008FC0311628BC7800BC5BE2 /* libusb-1.0.0.dylib in Frameworks */,
                        );
                        runOnlyForDeploymentPostprocessing = 0;
                };
                008FBF261628B79300BC5BE2 = {
                        isa = PBXGroup;
                        children = (
-                               008FBFC81628BA0E00BC5BE2 /* examples */,
-                               008FBFAA1628B8CB00BC5BE2 /* libobjc.dylib */,
-                               008FBFA81628B88000BC5BE2 /* IOKit.framework */,
-                               008FBFA61628B87000BC5BE2 /* CoreFoundation.framework */,
+                               1443EE8316417DE3007E0579 /* xcconfig */,
                                008FBFA41628B84200BC5BE2 /* config.h */,
                                008FBF3B1628B7E800BC5BE2 /* libusb */,
+                               008FBFC81628BA0E00BC5BE2 /* examples */,
+                               1443EE8A16419057007E0579 /* Apple */,
                                008FBF321628B79300BC5BE2 /* Products */,
                        );
                        sourceTree = "<group>";
                008FBF321628B79300BC5BE2 /* Products */ = {
                        isa = PBXGroup;
                        children = (
-                               008FBF311628B79300BC5BE2 /* libusbx.dylib */,
+                               008FBF311628B79300BC5BE2 /* libusb-1.0.0.dylib */,
                                008FBFBD1628B9FE00BC5BE2 /* xusb */,
                                008FBFF51628BB8B00BC5BE2 /* dpfp */,
                                008FC0051628BBDB00BC5BE2 /* dpfp_threaded */,
                        path = ../examples;
                        sourceTree = "<group>";
                };
+               1443EE8316417DE3007E0579 /* xcconfig */ = {
+                       isa = PBXGroup;
+                       children = (
+                               1443EE8416417E63007E0579 /* common.xcconfig */,
+                               1443EE8516417E63007E0579 /* debug.xcconfig */,
+                               1443EE8816417E63007E0579 /* release.xcconfig */,
+                               1443EE8716417E63007E0579 /* libusbx.xcconfig */,
+                               1443EE8616417E63007E0579 /* libusbx_debug.xcconfig */,
+                               1443EE8916417EA6007E0579 /* libusbx_release.xcconfig */,
+                       );
+                       name = xcconfig;
+                       path = ../libusb;
+                       sourceTree = "<group>";
+               };
+               1443EE8A16419057007E0579 /* Apple */ = {
+                       isa = PBXGroup;
+                       children = (
+                               008FBFAA1628B8CB00BC5BE2 /* libobjc.dylib */,
+                               008FBFA81628B88000BC5BE2 /* IOKit.framework */,
+                               008FBFA61628B87000BC5BE2 /* CoreFoundation.framework */,
+                       );
+                       name = Apple;
+                       path = ../libusb;
+                       sourceTree = "<group>";
+               };
 /* End PBXGroup section */
 
 /* Begin PBXHeadersBuildPhase section */
                        );
                        name = libusbx;
                        productName = libusbx;
-                       productReference = 008FBF311628B79300BC5BE2 /* libusbx.dylib */;
+                       productReference = 008FBF311628B79300BC5BE2 /* libusb-1.0.0.dylib */;
                        productType = "com.apple.product-type.library.dynamic";
                };
                008FBFBC1628B9FE00BC5BE2 /* xusb */ = {
                        buildRules = (
                        );
                        dependencies = (
+                               1443EE941641927D007E0579 /* PBXTargetDependency */,
                        );
                        name = xusb;
                        productName = xusb;
                        buildRules = (
                        );
                        dependencies = (
+                               1443EE921641927A007E0579 /* PBXTargetDependency */,
                        );
                        name = dpfp;
                        productName = dpfp;
                        buildRules = (
                        );
                        dependencies = (
+                               1443EE9016419276007E0579 /* PBXTargetDependency */,
                        );
                        name = dpfp_threaded;
                        productName = dpfp_threaded;
                        buildRules = (
                        );
                        dependencies = (
+                               1443EE8E16419273007E0579 /* PBXTargetDependency */,
                        );
                        name = fxload;
                        productName = fxload;
                        buildRules = (
                        );
                        dependencies = (
+                               1443EE8C1641926D007E0579 /* PBXTargetDependency */,
                        );
                        name = listdevs;
                        productName = listdevs;
                                ORGANIZATIONNAME = libusbx;
                        };
                        buildConfigurationList = 008FBF2B1628B79300BC5BE2 /* Build configuration list for PBXProject "libusbx" */;
-                       compatibilityVersion = "Xcode 3.2";
+                       compatibilityVersion = "Xcode 3.1";
                        developmentRegion = English;
                        hasScannedForEncodings = 0;
                        knownRegions = (
                        target = 008FC0251628BC6B00BC5BE2 /* listdevs */;
                        targetProxy = 008FC0401628BC9A00BC5BE2 /* PBXContainerItemProxy */;
                };
+               1443EE8C1641926D007E0579 /* PBXTargetDependency */ = {
+                       isa = PBXTargetDependency;
+                       target = 008FBF301628B79300BC5BE2 /* libusbx */;
+                       targetProxy = 1443EE8B1641926D007E0579 /* PBXContainerItemProxy */;
+               };
+               1443EE8E16419273007E0579 /* PBXTargetDependency */ = {
+                       isa = PBXTargetDependency;
+                       target = 008FBF301628B79300BC5BE2 /* libusbx */;
+                       targetProxy = 1443EE8D16419273007E0579 /* PBXContainerItemProxy */;
+               };
+               1443EE9016419276007E0579 /* PBXTargetDependency */ = {
+                       isa = PBXTargetDependency;
+                       target = 008FBF301628B79300BC5BE2 /* libusbx */;
+                       targetProxy = 1443EE8F16419276007E0579 /* PBXContainerItemProxy */;
+               };
+               1443EE921641927A007E0579 /* PBXTargetDependency */ = {
+                       isa = PBXTargetDependency;
+                       target = 008FBF301628B79300BC5BE2 /* libusbx */;
+                       targetProxy = 1443EE911641927A007E0579 /* PBXContainerItemProxy */;
+               };
+               1443EE941641927D007E0579 /* PBXTargetDependency */ = {
+                       isa = PBXTargetDependency;
+                       target = 008FBF301628B79300BC5BE2 /* libusbx */;
+                       targetProxy = 1443EE931641927D007E0579 /* PBXContainerItemProxy */;
+               };
 /* End PBXTargetDependency section */
 
 /* Begin XCBuildConfiguration section */
                008FBF331628B79300BC5BE2 /* Debug */ = {
                        isa = XCBuildConfiguration;
                        buildSettings = {
-                               ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
-                               CLANG_WARN_EMPTY_BODY = YES;
-                               CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
-                               COPY_PHASE_STRIP = 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;
-                               GCC_WARN_UNINITIALIZED_AUTOS = YES;
-                               GCC_WARN_UNUSED_VARIABLE = YES;
                        };
                        name = Debug;
                };
                008FBF341628B79300BC5BE2 /* Release */ = {
                        isa = XCBuildConfiguration;
                        buildSettings = {
-                               ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
-                               CLANG_WARN_EMPTY_BODY = YES;
-                               CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
-                               DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
-                               GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
-                               GCC_WARN_ABOUT_RETURN_TYPE = YES;
-                               GCC_WARN_UNINITIALIZED_AUTOS = YES;
-                               GCC_WARN_UNUSED_VARIABLE = YES;
                        };
                        name = Release;
                };
                008FBF361628B79300BC5BE2 /* Debug */ = {
                        isa = XCBuildConfiguration;
+                       baseConfigurationReference = 1443EE8616417E63007E0579 /* libusbx_debug.xcconfig */;
                        buildSettings = {
-                               LIBRARY_SEARCH_PATHS = (
-                                       "$(inherited)",
-                                       "\"$(SRCROOT)/libusb/.libs\"",
-                               );
-                               PRODUCT_NAME = "$(TARGET_NAME)";
                        };
                        name = Debug;
                };
                008FBF371628B79300BC5BE2 /* Release */ = {
                        isa = XCBuildConfiguration;
+                       baseConfigurationReference = 1443EE8916417EA6007E0579 /* libusbx_release.xcconfig */;
                        buildSettings = {
-                               LIBRARY_SEARCH_PATHS = (
-                                       "$(inherited)",
-                                       "\"$(SRCROOT)/libusb/.libs\"",
-                               );
-                               PRODUCT_NAME = "$(TARGET_NAME)";
                        };
                        name = Release;
                };
                008FBFC41628B9FE00BC5BE2 /* Debug */ = {
                        isa = XCBuildConfiguration;
+                       baseConfigurationReference = 1443EE8516417E63007E0579 /* debug.xcconfig */;
                        buildSettings = {
                                PRODUCT_NAME = "$(TARGET_NAME)";
                        };
                };
                008FBFC51628B9FE00BC5BE2 /* Release */ = {
                        isa = XCBuildConfiguration;
+                       baseConfigurationReference = 1443EE8816417E63007E0579 /* release.xcconfig */;
                        buildSettings = {
                                PRODUCT_NAME = "$(TARGET_NAME)";
                        };
                };
                008FBFFD1628BB8C00BC5BE2 /* Debug */ = {
                        isa = XCBuildConfiguration;
+                       baseConfigurationReference = 1443EE8516417E63007E0579 /* debug.xcconfig */;
                        buildSettings = {
                                PRODUCT_NAME = "$(TARGET_NAME)";
                        };
                };
                008FBFFE1628BB8C00BC5BE2 /* Release */ = {
                        isa = XCBuildConfiguration;
+                       baseConfigurationReference = 1443EE8816417E63007E0579 /* release.xcconfig */;
                        buildSettings = {
                                PRODUCT_NAME = "$(TARGET_NAME)";
                        };
                };
                008FC00D1628BBDB00BC5BE2 /* Debug */ = {
                        isa = XCBuildConfiguration;
+                       baseConfigurationReference = 1443EE8516417E63007E0579 /* debug.xcconfig */;
                        buildSettings = {
                                PRODUCT_NAME = "$(TARGET_NAME)";
                        };
                };
                008FC00E1628BBDB00BC5BE2 /* Release */ = {
                        isa = XCBuildConfiguration;
+                       baseConfigurationReference = 1443EE8816417E63007E0579 /* release.xcconfig */;
                        buildSettings = {
                                PRODUCT_NAME = "$(TARGET_NAME)";
                        };
                };
                008FC01D1628BC0300BC5BE2 /* Debug */ = {
                        isa = XCBuildConfiguration;
+                       baseConfigurationReference = 1443EE8516417E63007E0579 /* debug.xcconfig */;
                        buildSettings = {
                                PRODUCT_NAME = "$(TARGET_NAME)";
                        };
                };
                008FC01E1628BC0300BC5BE2 /* Release */ = {
                        isa = XCBuildConfiguration;
+                       baseConfigurationReference = 1443EE8816417E63007E0579 /* release.xcconfig */;
                        buildSettings = {
                                PRODUCT_NAME = "$(TARGET_NAME)";
                        };
                };
                008FC02E1628BC6B00BC5BE2 /* Debug */ = {
                        isa = XCBuildConfiguration;
+                       baseConfigurationReference = 1443EE8516417E63007E0579 /* debug.xcconfig */;
                        buildSettings = {
                                PRODUCT_NAME = "$(TARGET_NAME)";
                        };
                };
                008FC02F1628BC6B00BC5BE2 /* Release */ = {
                        isa = XCBuildConfiguration;
+                       baseConfigurationReference = 1443EE8816417E63007E0579 /* release.xcconfig */;
                        buildSettings = {
                                PRODUCT_NAME = "$(TARGET_NAME)";
                        };
diff --git a/Xcode/libusbx_debug.xcconfig b/Xcode/libusbx_debug.xcconfig
new file mode 100644 (file)
index 0000000..9144bc2
--- /dev/null
@@ -0,0 +1,21 @@
+//
+// libusbx Xcode configuration file
+// Copyright © 2012 Pete Batard <pete@akeo.ie>
+// For more information, please visit: <http://libusbx.org>
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+
+#include "debug.xcconfig"
+#include "libusbx.xcconfig"
diff --git a/Xcode/libusbx_release.xcconfig b/Xcode/libusbx_release.xcconfig
new file mode 100644 (file)
index 0000000..83e36af
--- /dev/null
@@ -0,0 +1,21 @@
+//
+// libusbx Xcode configuration file
+// Copyright © 2012 Pete Batard <pete@akeo.ie>
+// For more information, please visit: <http://libusbx.org>
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+
+#include "release.xcconfig"
+#include "libusbx.xcconfig"
diff --git a/Xcode/release.xcconfig b/Xcode/release.xcconfig
new file mode 100644 (file)
index 0000000..2bbc1a8
--- /dev/null
@@ -0,0 +1,29 @@
+//
+// libusbx Xcode configuration file
+// Copyright © 2012 Pete Batard <pete@akeo.ie>
+// For more information, please visit: <http://libusbx.org>
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+
+#include "common.xcconfig"
+
+// Put debug symbols in separate .dym file.
+DEBUG_INFORMATION_FORMAT = dwarf-with-dsym
+
+// Optimizations in release.
+GCC_OPTIMIZATION_LEVEL = s
+
+// Define NDEBUG so asserts go away in release.
+GCC_PREPROCESSOR_DEFINITIONS = $(inherited) NDEBUG=1
index 9ac0ec3..1198722 100644 (file)
@@ -1 +1 @@
-#define LIBUSB_NANO 10791
+#define LIBUSB_NANO 10792