blob: 162b4fe227f75097a498b4f49d42fcb7c7bd1182 [file] [log] [blame]
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http://swift.org/LICENSE.txt for license information
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
//
/* CFBundle_BinaryTypes.h
Copyright (c) 1999-2015, Apple Inc. All rights reserved.
*/
#if !defined(__COREFOUNDATION_CFBUNDLE_BINARYTYPES__)
#define __COREFOUNDATION_CFBUNDLE_BINARYTYPES__ 1
CF_EXTERN_C_BEGIN
#if DEPLOYMENT_TARGET_MACOSX
#define BINARY_SUPPORT_DYLD 1
#define BINARY_SUPPORT_DLFCN 1
#define USE_DYLD_PRIV 0
#elif DEPLOYMENT_TARGET_EMBEDDED || DEPLOYMENT_TARGET_EMBEDDED_MINI
#define BINARY_SUPPORT_DYLD 1
#define BINARY_SUPPORT_DLFCN 1
#define USE_DYLD_PRIV 1
#elif DEPLOYMENT_TARGET_WINDOWS
#define BINARY_SUPPORT_DLL 1
#elif DEPLOYMENT_TARGET_LINUX || DEPLOYMENT_TARGET_FREEBSD
#define BINARY_SUPPORT_DLFCN 1
#else
#error Unknown or unspecified DEPLOYMENT_TARGET
#endif
typedef enum {
__CFBundleUnknownBinary,
__CFBundleCFMBinary,
__CFBundleDYLDExecutableBinary,
__CFBundleDYLDBundleBinary,
__CFBundleDYLDFrameworkBinary,
__CFBundleDLLBinary,
__CFBundleUnreadableBinary,
__CFBundleNoBinary,
__CFBundleELFBinary
} __CFPBinaryType;
/* Intended for eventual public consumption */
typedef enum {
kCFBundleOtherExecutableType = 0,
kCFBundleMachOExecutableType,
kCFBundlePEFExecutableType,
kCFBundleELFExecutableType,
kCFBundleDLLExecutableType
} CFBundleExecutableType;
CF_EXTERN_C_END
#endif /* ! __COREFOUNDATION_CFBUNDLE_BINARYTYPES__ */