mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Build System: build-script] Re-organized the build_swift module to maintain a similar nested structure to swift_build_support and other Python scripting that already exists in the project.
This commit is contained in:
@@ -30,7 +30,7 @@ import os
|
||||
import platform
|
||||
import sys
|
||||
|
||||
from build_swift import argparse, defaults
|
||||
from build_swift.build_swift import argparse, defaults
|
||||
from swift_build_support.swift_build_support import (
|
||||
shell,
|
||||
xcrun,
|
||||
|
||||
@@ -19,10 +19,10 @@ import platform
|
||||
import sys
|
||||
import time
|
||||
|
||||
from build_swift import defaults
|
||||
from build_swift import driver_arguments
|
||||
from build_swift import presets
|
||||
from build_swift.migration import migrate_swift_sdks
|
||||
from build_swift.build_swift import defaults
|
||||
from build_swift.build_swift import driver_arguments
|
||||
from build_swift.build_swift import presets
|
||||
from build_swift.build_swift.migration import migrate_swift_sdks
|
||||
|
||||
from swift_build_support.swift_build_support import (
|
||||
arguments,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# This source file is part of the Swift.org open source project
|
||||
#
|
||||
# Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
|
||||
# Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors
|
||||
# Licensed under Apache License v2.0 with Runtime Library Exception
|
||||
#
|
||||
# See https://swift.org/LICENSE.txt for license information
|
||||
|
||||
7
utils/build_swift/build_swift/__init__.py
Normal file
7
utils/build_swift/build_swift/__init__.py
Normal file
@@ -0,0 +1,7 @@
|
||||
# This source file is part of the Swift.org open source project
|
||||
#
|
||||
# Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors
|
||||
# Licensed under Apache License v2.0 with Runtime Library Exception
|
||||
#
|
||||
# See https://swift.org/LICENSE.txt for license information
|
||||
# See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
|
||||
@@ -1,6 +1,6 @@
|
||||
# This source file is part of the Swift.org open source project
|
||||
#
|
||||
# Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
|
||||
# Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors
|
||||
# Licensed under Apache License v2.0 with Runtime Library Exception
|
||||
#
|
||||
# See https://swift.org/LICENSE.txt for license information
|
||||
@@ -1,6 +1,6 @@
|
||||
# This source file is part of the Swift.org open source project
|
||||
#
|
||||
# Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
|
||||
# Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors
|
||||
# Licensed under Apache License v2.0 with Runtime Library Exception
|
||||
#
|
||||
# See https://swift.org/LICENSE.txt for license information
|
||||
@@ -1,6 +1,6 @@
|
||||
# This source file is part of the Swift.org open source project
|
||||
#
|
||||
# Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
|
||||
# Copyright (c) 2014 - 2020 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
|
||||
@@ -1,6 +1,6 @@
|
||||
# This source file is part of the Swift.org open source project
|
||||
#
|
||||
# Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
|
||||
# Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors
|
||||
# Licensed under Apache License v2.0 with Runtime Library Exception
|
||||
#
|
||||
# See https://swift.org/LICENSE.txt for license information
|
||||
@@ -1,6 +1,6 @@
|
||||
# This source file is part of the Swift.org open source project
|
||||
#
|
||||
# Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
|
||||
# Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors
|
||||
# Licensed under Apache License v2.0 with Runtime Library Exception
|
||||
#
|
||||
# See https://swift.org/LICENSE.txt for license information
|
||||
@@ -1,6 +1,6 @@
|
||||
# This source file is part of the Swift.org open source project
|
||||
#
|
||||
# Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
|
||||
# Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors
|
||||
# Licensed under Apache License v2.0 with Runtime Library Exception
|
||||
#
|
||||
# See https://swift.org/LICENSE.txt for license information
|
||||
@@ -1,6 +1,6 @@
|
||||
# This source file is part of the Swift.org open source project
|
||||
#
|
||||
# Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
|
||||
# Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors
|
||||
# Licensed under Apache License v2.0 with Runtime Library Exception
|
||||
#
|
||||
# See https://swift.org/LICENSE.txt for license information
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# This source file is part of the Swift.org open source project
|
||||
#
|
||||
# Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
|
||||
# Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors
|
||||
# Licensed under Apache License v2.0 with Runtime Library Exception
|
||||
#
|
||||
# See https://swift.org/LICENSE.txt for license information
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# This source file is part of the Swift.org open source project
|
||||
#
|
||||
# Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
|
||||
# Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors
|
||||
# Licensed under Apache License v2.0 with Runtime Library Exception
|
||||
#
|
||||
# See https://swift.org/LICENSE.txt for license information
|
||||
@@ -8,8 +8,8 @@
|
||||
|
||||
|
||||
from ..utils import TestCase, redirect_stderr
|
||||
from ...argparse import (ArgumentParser, BoolType, Nargs, PathType, SUPPRESS,
|
||||
actions)
|
||||
from ...build_swift.argparse import (
|
||||
ArgumentParser, BoolType, Nargs, PathType, SUPPRESS, actions)
|
||||
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# This source file is part of the Swift.org open source project
|
||||
#
|
||||
# Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
|
||||
# Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors
|
||||
# Licensed under Apache License v2.0 with Runtime Library Exception
|
||||
#
|
||||
# See https://swift.org/LICENSE.txt for license information
|
||||
@@ -10,7 +10,7 @@
|
||||
from argparse import _ArgumentGroup, _MutuallyExclusiveGroup
|
||||
|
||||
from ..utils import TestCase
|
||||
from ...argparse import ArgumentParser, actions
|
||||
from ...build_swift.argparse import ArgumentParser, actions
|
||||
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# This source file is part of the Swift.org open source project
|
||||
#
|
||||
# Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
|
||||
# Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors
|
||||
# Licensed under Apache License v2.0 with Runtime Library Exception
|
||||
#
|
||||
# See https://swift.org/LICENSE.txt for license information
|
||||
@@ -11,7 +11,7 @@ import os.path
|
||||
import platform
|
||||
|
||||
from ..utils import TestCase
|
||||
from ...argparse import ArgumentTypeError, types
|
||||
from ...build_swift.argparse import ArgumentTypeError, types
|
||||
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# This source file is part of the Swift.org open source project
|
||||
#
|
||||
# Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
|
||||
# Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors
|
||||
# Licensed under Apache License v2.0 with Runtime Library Exception
|
||||
#
|
||||
# See https://swift.org/LICENSE.txt for license information
|
||||
@@ -12,8 +12,8 @@ import multiprocessing
|
||||
from swift_build_support.swift_build_support import host
|
||||
from swift_build_support.swift_build_support import targets
|
||||
|
||||
from .. import argparse
|
||||
from .. import defaults
|
||||
from ..build_swift import argparse
|
||||
from ..build_swift import defaults
|
||||
|
||||
|
||||
__all__ = [
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# This source file is part of the Swift.org open source project
|
||||
#
|
||||
# Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
|
||||
# Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors
|
||||
# Licensed under Apache License v2.0 with Runtime Library Exception
|
||||
#
|
||||
# See https://swift.org/LICENSE.txt for license information
|
||||
@@ -16,13 +16,11 @@ from io import StringIO
|
||||
|
||||
from swift_build_support.swift_build_support import migration
|
||||
from swift_build_support.swift_build_support.SwiftBuildSupport import (
|
||||
get_all_preset_names,
|
||||
get_preset_options,
|
||||
)
|
||||
get_all_preset_names, get_preset_options)
|
||||
|
||||
from . import expected_options as eo
|
||||
from .. import argparse
|
||||
from .. import driver_arguments
|
||||
from ..build_swift import argparse
|
||||
from ..build_swift import driver_arguments
|
||||
|
||||
|
||||
FILE_PATH = os.path.abspath(__file__)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# This source file is part of the Swift.org open source project
|
||||
#
|
||||
# Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
|
||||
# Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors
|
||||
# Licensed under Apache License v2.0 with Runtime Library Exception
|
||||
#
|
||||
# See https://swift.org/LICENSE.txt for license information
|
||||
@@ -10,7 +10,7 @@
|
||||
from __future__ import absolute_import, unicode_literals
|
||||
|
||||
from .utils import TestCase, add_metaclass
|
||||
from .. import migration
|
||||
from ..build_swift import migration
|
||||
|
||||
|
||||
def _get_sdk_targets(sdk_names):
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# This source file is part of the Swift.org open source project
|
||||
#
|
||||
# Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
|
||||
# Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors
|
||||
# Licensed under Apache License v2.0 with Runtime Library Exception
|
||||
#
|
||||
# See https://swift.org/LICENSE.txt for license information
|
||||
@@ -12,8 +12,8 @@ from __future__ import unicode_literals
|
||||
import os
|
||||
|
||||
from .utils import TestCase, UTILS_PATH, add_metaclass
|
||||
from .. import presets
|
||||
from ..presets import Preset, PresetParser
|
||||
from ..build_swift import presets
|
||||
from ..build_swift.presets import Preset, PresetParser
|
||||
|
||||
try:
|
||||
# Python 2
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# This source file is part of the Swift.org open source project
|
||||
#
|
||||
# Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
|
||||
# Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors
|
||||
# Licensed under Apache License v2.0 with Runtime Library Exception
|
||||
#
|
||||
# See https://swift.org/LICENSE.txt for license information
|
||||
|
||||
Reference in New Issue
Block a user