Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,22 @@ bazel_dep(name = "bazel_features", version = "1.3.0")
bazel_dep(name = "bazel_skylib", version = "1.3.0")
bazel_dep(
name = "rules_swift",
version = "3.1.1",
version = "3.4.2",
repo_name = "build_bazel_rules_swift",
)
bazel_dep(
name = "rules_apple",
version = "4.0.1",
version = "4.3.3",
repo_name = "build_bazel_rules_apple",
)
bazel_dep(name = "rules_python", version = "0.27.1")
git_override(
module_name = "rules_apple",
remote = "https://github.com/bazelbuild/rules_apple",
commit = "d930c4c6eaeed91c8275604a428407d123a85216",
)

bazel_dep(name = "rules_python", version = "1.8.1")
bazel_dep(name = "rules_cc", version = "0.2.17")

internal = use_extension("//xcodeproj:extensions.bzl", "internal")
use_repo(internal, "rules_xcodeproj_generated")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
""" Allows for the creation of modulemaps given a list of headers """

load("@build_bazel_rules_swift//swift:swift.bzl", "SwiftInfo")
load("@rules_cc//cc/common:cc_common.bzl", "cc_common")
load("@rules_cc//cc/common:cc_info.bzl", "CcInfo")

HEADERS_FILE_TYPES = [
".h",
Expand Down
1 change: 1 addition & 0 deletions xcodeproj/automatic_target_info.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ load(
"AppleFrameworkImportInfo",
"AppleResourceBundleInfo",
)
load("@rules_cc//cc/common:cc_info.bzl", "CcInfo")
load("//xcodeproj:xcodeprojinfo.bzl", "target_type")
load("//xcodeproj/internal:memory_efficiency.bzl", "EMPTY_LIST", "NONE_LIST")

Expand Down
1 change: 1 addition & 0 deletions xcodeproj/internal/compilation_providers.bzl
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Module for propagating compilation providers."""

load("@bazel_features//:features.bzl", "bazel_features")
load("@rules_cc//cc/common:cc_common.bzl", "cc_common")
load(
":memory_efficiency.bzl",
"EMPTY_DEPSET",
Expand Down
1 change: 1 addition & 0 deletions xcodeproj/internal/execution_root.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ def write_execution_root_file(*, actions, bin_dir_path, name):
output = actions.declare_file("{}_execution_root_file".format(name))

actions.run_shell(
use_default_shell_env = True,
outputs = [output],
command = """\
bin_dir_full="$(perl -MCwd -e 'print Cwd::abs_path shift' "{bin_dir}";)"
Expand Down
1 change: 1 addition & 0 deletions xcodeproj/internal/processed_targets/library_targets.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
load("@bazel_skylib//rules:common_settings.bzl", "BuildSettingInfo")
load("@build_bazel_rules_apple//apple:providers.bzl", "AppleDebugOutputsInfo")
load("@build_bazel_rules_swift//swift:swift.bzl", "SwiftInfo", "SwiftProtoInfo")
load("@rules_cc//cc/common:cc_info.bzl", "CcInfo")
load("//xcodeproj/internal:build_settings.bzl", "get_product_module_name")
load("//xcodeproj/internal:compilation_providers.bzl", "compilation_providers")
load("//xcodeproj/internal:compiler_args.bzl", "compiler_args")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
load("@bazel_skylib//rules:common_settings.bzl", "BuildSettingInfo")
load("@build_bazel_rules_apple//apple:providers.bzl", "AppleDebugOutputsInfo")
load("@build_bazel_rules_swift//swift:swift.bzl", "SwiftInfo")
load("@rules_cc//cc/common:cc_info.bzl", "CcInfo")
load("//xcodeproj:xcodeprojinfo.bzl", "XcodeProjInfo")
load("//xcodeproj/internal:build_settings.bzl", "get_product_module_name")
load("//xcodeproj/internal:compilation_providers.bzl", "compilation_providers")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ load(
"AppleResourceInfo",
)
load("@build_bazel_rules_swift//swift:swift.bzl", "SwiftInfo", "SwiftProtoInfo")
load("@rules_cc//cc/common:cc_info.bzl", "CcInfo")
load("//xcodeproj:xcodeprojinfo.bzl", "XcodeProjInfo")
load(
"//xcodeproj/internal:build_settings.bzl",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ load(
"@build_bazel_rules_apple//apple:providers.bzl",
"AppleResourceBundleInfo",
)
load("@rules_cc//cc/common:cc_info.bzl", "CcInfo")
load("//xcodeproj/internal:compilation_providers.bzl", "compilation_providers")
load("//xcodeproj/internal:configuration.bzl", "calculate_configuration")
load("//xcodeproj/internal:dependencies.bzl", "dependencies")
Expand Down
1 change: 1 addition & 0 deletions xcodeproj/internal/products.bzl
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Module for collecting product information for a target."""

load("@bazel_skylib//lib:paths.bzl", "paths")
load("@rules_cc//cc/common:cc_info.bzl", "CcInfo")
load("//xcodeproj/internal/files:files.bzl", "join_paths_ignoring_empty")
load("//xcodeproj/internal/files:linker_input_files.bzl", "linker_input_files")

Expand Down
1 change: 1 addition & 0 deletions xcodeproj/xcodeproj_cache_warm_aspect.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ bundle, or codesign as well (which we don't cache anyway).

load("@build_bazel_rules_apple//apple:providers.bzl", "AppleResourceInfo")
load("@build_bazel_rules_swift//swift:providers.bzl", "SwiftInfo")
load("@rules_cc//cc/common:cc_info.bzl", "CcInfo")

_BUNDLING_RULE_KINDS = set([
"ios_app_clip",
Expand Down