1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103
|
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift open source project
//
// Copyright (c) 2025 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
//
//===----------------------------------------------------------------------===//
(
{
Domain = generic-unix;
Type = Architecture;
Identifier = Standard;
Name = "Standard Architectures";
Description = "Standard architectures";
ArchitectureSetting = "ARCHS_STANDARD";
RealArchitectures = (
"$(VALID_ARCHS)"
);
SortNumber = 0;
},
// Test type bundle (bodged to be a tool)
{
Domain = generic-unix;
Type = ProductType;
Identifier = com.apple.product-type.bundle.unit-test;
Class = PBXToolProductType;
Name = "Command-line Tool";
Description = "Standalone command-line tool";
DefaultTargetName = "Command-line Tool";
DefaultBuildProperties = {
FULL_PRODUCT_NAME = "$(EXECUTABLE_NAME)";
EXECUTABLE_PREFIX = "";
EXECUTABLE_SUFFIX = ".xctest";
REZ_EXECUTABLE = YES;
INSTALL_PATH = "/usr/local/bin";
FRAMEWORK_FLAG_PREFIX = "-framework";
LIBRARY_FLAG_PREFIX = "-l";
LIBRARY_FLAG_NOSPACE = YES;
GCC_DYNAMIC_NO_PIC = NO;
LD_NO_PIE = NO;
GCC_SYMBOLS_PRIVATE_EXTERN = YES;
GCC_INLINES_ARE_PRIVATE_EXTERN = YES;
STRIP_STYLE = "all";
CODE_SIGNING_ALLOWED = NO;
IsUnitTest = YES;
SWIFT_FORCE_DYNAMIC_LINK_STDLIB = YES;
SWIFT_FORCE_STATIC_LINK_STDLIB = NO;
// Avoid warning for executable types
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO;
GENERATE_TEST_ENTRY_POINT = YES;
GENERATED_TEST_ENTRY_POINT_PATH = "$(DERIVED_SOURCES_DIR)/test_entry_point.swift";
};
PackageTypes = (
com.apple.package-type.mach-o-executable // default
);
},
// Dynamic library (masquerading as a framework to placate Swift's project structure)
{
Domain = generic-unix;
Type = ProductType;
Identifier = com.apple.product-type.framework;
BasedOn = default:com.apple.product-type.framework;
Class = PBXDynamicLibraryProductType;
Name = "Dynamic Library";
Description = "Dynamic library";
DefaultTargetName = "Dynamic Library";
DefaultBuildProperties = {
FULL_PRODUCT_NAME = "$(EXECUTABLE_NAME)";
MACH_O_TYPE = "mh_dylib";
REZ_EXECUTABLE = YES;
EXECUTABLE_SUFFIX = ".$(EXECUTABLE_EXTENSION)";
EXECUTABLE_EXTENSION = "so";
INSTALL_PATH = "/usr/local/lib";
LD_DYLIB_INSTALL_NAME = "$(EXECUTABLE_PATH)";
FRAMEWORK_FLAG_PREFIX = "-framework";
GCC_DYNAMIC_NO_PIC = NO;
LD_NO_PIE = NO;
LIBRARY_FLAG_PREFIX = "-l";
LIBRARY_FLAG_NOSPACE = YES;
STRIP_STYLE = "debugging";
GCC_INLINES_ARE_PRIVATE_EXTERN = YES;
CODE_SIGNING_ALLOWED = NO;
MODULES_FOLDER_PATH = "";
};
PackageTypes = (
com.apple.package-type.mach-o-dylib // default
);
},
{
Domain = generic-unix;
Type = ProductType;
Identifier = com.apple.product-type.framework.static;
BasedOn = com.apple.product-type.framework;
},
)
|