|
| 1 | +//===--- XcodeToolchainPackage.xcconfig -----------------------------------===// |
| 2 | +// |
| 3 | +// This source file is part of the Swift.org open source project |
| 4 | +// |
| 5 | +// Copyright (c) 2018 Apple Inc. and the Swift project authors |
| 6 | +// Licensed under Apache License v2.0 with Runtime Library Exception |
| 7 | +// |
| 8 | +// See http://swift.org/LICENSE.txt for license information |
| 9 | +// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors |
| 10 | +// |
| 11 | +//===----------------------------------------------------------------------===// |
| 12 | +// |
| 13 | +// This file contains build settings related to the "XcodeToolchain" package, |
| 14 | +// including the appropriate install paths. |
| 15 | +// |
| 16 | +//===----------------------------------------------------------------------===// |
| 17 | + |
| 18 | +// MARK: - Installation Directories |
| 19 | + |
| 20 | +// TOOLCHAIN_INSTALL_DIR_IS_EMPTY: YES if the TOOLCHAIN_INSTALL_DIR build setting is empty; NO otherwise |
| 21 | +TOOLCHAIN_INSTALL_DIR_IS_EMPTY = $(TOOLCHAIN_INSTALL_DIR_IS_EMPTY_$(TOOLCHAIN_INSTALL_DIR_IS_EMPTY_IMPL)) |
| 22 | +TOOLCHAIN_INSTALL_DIR_IS_EMPTY_YES = YES |
| 23 | +TOOLCHAIN_INSTALL_DIR_IS_EMPTY_NO = NO |
| 24 | +TOOLCHAIN_INSTALL_DIR_IS_EMPTY_ = NO |
| 25 | + |
| 26 | +TOOLCHAIN_INSTALL_DIR_IS_EMPTY_IMPL = $(TOOLCHAIN_INSTALL_DIR_IS_EMPTY_IMPL_$(TOOLCHAIN_INSTALL_DIR)) |
| 27 | +TOOLCHAIN_INSTALL_DIR_IS_EMPTY_IMPL_ = YES |
| 28 | + |
| 29 | +// DT_TOOLCHAIN_DIR_IS_EMPTY: YES if the DT_TOOLCHAIN_DIR build setting is empty; NO otherwise |
| 30 | +DT_TOOLCHAIN_DIR_IS_EMPTY = $(DT_TOOLCHAIN_DIR_IS_EMPTY_$(DT_TOOLCHAIN_DIR_IS_EMPTY_IMPL)) |
| 31 | +DT_TOOLCHAIN_DIR_IS_EMPTY_YES = YES |
| 32 | +DT_TOOLCHAIN_DIR_IS_EMPTY_NO = NO |
| 33 | +DT_TOOLCHAIN_DIR_IS_EMPTY_ = NO |
| 34 | + |
| 35 | +DT_TOOLCHAIN_DIR_IS_EMPTY_IMPL = $(DT_TOOLCHAIN_DIR_IS_EMPTY_IMPL_$(DT_TOOLCHAIN_DIR)) |
| 36 | +DT_TOOLCHAIN_DIR_IS_EMPTY_IMPL_ = YES |
| 37 | + |
| 38 | +// PGS_XCTOOLCHAIN_DIR: the path to the xctoolchain into which content should be installed. |
| 39 | +// Set to TOOLCHAIN_INSTALL_DIR if non-empty, falling back to DT_TOOLCHAIN_DIR or a hard-coded path otherwise. |
| 40 | +PGS_XCTOOLCHAIN_DIR = $(PGS_XCTOOLCHAIN_DIR_$(TOOLCHAIN_INSTALL_DIR_IS_EMPTY)) |
| 41 | +PGS_XCTOOLCHAIN_DIR_NO = $(TOOLCHAIN_INSTALL_DIR) |
| 42 | +PGS_XCTOOLCHAIN_DIR_YES = $(PGS_XCTOOLCHAIN_DIR_YES_$(DT_TOOLCHAIN_DIR_IS_EMPTY)) |
| 43 | +PGS_XCTOOLCHAIN_DIR_YES_NO = $(DT_TOOLCHAIN_DIR) |
| 44 | +PGS_XCTOOLCHAIN_DIR_YES_YES = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain |
| 45 | + |
| 46 | +// PGS_XCTOOLCHAIN_DEVELOPER_DIR: the path to the Developer directory inside of the xctoolchain into which content should be installed. |
| 47 | +PGS_XCTOOLCHAIN_DEVELOPER_DIR = $(PGS_XCTOOLCHAIN_DIR)/Developer |
| 48 | + |
| 49 | +// PGS_XCTOOLCHAIN_PLATFORM_DIR: the path to the per-platform directory inside of the xctoolchain into which content should be installed. |
| 50 | +PGS_XCTOOLCHAIN_PLATFORM_DIR = $(PGS_XCTOOLCHAIN_DEVELOPER_DIR)/Platforms/$(PGS_PLATFORM_DIR_NAME) |
| 51 | + |
| 52 | +// PGS_PLATFORM_DIR_NAME: The name of the .platform directory for a given PLATFORM_NAME. |
| 53 | +PGS_PLATFORM_DIR_NAME = $(PGS_PLATFORM_DIR_NAME_$(PLATFORM_NAME)) |
| 54 | +PGS_PLATFORM_DIR_NAME_macosx = MacOSX.platform |
| 55 | +PGS_PLATFORM_DIR_NAME_iphoneos = iPhoneOS.platform |
| 56 | +PGS_PLATFORM_DIR_NAME_iphonesimulator = iPhoneSimulator.platform |
| 57 | +PGS_PLATFORM_DIR_NAME_appletvos = AppleTVOS.platform |
| 58 | +PGS_PLATFORM_DIR_NAME_appletvsimulator = AppleTVSimulator.platform |
| 59 | +PGS_PLATFORM_DIR_NAME_watchos = WatchOS.platform |
| 60 | +PGS_PLATFORM_DIR_NAME_watchsimulator = WatchSimulator.platform |
| 61 | + |
| 62 | +// PGS_XCTOOLCHAIN_PLATFORM_LIBRARY_DIR: the per-platform Developer directory inside of the xctoolchain into which content may be installed. |
| 63 | +PGS_XCTOOLCHAIN_PLATFORM_DEVELOPER_DIR = $(PGS_XCTOOLCHAIN_PLATFORM_DIR)/Developer |
| 64 | + |
| 65 | +// PGS_XCTOOLCHAIN_PLATFORM_LIBRARY_DIR: the per-platform Developer/Library directory inside of the xctoolchain into which content may be installed. |
| 66 | +PGS_XCTOOLCHAIN_PLATFORM_DEVELOPER_LIBRARY_DIR = $(PGS_XCTOOLCHAIN_PLATFORM_DEVELOPER_DIR)/Library |
| 67 | + |
| 68 | +// PGS_XCTOOLCHAIN_PLATFORM_FRAMEWORKS_DIR: the per-platform directory inside of the xctoolchain into which content should be installed for public frameworks. |
| 69 | +PGS_XCTOOLCHAIN_PLATFORM_DEVELOPER_FRAMEWORKS_DIR = $(PGS_XCTOOLCHAIN_PLATFORM_DEVELOPER_LIBRARY_DIR)/Frameworks |
| 70 | + |
| 71 | +// PGS_XCTOOLCHAIN_PLATFORM_PRIVATEFRAMEWORKS_DIR: the per-platform directory inside of the xctoolchain into which content should be installed for private frameworks. |
| 72 | +PGS_XCTOOLCHAIN_PLATFORM_DEVELOPER_PRIVATEFRAMEWORKS_DIR = $(PGS_XCTOOLCHAIN_PLATFORM_DEVELOPER_LIBRARY_DIR)/PrivateFrameworks |
| 73 | + |
| 74 | +// Install Frameworks and PrivateFrameworks into the per-platform directory in the toolchain. |
| 75 | +PGS_XcodeToolchain_FRAMEWORKS_DIR_FOR_INSTALL = $(PGS_XCTOOLCHAIN_PLATFORM_DEVELOPER_FRAMEWORKS_DIR) |
| 76 | +PGS_XcodeToolchain_PRIVATEFRAMEWORKS_DIR_FOR_INSTALL = $(PGS_XCTOOLCHAIN_PLATFORM_DEVELOPER_PRIVATEFRAMEWORKS_DIR) |
| 77 | + |
| 78 | +// MARK: Runpath Search Paths |
| 79 | + |
| 80 | +PGS_XcodeToolchain_SHALLOW_FRAMEWORK_RUNPATH_SEARCH_PATHS = @loader_path/../ @loader_path/../../PrivateFrameworks/ @loader_path/../../../../../../../usr/lib/swift/$(PLATFORM_NAME)/ |
| 81 | +PGS_XcodeToolchain_SHALLOW_PRIVATE_FRAMEWORK_RUNPATH_SEARCH_PATHS = @loader_path/../ @loader_path/../../Frameworks/ @loader_path/../../../../../../../usr/lib/swift/$(PLATFORM_NAME)/ |
| 82 | + |
| 83 | +PGS_XcodeToolchain_VERSIONED_FRAMEWORK_RUNPATH_SEARCH_PATHS = @loader_path/../../../ @loader_path/../../../../PrivateFrameworks/ @loader_path/../../../../../../../../../usr/lib/swift/$(PLATFORM_NAME)/ |
| 84 | +PGS_XcodeToolchain_VERSIONED_PRIVATE_FRAMEWORK_RUNPATH_SEARCH_PATHS = @loader_path/../../../ @loader_path/../../../../Frameworks/ @loader_path/../../../../../../../../../usr/lib/swift/$(PLATFORM_NAME)/ |
0 commit comments