Skip to content

Commit ce29931

Browse files
committed
Remove unnecessary exports_files
1 parent 6d31264 commit ce29931

File tree

8 files changed

+8
-43
lines changed

8 files changed

+8
-43
lines changed

BUILD.bazel

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,18 @@ load("@rules_license//rules:license.bzl", "license")
1616

1717
# Expose license for external usage through bazel.
1818
licenses(["notice"])
19+
1920
exports_files(["LICENSE"])
21+
2022
license(
21-
name = "license",
22-
package_name = "or-tools",
23-
license_kinds = ["@rules_license//licenses/spdx:Apache-2.0"],
24-
license_text = ":LICENSE",
23+
name = "license",
24+
package_name = "or-tools",
25+
license_kinds = ["@rules_license//licenses/spdx:Apache-2.0"],
26+
license_text = ":LICENSE",
2527
)
28+
2629
package(
27-
default_applicable_licenses = [":license"],
30+
default_applicable_licenses = [":license"],
2831
)
2932

3033
# gazelle:build_file_name BUILD,BUILD.bazel

bazel/BUILD.bazel

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,6 @@
1313

1414
load("@rules_python//python:pip.bzl", "compile_pip_requirements")
1515

16-
exports_files([
17-
"archive_helper.bzl",
18-
"notebook_requirements.in",
19-
"notebook_requirements.txt",
20-
"ortools_requirements.in",
21-
"ortools_requirements.txt",
22-
"scip-v920.patch",
23-
])
24-
2516
compile_pip_requirements(
2617
name = "ortools_requirements",
2718
extra_args = [

examples/cpp/BUILD.bazel

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,6 @@ load("@rules_cc//cc:cc_binary.bzl", "cc_binary")
1515
load("@rules_cc//cc:cc_library.bzl", "cc_library")
1616
load("@rules_cc//cc:cc_test.bzl", "cc_test")
1717

18-
exports_files(
19-
[
20-
"shift_minimization.dat",
21-
"wt40.txt",
22-
],
23-
)
24-
2518
# Constraint solver examples.
2619
cc_binary(
2720
name = "binpacking_2d_sat",

ortools/base/BUILD.bazel

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,6 @@ cc_library(
398398
cc_library(
399399
name = "memfile",
400400
hdrs = ["memfile.h"],
401-
deps = [],
402401
)
403402

404403
cc_library(
@@ -432,7 +431,6 @@ cc_library(
432431
cc_library(
433432
name = "mutable_memfile",
434433
hdrs = ["mutable_memfile.h"],
435-
deps = [],
436434
)
437435

438436
cc_library(

ortools/linear_solver/BUILD.bazel

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ load("@rules_cc//cc:cc_library.bzl", "cc_library")
2020

2121
package(default_visibility = ["//visibility:public"])
2222

23-
exports_files(["model_exporter_swig_helper.h"])
24-
2523
# OSS solvers
2624
bool_flag(
2725
name = "with_bop",

ortools/linear_solver/wrappers/BUILD.bazel

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,6 @@
1515

1616
load("@rules_cc//cc:cc_library.bzl", "cc_library")
1717

18-
# Public exports.
19-
exports_files(
20-
[
21-
"README.md",
22-
"BUILD.bazel",
23-
"CMakeLists.txt",
24-
] + glob([
25-
"*.cc",
26-
"*.h",
27-
]),
28-
)
29-
3018
cc_library(
3119
name = "model_builder_helper",
3220
srcs = ["model_builder_helper.cc"],

ortools/util/BUILD.bazel

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,6 @@ cc_library(
406406
cc_library(
407407
name = "random_engine",
408408
hdrs = ["random_engine.h"],
409-
deps = [],
410409
)
411410

412411
cc_library(

patches/BUILD.bazel

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,6 @@
1212
# limitations under the License.
1313

1414
exports_files([
15-
"abseil-cpp-20250512.0.patch",
16-
"protobuf-v31.1.patch",
1715
"pybind11_bazel.patch",
1816
"pybind11_abseil.patch",
19-
"pybind11_protobuf.patch",
20-
"pybind11-v2.13.6.patch",
21-
"scip-v922.patch",
2217
])

0 commit comments

Comments
 (0)