From 1af55b2be37490c97e021edb2bea414cb3bb18dd Mon Sep 17 00:00:00 2001 From: Corentin Le Molgat Date: Mon, 20 Jun 2022 18:27:09 +0200 Subject: [PATCH] Add license boilerplate --- .cmake-format.py | 13 +++++++++++++ bazel/BUILD.bazel | 13 +++++++++++++ bazel/Makefile | 13 +++++++++++++ bazel/archive_helper.bzl | 13 +++++++++++++ bazel/docs/generate_image.sh | 13 +++++++++++++ bazel/swig.bzl | 13 +++++++++++++ makefiles/Makefile | 13 +++++++++++++ makefiles/Makefile.archive.mk | 13 +++++++++++++ makefiles/Makefile.cpp.mk | 13 +++++++++++++ makefiles/Makefile.doc.mk | 13 +++++++++++++ makefiles/Makefile.dotnet.mk | 13 +++++++++++++ makefiles/Makefile.java.mk | 13 +++++++++++++ makefiles/Makefile.port.mk | 13 +++++++++++++ makefiles/Makefile.python.mk | 13 +++++++++++++ makefiles/docs/generate_image.sh | 14 ++++++++++++++ ortools/bop/BUILD.bazel | 13 +++++++++++++ ortools/bop/CMakeLists.txt | 13 +++++++++++++ ortools/constraint_solver/BUILD.bazel | 13 +++++++++++++ ortools/constraint_solver/CMakeLists.txt | 13 +++++++++++++ ortools/constraint_solver/csharp/CMakeLists.txt | 13 +++++++++++++ ortools/constraint_solver/demon_profiler.proto | 1 - ortools/constraint_solver/docs/generate_svg.sh | 13 +++++++++++++ ortools/constraint_solver/java/CMakeLists.txt | 13 +++++++++++++ ortools/constraint_solver/python/CMakeLists.txt | 13 +++++++++++++ ortools/constraint_solver/samples/BUILD.bazel | 13 +++++++++++++ .../constraint_solver/samples/CMakeLists.txt | 13 +++++++++++++ .../constraint_solver/samples/code_samples.bzl | 13 +++++++++++++ .../constraint_solver/samples/cp_is_fun_cp.py | 1 + .../constraint_solver/samples/cvrptw_break.py | 1 + ortools/constraint_solver/samples/nqueens_cp.py | 1 + .../samples/simple_cp_program.py | 1 + .../samples/simple_routing_program.py | 1 + ortools/constraint_solver/samples/tsp.py | 1 + .../samples/tsp_circuit_board.py | 1 + ortools/constraint_solver/samples/tsp_cities.py | 1 + .../samples/tsp_distance_matrix.py | 1 + ortools/constraint_solver/samples/vrp.py | 1 + ortools/constraint_solver/samples/vrp_breaks.py | 1 + .../constraint_solver/samples/vrp_capacity.py | 1 + .../constraint_solver/samples/vrp_drop_nodes.py | 1 + .../samples/vrp_global_span.py | 1 + .../samples/vrp_initial_routes.py | 1 + .../constraint_solver/samples/vrp_node_max.py | 1 + .../samples/vrp_pickup_delivery.py | 1 + .../samples/vrp_pickup_delivery_fifo.py | 1 + .../samples/vrp_pickup_delivery_lifo.py | 1 + .../constraint_solver/samples/vrp_resources.py | 1 + .../samples/vrp_starts_ends.py | 1 + .../samples/vrp_time_windows.py | 1 + .../samples/vrp_with_time_limit.py | 1 + ortools/constraint_solver/samples/vrpgs.py | 1 + .../samples/vrptw_store_solution_data.py | 1 + ortools/dotnet/docs/generate_image.sh | 13 +++++++++++++ ortools/flatzinc/BUILD.bazel | 13 +++++++++++++ ortools/flatzinc/mznlib/BUILD.bazel | 13 +++++++++++++ ortools/glop/BUILD.bazel | 13 +++++++++++++ ortools/glop/CMakeLists.txt | 13 +++++++++++++ ortools/glop/samples/BUILD.bazel | 13 +++++++++++++ ortools/glop/samples/CMakeLists.txt | 13 +++++++++++++ ortools/glop/samples/code_samples.bzl | 13 +++++++++++++ ortools/glpk/BUILD.bazel | 13 +++++++++++++ ortools/glpk/CMakeLists.txt | 13 +++++++++++++ ortools/graph/BUILD.bazel | 13 +++++++++++++ ortools/graph/CMakeLists.txt | 13 +++++++++++++ ortools/graph/csharp/CMakeLists.txt | 13 +++++++++++++ ortools/graph/java/CMakeLists.txt | 13 +++++++++++++ ortools/graph/python/BUILD.bazel | 13 +++++++++++++ ortools/graph/python/CMakeLists.txt | 13 +++++++++++++ ortools/graph/samples/BUILD.bazel | 13 +++++++++++++ ortools/graph/samples/CMakeLists.txt | 13 +++++++++++++ .../samples/assignment_linear_sum_assignment.py | 1 + ortools/graph/samples/assignment_min_flow.py | 1 + ortools/graph/samples/balance_min_flow.py | 1 + ortools/graph/samples/code_samples.bzl | 13 +++++++++++++ ortools/graph/samples/code_samples_cc_test.sh | 17 +++++++++++++++-- ortools/graph/samples/code_samples_py_test.sh | 15 ++++++++++++++- .../graph/samples/simple_max_flow_program.py | 1 + .../samples/simple_min_cost_flow_program.py | 1 + ortools/gscip/BUILD.bazel | 13 +++++++++++++ ortools/gscip/CMakeLists.txt | 13 +++++++++++++ ortools/gurobi/BUILD.bazel | 13 +++++++++++++ ortools/gurobi/CMakeLists.txt | 13 +++++++++++++ ortools/init/BUILD.bazel | 13 +++++++++++++ ortools/init/CMakeLists.txt | 13 +++++++++++++ ortools/init/csharp/CMakeLists.txt | 13 +++++++++++++ ortools/init/java/CMakeLists.txt | 13 +++++++++++++ ortools/init/python/CMakeLists.txt | 13 +++++++++++++ ortools/java/docs/generate_image.sh | 13 +++++++++++++ ortools/linear_solver/BUILD.bazel | 13 +++++++++++++ ortools/linear_solver/CMakeLists.txt | 13 +++++++++++++ ortools/linear_solver/csharp/CMakeLists.txt | 13 +++++++++++++ ortools/linear_solver/java/CMakeLists.txt | 13 +++++++++++++ ortools/linear_solver/python/CMakeLists.txt | 13 +++++++++++++ ortools/linear_solver/samples/BUILD.bazel | 13 +++++++++++++ ortools/linear_solver/samples/CMakeLists.txt | 13 +++++++++++++ .../samples/assignment_groups_mip.py | 1 + .../samples/assignment_task_sizes_mip.py | 1 + .../samples/assignment_teams_mip.py | 1 + ortools/lp_data/BUILD.bazel | 13 +++++++++++++ ortools/lp_data/CMakeLists.txt | 13 +++++++++++++ ortools/math_opt/BUILD.bazel | 13 +++++++++++++ ortools/math_opt/constraints/sos/BUILD.bazel | 13 +++++++++++++ ortools/math_opt/core/BUILD.bazel | 13 +++++++++++++ ortools/math_opt/cpp/BUILD.bazel | 13 +++++++++++++ ortools/math_opt/io/BUILD.bazel | 13 +++++++++++++ ortools/math_opt/samples/BUILD.bazel | 13 +++++++++++++ ortools/math_opt/solvers/BUILD.bazel | 13 +++++++++++++ ortools/math_opt/solvers/glpk/BUILD.bazel | 13 +++++++++++++ ortools/math_opt/solvers/gurobi/BUILD.bazel | 13 +++++++++++++ ortools/math_opt/storage/BUILD.bazel | 13 +++++++++++++ ortools/math_opt/validators/BUILD.bazel | 13 +++++++++++++ ortools/model_builder/java/CMakeLists.txt | 13 +++++++++++++ ortools/model_builder/python/BUILD.bazel | 13 +++++++++++++ ortools/model_builder/python/CMakeLists.txt | 13 +++++++++++++ ortools/model_builder/samples/BUILD.bazel | 13 +++++++++++++ ortools/model_builder/samples/CMakeLists.txt | 13 +++++++++++++ ortools/model_builder/samples/code_samples.bzl | 13 +++++++++++++ .../samples/code_samples_py_test.sh | 15 ++++++++++++++- .../samples/simple_lp_program_mb.py | 1 + .../samples/simple_mip_program_mb.py | 1 + ortools/model_builder/wrappers/BUILD.bazel | 13 +++++++++++++ ortools/model_builder/wrappers/CMakeLists.txt | 13 +++++++++++++ ortools/packing/BUILD.bazel | 13 +++++++++++++ ortools/packing/CMakeLists.txt | 13 +++++++++++++ ortools/pdlp/BUILD.bazel | 13 +++++++++++++ ortools/port/BUILD.bazel | 13 +++++++++++++ ortools/port/CMakeLists.txt | 13 +++++++++++++ ortools/python/docs/generate_image.sh | 13 +++++++++++++ ortools/sat/BUILD.bazel | 13 +++++++++++++ ortools/sat/CMakeLists.txt | 13 +++++++++++++ ortools/sat/csharp/CMakeLists.txt | 13 +++++++++++++ ortools/sat/java/CMakeLists.txt | 13 +++++++++++++ ortools/sat/python/BUILD.bazel | 13 +++++++++++++ ortools/sat/python/CMakeLists.txt | 13 +++++++++++++ ortools/sat/samples/BUILD.bazel | 15 ++++++++++++++- ortools/sat/samples/CMakeLists.txt | 13 +++++++++++++ ortools/scheduling/BUILD.bazel | 13 +++++++++++++ ortools/scheduling/CMakeLists.txt | 13 +++++++++++++ ortools/scheduling/python/CMakeLists.txt | 13 +++++++++++++ ortools/util/BUILD.bazel | 13 +++++++++++++ ortools/util/CMakeLists.txt | 13 +++++++++++++ ortools/util/csharp/CMakeLists.txt | 13 +++++++++++++ ortools/util/java/CMakeLists.txt | 13 +++++++++++++ ortools/util/python/BUILD.bazel | 13 +++++++++++++ ortools/util/python/CMakeLists.txt | 13 +++++++++++++ 145 files changed, 1458 insertions(+), 6 deletions(-) diff --git a/.cmake-format.py b/.cmake-format.py index 2a1ae01957..78895019e2 100644 --- a/.cmake-format.py +++ b/.cmake-format.py @@ -1,3 +1,16 @@ +#!/usr/bin/env python3 +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # ---------------------------------- # Options affecting listfile parsing # ---------------------------------- diff --git a/bazel/BUILD.bazel b/bazel/BUILD.bazel index 375e0137b9..6c566aa2a7 100644 --- a/bazel/BUILD.bazel +++ b/bazel/BUILD.bazel @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + exports_files([ "gtest.BUILD", "glpk.BUILD", diff --git a/bazel/Makefile b/bazel/Makefile index 1894b24f0b..432d6f5db6 100644 --- a/bazel/Makefile +++ b/bazel/Makefile @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + PROJECT := ortools BUILD_SYSTEM := bazel BRANCH := $(shell git rev-parse --abbrev-ref HEAD) diff --git a/bazel/archive_helper.bzl b/bazel/archive_helper.bzl index 759398e34d..ee724374ec 100644 --- a/bazel/archive_helper.bzl +++ b/bazel/archive_helper.bzl @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """ Bazel rule to use local archive.""" def _local_archive_impl(repository_ctx): diff --git a/bazel/docs/generate_image.sh b/bazel/docs/generate_image.sh index 45b39f1b53..45d79f03eb 100755 --- a/bazel/docs/generate_image.sh +++ b/bazel/docs/generate_image.sh @@ -1,4 +1,17 @@ #!/usr/bin/env bash +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + set -eux rm -f ./*.svg ./*.png diff --git a/bazel/swig.bzl b/bazel/swig.bzl index 151311cc62..5b2dca261f 100644 --- a/bazel/swig.bzl +++ b/bazel/swig.bzl @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """ Bazel rules for building swig files.""" def _py_wrap_cc_impl(ctx): diff --git a/makefiles/Makefile b/makefiles/Makefile index 7d6e078f3f..829b6000f5 100644 --- a/makefiles/Makefile +++ b/makefiles/Makefile @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + PROJECT := ortools BUILD_SYSTEM := make BRANCH := $(shell git rev-parse --abbrev-ref HEAD) diff --git a/makefiles/Makefile.archive.mk b/makefiles/Makefile.archive.mk index 3b8519e533..dbc357e0e3 100644 --- a/makefiles/Makefile.archive.mk +++ b/makefiles/Makefile.archive.mk @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # ---------- Archive support ---------- .PHONY: help_archive # Generate list of Archive targets with descriptions. help_archive: diff --git a/makefiles/Makefile.cpp.mk b/makefiles/Makefile.cpp.mk index e52619ef20..3f6057187b 100644 --- a/makefiles/Makefile.cpp.mk +++ b/makefiles/Makefile.cpp.mk @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # ---------- C++ support ---------- .PHONY: help_cpp # Generate list of C++ targets with descriptions. help_cpp: diff --git a/makefiles/Makefile.doc.mk b/makefiles/Makefile.doc.mk index 609f5a175b..52228156a3 100644 --- a/makefiles/Makefile.doc.mk +++ b/makefiles/Makefile.doc.mk @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Generate documentation .PHONY: help_doc # Generate list of Documentation targets with descriptions. help_doc: diff --git a/makefiles/Makefile.dotnet.mk b/makefiles/Makefile.dotnet.mk index de057fde30..19877707c0 100644 --- a/makefiles/Makefile.dotnet.mk +++ b/makefiles/Makefile.dotnet.mk @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # ---------- .Net support ---------- .PHONY: help_dotnet # Generate list of dotnet targets with descriptions. help_dotnet: diff --git a/makefiles/Makefile.java.mk b/makefiles/Makefile.java.mk index 85fb41a520..77c635ba52 100644 --- a/makefiles/Makefile.java.mk +++ b/makefiles/Makefile.java.mk @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # ---------- Java support ---------- .PHONY: help_java # Generate list of Java targets with descriptions. help_java: diff --git a/makefiles/Makefile.port.mk b/makefiles/Makefile.port.mk index dac0d46f96..b5f463f1e1 100644 --- a/makefiles/Makefile.port.mk +++ b/makefiles/Makefile.port.mk @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Util variables SPACE := $(empty) $(empty) BACKSLASH_SPACE := $(empty)\ $(empty) diff --git a/makefiles/Makefile.python.mk b/makefiles/Makefile.python.mk index 1c2130ce94..5554bba059 100644 --- a/makefiles/Makefile.python.mk +++ b/makefiles/Makefile.python.mk @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # ---------- Python support ---------- .PHONY: help_python # Generate list of Python targets with descriptions. help_python: diff --git a/makefiles/docs/generate_image.sh b/makefiles/docs/generate_image.sh index e204426dd9..5bd21128a3 100755 --- a/makefiles/docs/generate_image.sh +++ b/makefiles/docs/generate_image.sh @@ -1,3 +1,17 @@ +#!/usr/bin/env bash +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + #/usr/bin/env bash set -ex diff --git a/ortools/bop/BUILD.bazel b/ortools/bop/BUILD.bazel index 02b72b5249..b34ffcc2f5 100644 --- a/ortools/bop/BUILD.bazel +++ b/ortools/bop/BUILD.bazel @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + load("@rules_cc//cc:defs.bzl", "cc_proto_library") package(default_visibility = ["//visibility:public"]) diff --git a/ortools/bop/CMakeLists.txt b/ortools/bop/CMakeLists.txt index 67d5e11861..6a5b69a39a 100644 --- a/ortools/bop/CMakeLists.txt +++ b/ortools/bop/CMakeLists.txt @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + file(GLOB _SRCS "*.h" "*.cc") set(NAME ${PROJECT_NAME}_bop) diff --git a/ortools/constraint_solver/BUILD.bazel b/ortools/constraint_solver/BUILD.bazel index 358985724b..03e3d728e6 100644 --- a/ortools/constraint_solver/BUILD.bazel +++ b/ortools/constraint_solver/BUILD.bazel @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Home of constraint solver constraint_solver load("@rules_cc//cc:defs.bzl", "cc_proto_library") diff --git a/ortools/constraint_solver/CMakeLists.txt b/ortools/constraint_solver/CMakeLists.txt index 4f6e82e4ad..b177335a8d 100644 --- a/ortools/constraint_solver/CMakeLists.txt +++ b/ortools/constraint_solver/CMakeLists.txt @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + file(GLOB _SRCS "*.h" "*.cc") set(NAME ${PROJECT_NAME}_constraint_solver) diff --git a/ortools/constraint_solver/csharp/CMakeLists.txt b/ortools/constraint_solver/csharp/CMakeLists.txt index bfc9e4f8dc..1d7511c353 100644 --- a/ortools/constraint_solver/csharp/CMakeLists.txt +++ b/ortools/constraint_solver/csharp/CMakeLists.txt @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + set_property(SOURCE routing.i PROPERTY CPLUSPLUS ON) set_property(SOURCE routing.i PROPERTY SWIG_MODULE_NAME operations_research_constraint_solver) set_property(SOURCE routing.i PROPERTY COMPILE_DEFINITIONS diff --git a/ortools/constraint_solver/demon_profiler.proto b/ortools/constraint_solver/demon_profiler.proto index e276faad36..2be48b602e 100644 --- a/ortools/constraint_solver/demon_profiler.proto +++ b/ortools/constraint_solver/demon_profiler.proto @@ -14,7 +14,6 @@ syntax = "proto3"; - package operations_research; message DemonRuns { diff --git a/ortools/constraint_solver/docs/generate_svg.sh b/ortools/constraint_solver/docs/generate_svg.sh index 1953aff1f7..489e7a67b5 100755 --- a/ortools/constraint_solver/docs/generate_svg.sh +++ b/ortools/constraint_solver/docs/generate_svg.sh @@ -1,4 +1,17 @@ #!/usr/bin/env bash +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + set -e ./routing_svg.py -h set -x diff --git a/ortools/constraint_solver/java/CMakeLists.txt b/ortools/constraint_solver/java/CMakeLists.txt index 3f45a1e40c..97f5dc6727 100644 --- a/ortools/constraint_solver/java/CMakeLists.txt +++ b/ortools/constraint_solver/java/CMakeLists.txt @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + set_property(SOURCE routing.i PROPERTY CPLUSPLUS ON) set_property(SOURCE routing.i PROPERTY SWIG_MODULE_NAME main) set_property(SOURCE routing.i PROPERTY COMPILE_DEFINITIONS diff --git a/ortools/constraint_solver/python/CMakeLists.txt b/ortools/constraint_solver/python/CMakeLists.txt index feaa92a82d..98d3fa88a0 100644 --- a/ortools/constraint_solver/python/CMakeLists.txt +++ b/ortools/constraint_solver/python/CMakeLists.txt @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + set_property(SOURCE routing.i PROPERTY CPLUSPLUS ON) set_property(SOURCE routing.i PROPERTY SWIG_MODULE_NAME pywrapcp) set_property(SOURCE routing.i PROPERTY COMPILE_DEFINITIONS diff --git a/ortools/constraint_solver/samples/BUILD.bazel b/ortools/constraint_solver/samples/BUILD.bazel index 75440f8d58..ddc9b23e0a 100644 --- a/ortools/constraint_solver/samples/BUILD.bazel +++ b/ortools/constraint_solver/samples/BUILD.bazel @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + load(":code_samples.bzl", "code_sample_cc") code_sample_cc(name = "minimal_jobshop_cp") diff --git a/ortools/constraint_solver/samples/CMakeLists.txt b/ortools/constraint_solver/samples/CMakeLists.txt index 90246fcd14..1c8a168796 100644 --- a/ortools/constraint_solver/samples/CMakeLists.txt +++ b/ortools/constraint_solver/samples/CMakeLists.txt @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + if(NOT BUILD_SAMPLES) return() endif() diff --git a/ortools/constraint_solver/samples/code_samples.bzl b/ortools/constraint_solver/samples/code_samples.bzl index 6f838b54b0..1a777634d5 100644 --- a/ortools/constraint_solver/samples/code_samples.bzl +++ b/ortools/constraint_solver/samples/code_samples.bzl @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """Helper macro to compile and test code samples.""" def code_sample_cc(name): diff --git a/ortools/constraint_solver/samples/cp_is_fun_cp.py b/ortools/constraint_solver/samples/cp_is_fun_cp.py index 2722c07d68..73c6b279e9 100755 --- a/ortools/constraint_solver/samples/cp_is_fun_cp.py +++ b/ortools/constraint_solver/samples/cp_is_fun_cp.py @@ -11,6 +11,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. + # [START program] """Cryptarithmetic puzzle. diff --git a/ortools/constraint_solver/samples/cvrptw_break.py b/ortools/constraint_solver/samples/cvrptw_break.py index fcd2034945..5f76cd3e09 100755 --- a/ortools/constraint_solver/samples/cvrptw_break.py +++ b/ortools/constraint_solver/samples/cvrptw_break.py @@ -11,6 +11,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. + # [START program] """Capacitated Vehicle Routing Problem with Time Windows (CVRPTW). diff --git a/ortools/constraint_solver/samples/nqueens_cp.py b/ortools/constraint_solver/samples/nqueens_cp.py index 5f0a9b6348..6191e657ba 100755 --- a/ortools/constraint_solver/samples/nqueens_cp.py +++ b/ortools/constraint_solver/samples/nqueens_cp.py @@ -11,6 +11,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. + # [START program] """OR-Tools solution to the N-queens problem.""" # [START import] diff --git a/ortools/constraint_solver/samples/simple_cp_program.py b/ortools/constraint_solver/samples/simple_cp_program.py index 254c9815ee..c3d802a306 100644 --- a/ortools/constraint_solver/samples/simple_cp_program.py +++ b/ortools/constraint_solver/samples/simple_cp_program.py @@ -11,6 +11,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. + # [START program] """Simple Constraint optimization example.""" diff --git a/ortools/constraint_solver/samples/simple_routing_program.py b/ortools/constraint_solver/samples/simple_routing_program.py index cffe424b77..a8d98c973c 100644 --- a/ortools/constraint_solver/samples/simple_routing_program.py +++ b/ortools/constraint_solver/samples/simple_routing_program.py @@ -11,6 +11,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. + # [START program] """Vehicle Routing example.""" diff --git a/ortools/constraint_solver/samples/tsp.py b/ortools/constraint_solver/samples/tsp.py index da49b7e1bc..20e4576a6f 100755 --- a/ortools/constraint_solver/samples/tsp.py +++ b/ortools/constraint_solver/samples/tsp.py @@ -11,6 +11,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. + # [START program] """Simple Travelling Salesman Problem. diff --git a/ortools/constraint_solver/samples/tsp_circuit_board.py b/ortools/constraint_solver/samples/tsp_circuit_board.py index 1a771542cc..9fc1f0ce88 100644 --- a/ortools/constraint_solver/samples/tsp_circuit_board.py +++ b/ortools/constraint_solver/samples/tsp_circuit_board.py @@ -11,6 +11,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. + # [START program] """Simple Travelling Salesperson Problem (TSP) on a circuit board.""" diff --git a/ortools/constraint_solver/samples/tsp_cities.py b/ortools/constraint_solver/samples/tsp_cities.py index d64b5c963f..43e18b7924 100644 --- a/ortools/constraint_solver/samples/tsp_cities.py +++ b/ortools/constraint_solver/samples/tsp_cities.py @@ -11,6 +11,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. + # [START program] """Simple Travelling Salesperson Problem (TSP) between cities.""" diff --git a/ortools/constraint_solver/samples/tsp_distance_matrix.py b/ortools/constraint_solver/samples/tsp_distance_matrix.py index 091bad2b15..6452c39f29 100644 --- a/ortools/constraint_solver/samples/tsp_distance_matrix.py +++ b/ortools/constraint_solver/samples/tsp_distance_matrix.py @@ -11,6 +11,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. + # [START program] """Simple Travelling Salesman Problem.""" diff --git a/ortools/constraint_solver/samples/vrp.py b/ortools/constraint_solver/samples/vrp.py index 29d88850f9..4d412b423f 100755 --- a/ortools/constraint_solver/samples/vrp.py +++ b/ortools/constraint_solver/samples/vrp.py @@ -11,6 +11,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. + # [START program] """Simple Vehicles Routing Problem (VRP). diff --git a/ortools/constraint_solver/samples/vrp_breaks.py b/ortools/constraint_solver/samples/vrp_breaks.py index b1c2f3e052..fb2335ff5c 100755 --- a/ortools/constraint_solver/samples/vrp_breaks.py +++ b/ortools/constraint_solver/samples/vrp_breaks.py @@ -11,6 +11,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. + # [START program] """Vehicle Routing Problem (VRP) with breaks. diff --git a/ortools/constraint_solver/samples/vrp_capacity.py b/ortools/constraint_solver/samples/vrp_capacity.py index 85cbbedefe..1780746ade 100755 --- a/ortools/constraint_solver/samples/vrp_capacity.py +++ b/ortools/constraint_solver/samples/vrp_capacity.py @@ -11,6 +11,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. + # [START program] """Capacited Vehicles Routing Problem (CVRP).""" diff --git a/ortools/constraint_solver/samples/vrp_drop_nodes.py b/ortools/constraint_solver/samples/vrp_drop_nodes.py index 70861ab6ee..070c539954 100644 --- a/ortools/constraint_solver/samples/vrp_drop_nodes.py +++ b/ortools/constraint_solver/samples/vrp_drop_nodes.py @@ -11,6 +11,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. + # [START program] """Capacited Vehicles Routing Problem (CVRP).""" diff --git a/ortools/constraint_solver/samples/vrp_global_span.py b/ortools/constraint_solver/samples/vrp_global_span.py index ed99f4baff..fab4393559 100755 --- a/ortools/constraint_solver/samples/vrp_global_span.py +++ b/ortools/constraint_solver/samples/vrp_global_span.py @@ -11,6 +11,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. + # [START program] """Simple Vehicles Routing Problem (VRP). diff --git a/ortools/constraint_solver/samples/vrp_initial_routes.py b/ortools/constraint_solver/samples/vrp_initial_routes.py index dadf0b063e..35d811615d 100644 --- a/ortools/constraint_solver/samples/vrp_initial_routes.py +++ b/ortools/constraint_solver/samples/vrp_initial_routes.py @@ -11,6 +11,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. + # [START program] """Vehicles Routing Problem (VRP).""" diff --git a/ortools/constraint_solver/samples/vrp_node_max.py b/ortools/constraint_solver/samples/vrp_node_max.py index 2b91c74010..1d0d3080e4 100755 --- a/ortools/constraint_solver/samples/vrp_node_max.py +++ b/ortools/constraint_solver/samples/vrp_node_max.py @@ -11,6 +11,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. + # [START program] """Vehicles Routing Problem (VRP). diff --git a/ortools/constraint_solver/samples/vrp_pickup_delivery.py b/ortools/constraint_solver/samples/vrp_pickup_delivery.py index 86c5c851e3..5e30c74d75 100755 --- a/ortools/constraint_solver/samples/vrp_pickup_delivery.py +++ b/ortools/constraint_solver/samples/vrp_pickup_delivery.py @@ -11,6 +11,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. + # [START program] """Simple Pickup Delivery Problem (PDP).""" diff --git a/ortools/constraint_solver/samples/vrp_pickup_delivery_fifo.py b/ortools/constraint_solver/samples/vrp_pickup_delivery_fifo.py index cc7f42942a..cf06096f3e 100755 --- a/ortools/constraint_solver/samples/vrp_pickup_delivery_fifo.py +++ b/ortools/constraint_solver/samples/vrp_pickup_delivery_fifo.py @@ -11,6 +11,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. + # [START program] """Simple Pickup Delivery Problem (PDP).""" diff --git a/ortools/constraint_solver/samples/vrp_pickup_delivery_lifo.py b/ortools/constraint_solver/samples/vrp_pickup_delivery_lifo.py index 2f9d8e6aca..d5bd4cdb5b 100755 --- a/ortools/constraint_solver/samples/vrp_pickup_delivery_lifo.py +++ b/ortools/constraint_solver/samples/vrp_pickup_delivery_lifo.py @@ -11,6 +11,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. + # [START program] """Simple Pickup Delivery Problem (PDP).""" diff --git a/ortools/constraint_solver/samples/vrp_resources.py b/ortools/constraint_solver/samples/vrp_resources.py index cc471d215a..eb2d9d92cc 100644 --- a/ortools/constraint_solver/samples/vrp_resources.py +++ b/ortools/constraint_solver/samples/vrp_resources.py @@ -11,6 +11,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. + # [START program] """Vehicles Routing Problem (VRP) with Resource Constraints.""" diff --git a/ortools/constraint_solver/samples/vrp_starts_ends.py b/ortools/constraint_solver/samples/vrp_starts_ends.py index e6db52991a..600e5237f0 100644 --- a/ortools/constraint_solver/samples/vrp_starts_ends.py +++ b/ortools/constraint_solver/samples/vrp_starts_ends.py @@ -11,6 +11,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. + # [START program] """Simple Vehicles Routing Problem.""" diff --git a/ortools/constraint_solver/samples/vrp_time_windows.py b/ortools/constraint_solver/samples/vrp_time_windows.py index 27e222d7ec..b0f6197b08 100755 --- a/ortools/constraint_solver/samples/vrp_time_windows.py +++ b/ortools/constraint_solver/samples/vrp_time_windows.py @@ -11,6 +11,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. + # [START program] """Vehicles Routing Problem (VRP) with Time Windows.""" diff --git a/ortools/constraint_solver/samples/vrp_with_time_limit.py b/ortools/constraint_solver/samples/vrp_with_time_limit.py index 7dc1bcdaf8..954afd2078 100644 --- a/ortools/constraint_solver/samples/vrp_with_time_limit.py +++ b/ortools/constraint_solver/samples/vrp_with_time_limit.py @@ -11,6 +11,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. + # [START program] """Vehicles Routing Problem (VRP).""" diff --git a/ortools/constraint_solver/samples/vrpgs.py b/ortools/constraint_solver/samples/vrpgs.py index 795a5782ac..5270d445cc 100755 --- a/ortools/constraint_solver/samples/vrpgs.py +++ b/ortools/constraint_solver/samples/vrpgs.py @@ -12,6 +12,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. + # [START program] """Simple Vehicles Routing Problem (VRP). diff --git a/ortools/constraint_solver/samples/vrptw_store_solution_data.py b/ortools/constraint_solver/samples/vrptw_store_solution_data.py index 671e5fd90d..b167549c08 100644 --- a/ortools/constraint_solver/samples/vrptw_store_solution_data.py +++ b/ortools/constraint_solver/samples/vrptw_store_solution_data.py @@ -11,6 +11,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. + # [START program] """VRPTW example that stores routes and cumulative data in an array.""" diff --git a/ortools/dotnet/docs/generate_image.sh b/ortools/dotnet/docs/generate_image.sh index 7d125b4b01..efcd745d3d 100755 --- a/ortools/dotnet/docs/generate_image.sh +++ b/ortools/dotnet/docs/generate_image.sh @@ -1,4 +1,17 @@ #!/usr/bin/env bash +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + set -euxo pipefail # Check plantuml is in PATH diff --git a/ortools/flatzinc/BUILD.bazel b/ortools/flatzinc/BUILD.bazel index 71fb9ece87..923b384d4a 100644 --- a/ortools/flatzinc/BUILD.bazel +++ b/ortools/flatzinc/BUILD.bazel @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Description: # Source code for the flatzinc interpreter. See www.minizinc.org. # This is a google owned implementation. diff --git a/ortools/flatzinc/mznlib/BUILD.bazel b/ortools/flatzinc/mznlib/BUILD.bazel index cc602503ca..f214476347 100644 --- a/ortools/flatzinc/mznlib/BUILD.bazel +++ b/ortools/flatzinc/mznlib/BUILD.bazel @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Description: # These files tells minizinc how to translate a minizinc file (.mzn) # into a flatzinc one (.fzn). diff --git a/ortools/glop/BUILD.bazel b/ortools/glop/BUILD.bazel index 7292befb1c..aaf33a5d98 100644 --- a/ortools/glop/BUILD.bazel +++ b/ortools/glop/BUILD.bazel @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + load("@rules_cc//cc:defs.bzl", "cc_proto_library") package( diff --git a/ortools/glop/CMakeLists.txt b/ortools/glop/CMakeLists.txt index a9e906f89a..f80b7ef533 100644 --- a/ortools/glop/CMakeLists.txt +++ b/ortools/glop/CMakeLists.txt @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + file(GLOB _SRCS "*.h" "*.cc") set(NAME ${PROJECT_NAME}_glop) diff --git a/ortools/glop/samples/BUILD.bazel b/ortools/glop/samples/BUILD.bazel index 7a20bcff1a..200937bba4 100644 --- a/ortools/glop/samples/BUILD.bazel +++ b/ortools/glop/samples/BUILD.bazel @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + load(":code_samples.bzl", "code_sample_cc") code_sample_cc(name = "simple_glop_program") diff --git a/ortools/glop/samples/CMakeLists.txt b/ortools/glop/samples/CMakeLists.txt index ed4e221a49..731c61793c 100644 --- a/ortools/glop/samples/CMakeLists.txt +++ b/ortools/glop/samples/CMakeLists.txt @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + if(NOT BUILD_SAMPLES AND NOT BUILD_GLOP) return() endif() diff --git a/ortools/glop/samples/code_samples.bzl b/ortools/glop/samples/code_samples.bzl index 4a490bbba1..3f9a15b506 100644 --- a/ortools/glop/samples/code_samples.bzl +++ b/ortools/glop/samples/code_samples.bzl @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """Helper macro to compile and test code samples.""" def code_sample_cc(name): diff --git a/ortools/glpk/BUILD.bazel b/ortools/glpk/BUILD.bazel index 840d2b772d..1f94b76c65 100644 --- a/ortools/glpk/BUILD.bazel +++ b/ortools/glpk/BUILD.bazel @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Code specific to Glpk solver used by linear_solver/ and math_opt/. package(default_visibility = ["//ortools:__subpackages__"]) diff --git a/ortools/glpk/CMakeLists.txt b/ortools/glpk/CMakeLists.txt index 30d46a9372..4c6404f1d1 100644 --- a/ortools/glpk/CMakeLists.txt +++ b/ortools/glpk/CMakeLists.txt @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + if(NOT USE_GLPK) return() endif() diff --git a/ortools/graph/BUILD.bazel b/ortools/graph/BUILD.bazel index 2c1db9a9b4..83e6cc2bf5 100644 --- a/ortools/graph/BUILD.bazel +++ b/ortools/graph/BUILD.bazel @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + load("@rules_cc//cc:defs.bzl", "cc_proto_library") package(default_visibility = ["//visibility:public"]) diff --git a/ortools/graph/CMakeLists.txt b/ortools/graph/CMakeLists.txt index 416bd2e452..6e2e142261 100644 --- a/ortools/graph/CMakeLists.txt +++ b/ortools/graph/CMakeLists.txt @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + file(GLOB _SRCS "*.h" "*.cc") set(NAME ${PROJECT_NAME}_graph) diff --git a/ortools/graph/csharp/CMakeLists.txt b/ortools/graph/csharp/CMakeLists.txt index 8295e21ce1..e22bbda067 100644 --- a/ortools/graph/csharp/CMakeLists.txt +++ b/ortools/graph/csharp/CMakeLists.txt @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + set_property(SOURCE graph.i PROPERTY CPLUSPLUS ON) set_property(SOURCE graph.i PROPERTY SWIG_MODULE_NAME operations_research_graph) set_property(SOURCE graph.i PROPERTY COMPILE_DEFINITIONS diff --git a/ortools/graph/java/CMakeLists.txt b/ortools/graph/java/CMakeLists.txt index 62e4131080..5d34c6e9cc 100644 --- a/ortools/graph/java/CMakeLists.txt +++ b/ortools/graph/java/CMakeLists.txt @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + set_property(SOURCE graph.i PROPERTY CPLUSPLUS ON) set_property(SOURCE graph.i PROPERTY SWIG_MODULE_NAME main) set_property(SOURCE graph.i PROPERTY COMPILE_DEFINITIONS diff --git a/ortools/graph/python/BUILD.bazel b/ortools/graph/python/BUILD.bazel index 36da80fe5e..91a26ea2d9 100644 --- a/ortools/graph/python/BUILD.bazel +++ b/ortools/graph/python/BUILD.bazel @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Python wrapper for graph libraries. load("@pybind11_bazel//:build_defs.bzl", "pybind_extension") diff --git a/ortools/graph/python/CMakeLists.txt b/ortools/graph/python/CMakeLists.txt index e7676b5b88..4b40b9311b 100644 --- a/ortools/graph/python/CMakeLists.txt +++ b/ortools/graph/python/CMakeLists.txt @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + pybind11_add_module(linear_sum_assignment_pybind11 MODULE linear_sum_assignment.cc) # note: macOS is APPLE and also UNIX ! set_target_properties(linear_sum_assignment_pybind11 PROPERTIES diff --git a/ortools/graph/samples/BUILD.bazel b/ortools/graph/samples/BUILD.bazel index 169a74788c..a0eadcbed0 100644 --- a/ortools/graph/samples/BUILD.bazel +++ b/ortools/graph/samples/BUILD.bazel @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + load(":code_samples.bzl", "code_sample_cc_py") code_sample_cc_py(name = "assignment_linear_sum_assignment") diff --git a/ortools/graph/samples/CMakeLists.txt b/ortools/graph/samples/CMakeLists.txt index 90246fcd14..1c8a168796 100644 --- a/ortools/graph/samples/CMakeLists.txt +++ b/ortools/graph/samples/CMakeLists.txt @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + if(NOT BUILD_SAMPLES) return() endif() diff --git a/ortools/graph/samples/assignment_linear_sum_assignment.py b/ortools/graph/samples/assignment_linear_sum_assignment.py index ca2c7a1bc8..622903abc2 100755 --- a/ortools/graph/samples/assignment_linear_sum_assignment.py +++ b/ortools/graph/samples/assignment_linear_sum_assignment.py @@ -11,6 +11,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. + # [START program] """Solve assignment problem using linear assignment solver.""" # [START import] diff --git a/ortools/graph/samples/assignment_min_flow.py b/ortools/graph/samples/assignment_min_flow.py index 26fe9c803a..3e1b574956 100755 --- a/ortools/graph/samples/assignment_min_flow.py +++ b/ortools/graph/samples/assignment_min_flow.py @@ -11,6 +11,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. + # [START program] """Linear assignment example.""" # [START import] diff --git a/ortools/graph/samples/balance_min_flow.py b/ortools/graph/samples/balance_min_flow.py index 148b959795..87f4d64c50 100755 --- a/ortools/graph/samples/balance_min_flow.py +++ b/ortools/graph/samples/balance_min_flow.py @@ -11,6 +11,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. + # [START program] """Assignment with teams of workers.""" # [START import] diff --git a/ortools/graph/samples/code_samples.bzl b/ortools/graph/samples/code_samples.bzl index e81041b58b..9fa9233ea9 100644 --- a/ortools/graph/samples/code_samples.bzl +++ b/ortools/graph/samples/code_samples.bzl @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """Helper macro to compile and test code samples.""" load("@rules_python//python:defs.bzl", "py_binary") diff --git a/ortools/graph/samples/code_samples_cc_test.sh b/ortools/graph/samples/code_samples_cc_test.sh index 9dbd67b7ca..0d95f6e54d 100755 --- a/ortools/graph/samples/code_samples_cc_test.sh +++ b/ortools/graph/samples/code_samples_cc_test.sh @@ -1,4 +1,17 @@ -#!/bin/bash +#!/usr/bin/env bash +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + declare -r DIR="${TEST_SRCDIR}/com_google_ortools/ortools/graph/samples" @@ -6,4 +19,4 @@ function test::ortools::code_samples_graph_cc() { "${DIR}/$1_cc" } -test::ortools::code_samples_graph_cc $1 \ No newline at end of file +test::ortools::code_samples_graph_cc $1 diff --git a/ortools/graph/samples/code_samples_py_test.sh b/ortools/graph/samples/code_samples_py_test.sh index edfcf649b7..042f3cc033 100755 --- a/ortools/graph/samples/code_samples_py_test.sh +++ b/ortools/graph/samples/code_samples_py_test.sh @@ -1,4 +1,17 @@ -#!/bin/bash +#!/usr/bin/env bash +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + declare -r DIR="${TEST_SRCDIR}/com_google_ortools/ortools/graph/samples" diff --git a/ortools/graph/samples/simple_max_flow_program.py b/ortools/graph/samples/simple_max_flow_program.py index e36ccf0958..5c7bf57867 100755 --- a/ortools/graph/samples/simple_max_flow_program.py +++ b/ortools/graph/samples/simple_max_flow_program.py @@ -11,6 +11,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. + # [START program] """From Taha 'Introduction to Operations Research', example 6.4-2.""" # [START import] diff --git a/ortools/graph/samples/simple_min_cost_flow_program.py b/ortools/graph/samples/simple_min_cost_flow_program.py index b7f4f3c751..1fefb63cc3 100755 --- a/ortools/graph/samples/simple_min_cost_flow_program.py +++ b/ortools/graph/samples/simple_min_cost_flow_program.py @@ -11,6 +11,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. + # [START program] """From Bradley, Hax and Maganti, 'Applied Mathematical Programming', figure 8.1.""" # [START import] diff --git a/ortools/gscip/BUILD.bazel b/ortools/gscip/BUILD.bazel index efecd8d8da..5a331f68de 100644 --- a/ortools/gscip/BUILD.bazel +++ b/ortools/gscip/BUILD.bazel @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + load("@rules_cc//cc:defs.bzl", "cc_proto_library") package( diff --git a/ortools/gscip/CMakeLists.txt b/ortools/gscip/CMakeLists.txt index f5f678afcf..99c52b8c9c 100644 --- a/ortools/gscip/CMakeLists.txt +++ b/ortools/gscip/CMakeLists.txt @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + if(NOT USE_SCIP) return() endif() diff --git a/ortools/gurobi/BUILD.bazel b/ortools/gurobi/BUILD.bazel index bbdfb3c815..78f633f13c 100644 --- a/ortools/gurobi/BUILD.bazel +++ b/ortools/gurobi/BUILD.bazel @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + package(default_visibility = ["//visibility:public"]) cc_library( diff --git a/ortools/gurobi/CMakeLists.txt b/ortools/gurobi/CMakeLists.txt index 1b17cd5928..20368ac468 100644 --- a/ortools/gurobi/CMakeLists.txt +++ b/ortools/gurobi/CMakeLists.txt @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + file(GLOB _SRCS "*.h" "*.cc") set(NAME ${PROJECT_NAME}_gurobi) diff --git a/ortools/init/BUILD.bazel b/ortools/init/BUILD.bazel index f3611d0401..5cb711c21f 100644 --- a/ortools/init/BUILD.bazel +++ b/ortools/init/BUILD.bazel @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + package(default_visibility = ["//visibility:public"]) cc_library( diff --git a/ortools/init/CMakeLists.txt b/ortools/init/CMakeLists.txt index 06829e4786..7a09183348 100644 --- a/ortools/init/CMakeLists.txt +++ b/ortools/init/CMakeLists.txt @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + file(GLOB _SRCS "*.h") set(NAME ${PROJECT_NAME}_init) diff --git a/ortools/init/csharp/CMakeLists.txt b/ortools/init/csharp/CMakeLists.txt index d6c208f1dc..59541074e2 100644 --- a/ortools/init/csharp/CMakeLists.txt +++ b/ortools/init/csharp/CMakeLists.txt @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + set_property(SOURCE init.i PROPERTY CPLUSPLUS ON) set_property(SOURCE init.i PROPERTY SWIG_MODULE_NAME operations_research_init) set_property(SOURCE init.i PROPERTY COMPILE_DEFINITIONS diff --git a/ortools/init/java/CMakeLists.txt b/ortools/init/java/CMakeLists.txt index a08fa2f183..326a662ed2 100644 --- a/ortools/init/java/CMakeLists.txt +++ b/ortools/init/java/CMakeLists.txt @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + set_property(SOURCE init.i PROPERTY CPLUSPLUS ON) set_property(SOURCE init.i PROPERTY SWIG_MODULE_NAME main) set_property(SOURCE init.i PROPERTY COMPILE_DEFINITIONS diff --git a/ortools/init/python/CMakeLists.txt b/ortools/init/python/CMakeLists.txt index 5a6ade110c..72a99c8fd1 100644 --- a/ortools/init/python/CMakeLists.txt +++ b/ortools/init/python/CMakeLists.txt @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + set_property(SOURCE init.i PROPERTY CPLUSPLUS ON) set_property(SOURCE init.i PROPERTY SWIG_MODULE_NAME pywrapinit) set_property(SOURCE init.i PROPERTY COMPILE_DEFINITIONS diff --git a/ortools/java/docs/generate_image.sh b/ortools/java/docs/generate_image.sh index 7d125b4b01..efcd745d3d 100755 --- a/ortools/java/docs/generate_image.sh +++ b/ortools/java/docs/generate_image.sh @@ -1,4 +1,17 @@ #!/usr/bin/env bash +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + set -euxo pipefail # Check plantuml is in PATH diff --git a/ortools/linear_solver/BUILD.bazel b/ortools/linear_solver/BUILD.bazel index cdfbb54ce1..55f06eb673 100644 --- a/ortools/linear_solver/BUILD.bazel +++ b/ortools/linear_solver/BUILD.bazel @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + load("@rules_cc//cc:defs.bzl", "cc_proto_library") load("@bazel_skylib//rules:copy_file.bzl", "copy_file") load("@com_google_protobuf//:protobuf.bzl", "py_proto_library") diff --git a/ortools/linear_solver/CMakeLists.txt b/ortools/linear_solver/CMakeLists.txt index b2bbc0ed3e..5a1974240a 100644 --- a/ortools/linear_solver/CMakeLists.txt +++ b/ortools/linear_solver/CMakeLists.txt @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + file(GLOB _SRCS "*.h" "*.cc") #list(FILTER _SRCS EXCLUDE REGEX ".*/solver_interface.cc") diff --git a/ortools/linear_solver/csharp/CMakeLists.txt b/ortools/linear_solver/csharp/CMakeLists.txt index 6eb51ed5c1..97181aa605 100644 --- a/ortools/linear_solver/csharp/CMakeLists.txt +++ b/ortools/linear_solver/csharp/CMakeLists.txt @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + set_property(SOURCE linear_solver.i PROPERTY CPLUSPLUS ON) set_property(SOURCE linear_solver.i PROPERTY SWIG_MODULE_NAME operations_research_linear_solver) set_property(SOURCE linear_solver.i PROPERTY COMPILE_DEFINITIONS diff --git a/ortools/linear_solver/java/CMakeLists.txt b/ortools/linear_solver/java/CMakeLists.txt index 77dba2cbf7..2994bf3c80 100644 --- a/ortools/linear_solver/java/CMakeLists.txt +++ b/ortools/linear_solver/java/CMakeLists.txt @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + set_property(SOURCE linear_solver.i PROPERTY CPLUSPLUS ON) set_property(SOURCE linear_solver.i PROPERTY SWIG_MODULE_NAME main) set_property(SOURCE linear_solver.i PROPERTY COMPILE_DEFINITIONS diff --git a/ortools/linear_solver/python/CMakeLists.txt b/ortools/linear_solver/python/CMakeLists.txt index 755f5501b9..686212e421 100644 --- a/ortools/linear_solver/python/CMakeLists.txt +++ b/ortools/linear_solver/python/CMakeLists.txt @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + set_property(SOURCE linear_solver.i PROPERTY CPLUSPLUS ON) set_property(SOURCE linear_solver.i PROPERTY SWIG_MODULE_NAME pywraplp) set_property(SOURCE linear_solver.i PROPERTY COMPILE_DEFINITIONS diff --git a/ortools/linear_solver/samples/BUILD.bazel b/ortools/linear_solver/samples/BUILD.bazel index e158308c76..6a98f5442c 100644 --- a/ortools/linear_solver/samples/BUILD.bazel +++ b/ortools/linear_solver/samples/BUILD.bazel @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + load(":code_samples.bzl", "code_sample_cc") code_sample_cc(name = "assignment_mip") diff --git a/ortools/linear_solver/samples/CMakeLists.txt b/ortools/linear_solver/samples/CMakeLists.txt index 90246fcd14..1c8a168796 100644 --- a/ortools/linear_solver/samples/CMakeLists.txt +++ b/ortools/linear_solver/samples/CMakeLists.txt @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + if(NOT BUILD_SAMPLES) return() endif() diff --git a/ortools/linear_solver/samples/assignment_groups_mip.py b/ortools/linear_solver/samples/assignment_groups_mip.py index 56bf2c1f8c..8ae7a72198 100755 --- a/ortools/linear_solver/samples/assignment_groups_mip.py +++ b/ortools/linear_solver/samples/assignment_groups_mip.py @@ -11,6 +11,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. + # [START program] """Solve assignment problem for given group of workers.""" # [START import] diff --git a/ortools/linear_solver/samples/assignment_task_sizes_mip.py b/ortools/linear_solver/samples/assignment_task_sizes_mip.py index b9225df7ca..70eb7f7bc0 100755 --- a/ortools/linear_solver/samples/assignment_task_sizes_mip.py +++ b/ortools/linear_solver/samples/assignment_task_sizes_mip.py @@ -11,6 +11,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. + # [START program] """MIP example that solves an assignment problem.""" # [START import] diff --git a/ortools/linear_solver/samples/assignment_teams_mip.py b/ortools/linear_solver/samples/assignment_teams_mip.py index 25b3ecbef8..792f82cc41 100755 --- a/ortools/linear_solver/samples/assignment_teams_mip.py +++ b/ortools/linear_solver/samples/assignment_teams_mip.py @@ -11,6 +11,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. + # [START program] """MIP example that solves an assignment problem.""" # [START import] diff --git a/ortools/lp_data/BUILD.bazel b/ortools/lp_data/BUILD.bazel index 8a9bea48e3..b3d7637217 100644 --- a/ortools/lp_data/BUILD.bazel +++ b/ortools/lp_data/BUILD.bazel @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + package(default_visibility = ["//visibility:public"]) config_setting( diff --git a/ortools/lp_data/CMakeLists.txt b/ortools/lp_data/CMakeLists.txt index d7f29bf30e..6cce498300 100644 --- a/ortools/lp_data/CMakeLists.txt +++ b/ortools/lp_data/CMakeLists.txt @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + file(GLOB _SRCS "*.h" "*.cc") set(NAME ${PROJECT_NAME}_lp_data) diff --git a/ortools/math_opt/BUILD.bazel b/ortools/math_opt/BUILD.bazel index 0fca9e46ad..189716434e 100644 --- a/ortools/math_opt/BUILD.bazel +++ b/ortools/math_opt/BUILD.bazel @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + load("@rules_cc//cc:defs.bzl", "cc_proto_library") package(default_visibility = ["//ortools/math_opt:__subpackages__"]) diff --git a/ortools/math_opt/constraints/sos/BUILD.bazel b/ortools/math_opt/constraints/sos/BUILD.bazel index 0ccfe7e7be..06c97f8e2b 100644 --- a/ortools/math_opt/constraints/sos/BUILD.bazel +++ b/ortools/math_opt/constraints/sos/BUILD.bazel @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + package(default_visibility = ["//ortools/math_opt:__subpackages__"]) exports_files( diff --git a/ortools/math_opt/core/BUILD.bazel b/ortools/math_opt/core/BUILD.bazel index c0189c2c38..27f8764a56 100644 --- a/ortools/math_opt/core/BUILD.bazel +++ b/ortools/math_opt/core/BUILD.bazel @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + package(default_visibility = ["//ortools/math_opt:__subpackages__"]) cc_library( diff --git a/ortools/math_opt/cpp/BUILD.bazel b/ortools/math_opt/cpp/BUILD.bazel index 0c21f2b57e..61330f6213 100644 --- a/ortools/math_opt/cpp/BUILD.bazel +++ b/ortools/math_opt/cpp/BUILD.bazel @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # External users should depend only on ":math_opt" and include # "math_opt.h". Hence other libraries are private. package(default_visibility = ["//ortools/math_opt:__subpackages__"]) diff --git a/ortools/math_opt/io/BUILD.bazel b/ortools/math_opt/io/BUILD.bazel index 76405497a3..a9d1e9273a 100644 --- a/ortools/math_opt/io/BUILD.bazel +++ b/ortools/math_opt/io/BUILD.bazel @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + package(default_visibility = ["//ortools/math_opt:__subpackages__"]) cc_library( diff --git a/ortools/math_opt/samples/BUILD.bazel b/ortools/math_opt/samples/BUILD.bazel index 3b3af20c05..bb70d26a60 100644 --- a/ortools/math_opt/samples/BUILD.bazel +++ b/ortools/math_opt/samples/BUILD.bazel @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + package(default_visibility = ["//visibility:public"]) cc_binary( diff --git a/ortools/math_opt/solvers/BUILD.bazel b/ortools/math_opt/solvers/BUILD.bazel index 74b0d2716d..558c2b5aca 100644 --- a/ortools/math_opt/solvers/BUILD.bazel +++ b/ortools/math_opt/solvers/BUILD.bazel @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + load("@rules_cc//cc:defs.bzl", "cc_proto_library") package(default_visibility = ["//ortools/math_opt:__subpackages__"]) diff --git a/ortools/math_opt/solvers/glpk/BUILD.bazel b/ortools/math_opt/solvers/glpk/BUILD.bazel index d10fd8d2bc..47067f4551 100644 --- a/ortools/math_opt/solvers/glpk/BUILD.bazel +++ b/ortools/math_opt/solvers/glpk/BUILD.bazel @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Code specific to GLPK used in glpk_solver.cc. package(default_visibility = ["//ortools/math_opt/solvers:__subpackages__"]) diff --git a/ortools/math_opt/solvers/gurobi/BUILD.bazel b/ortools/math_opt/solvers/gurobi/BUILD.bazel index b3ebd57344..087d906e86 100644 --- a/ortools/math_opt/solvers/gurobi/BUILD.bazel +++ b/ortools/math_opt/solvers/gurobi/BUILD.bazel @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + package(default_visibility = ["//ortools/math_opt:__subpackages__"]) cc_library( diff --git a/ortools/math_opt/storage/BUILD.bazel b/ortools/math_opt/storage/BUILD.bazel index da6eb8fe89..01ace57df9 100644 --- a/ortools/math_opt/storage/BUILD.bazel +++ b/ortools/math_opt/storage/BUILD.bazel @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + package(default_visibility = ["//ortools/math_opt:__subpackages__"]) cc_library( diff --git a/ortools/math_opt/validators/BUILD.bazel b/ortools/math_opt/validators/BUILD.bazel index d7fda25a50..05ae83a46e 100644 --- a/ortools/math_opt/validators/BUILD.bazel +++ b/ortools/math_opt/validators/BUILD.bazel @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + package(default_visibility = ["//ortools/math_opt:__subpackages__"]) cc_library( diff --git a/ortools/model_builder/java/CMakeLists.txt b/ortools/model_builder/java/CMakeLists.txt index 838e6b81e8..1471f5f17b 100644 --- a/ortools/model_builder/java/CMakeLists.txt +++ b/ortools/model_builder/java/CMakeLists.txt @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + set_property(SOURCE modelbuilder.i PROPERTY CPLUSPLUS ON) set_property(SOURCE modelbuilder.i PROPERTY SWIG_MODULE_NAME main) set_property(SOURCE modelbuilder.i PROPERTY COMPILE_DEFINITIONS diff --git a/ortools/model_builder/python/BUILD.bazel b/ortools/model_builder/python/BUILD.bazel index a32e4502f0..c0d0686678 100644 --- a/ortools/model_builder/python/BUILD.bazel +++ b/ortools/model_builder/python/BUILD.bazel @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Python wrapper for model_builder. load("@ortools_deps//:requirements.bzl", "requirement") diff --git a/ortools/model_builder/python/CMakeLists.txt b/ortools/model_builder/python/CMakeLists.txt index 4916adabdc..260138d395 100644 --- a/ortools/model_builder/python/CMakeLists.txt +++ b/ortools/model_builder/python/CMakeLists.txt @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + pybind11_add_module(pywrap_model_builder_helper MODULE pywrap_model_builder_helper.cc) # note: macOS is APPLE and also UNIX ! diff --git a/ortools/model_builder/samples/BUILD.bazel b/ortools/model_builder/samples/BUILD.bazel index 7e7c6692f1..986490e821 100644 --- a/ortools/model_builder/samples/BUILD.bazel +++ b/ortools/model_builder/samples/BUILD.bazel @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Samples code the model builder library. load(":code_samples.bzl", "code_sample_py") diff --git a/ortools/model_builder/samples/CMakeLists.txt b/ortools/model_builder/samples/CMakeLists.txt index 90246fcd14..1c8a168796 100644 --- a/ortools/model_builder/samples/CMakeLists.txt +++ b/ortools/model_builder/samples/CMakeLists.txt @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + if(NOT BUILD_SAMPLES) return() endif() diff --git a/ortools/model_builder/samples/code_samples.bzl b/ortools/model_builder/samples/code_samples.bzl index 58f11605d6..f6d53769bc 100644 --- a/ortools/model_builder/samples/code_samples.bzl +++ b/ortools/model_builder/samples/code_samples.bzl @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """Helper macro to compile and test code samples.""" load("@ortools_deps//:requirements.bzl", "requirement") diff --git a/ortools/model_builder/samples/code_samples_py_test.sh b/ortools/model_builder/samples/code_samples_py_test.sh index a4432bb7ce..9b68e415eb 100755 --- a/ortools/model_builder/samples/code_samples_py_test.sh +++ b/ortools/model_builder/samples/code_samples_py_test.sh @@ -1,4 +1,17 @@ -#!/bin/bash +#!/usr/bin/env bash +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + declare -r DIR="${TEST_SRCDIR}/com_google_ortools/ortools/model_builder/samples" diff --git a/ortools/model_builder/samples/simple_lp_program_mb.py b/ortools/model_builder/samples/simple_lp_program_mb.py index a6d46653c6..8f8b8aabaa 100644 --- a/ortools/model_builder/samples/simple_lp_program_mb.py +++ b/ortools/model_builder/samples/simple_lp_program_mb.py @@ -11,6 +11,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. + # [START program] """Minimal example to call the GLOP solver using model_builder.""" # [START import] diff --git a/ortools/model_builder/samples/simple_mip_program_mb.py b/ortools/model_builder/samples/simple_mip_program_mb.py index aa74d11f5e..f476e5cc20 100644 --- a/ortools/model_builder/samples/simple_mip_program_mb.py +++ b/ortools/model_builder/samples/simple_mip_program_mb.py @@ -11,6 +11,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. + # [START program] """Integer programming examples that show how to use the APIs.""" # [START import] diff --git a/ortools/model_builder/wrappers/BUILD.bazel b/ortools/model_builder/wrappers/BUILD.bazel index 67bcddb1f7..9612478812 100644 --- a/ortools/model_builder/wrappers/BUILD.bazel +++ b/ortools/model_builder/wrappers/BUILD.bazel @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # ModelBuilder: a lightweight implementation of the linear_solver API # Public exports. diff --git a/ortools/model_builder/wrappers/CMakeLists.txt b/ortools/model_builder/wrappers/CMakeLists.txt index e2e861ff70..4080b7d761 100644 --- a/ortools/model_builder/wrappers/CMakeLists.txt +++ b/ortools/model_builder/wrappers/CMakeLists.txt @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + file(GLOB _SRCS "*.h" "*.cc") set(NAME ${PROJECT_NAME}_model_builder_wrappers) diff --git a/ortools/packing/BUILD.bazel b/ortools/packing/BUILD.bazel index c0ea9f6a69..d434fa45ff 100644 --- a/ortools/packing/BUILD.bazel +++ b/ortools/packing/BUILD.bazel @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + load("@rules_cc//cc:defs.bzl", "cc_proto_library") package(default_visibility = ["//visibility:public"]) diff --git a/ortools/packing/CMakeLists.txt b/ortools/packing/CMakeLists.txt index 3636dd06a1..136a588fcd 100644 --- a/ortools/packing/CMakeLists.txt +++ b/ortools/packing/CMakeLists.txt @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + file(GLOB _SRCS "*.h" "*.cc") set(NAME ${PROJECT_NAME}_packing) diff --git a/ortools/pdlp/BUILD.bazel b/ortools/pdlp/BUILD.bazel index c2307ceac5..73c22ed901 100644 --- a/ortools/pdlp/BUILD.bazel +++ b/ortools/pdlp/BUILD.bazel @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + load("@rules_cc//cc:defs.bzl", "cc_proto_library") package(default_visibility = ["//visibility:public"]) diff --git a/ortools/port/BUILD.bazel b/ortools/port/BUILD.bazel index 5532a45ecc..b18b2db7ee 100644 --- a/ortools/port/BUILD.bazel +++ b/ortools/port/BUILD.bazel @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + package(default_visibility = ["//visibility:public"]) cc_library( diff --git a/ortools/port/CMakeLists.txt b/ortools/port/CMakeLists.txt index aae580528d..15a42aa2b7 100644 --- a/ortools/port/CMakeLists.txt +++ b/ortools/port/CMakeLists.txt @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + file(GLOB _SRCS "*.h" "*.cc") set(NAME ${PROJECT_NAME}_port) diff --git a/ortools/python/docs/generate_image.sh b/ortools/python/docs/generate_image.sh index 7d125b4b01..efcd745d3d 100755 --- a/ortools/python/docs/generate_image.sh +++ b/ortools/python/docs/generate_image.sh @@ -1,4 +1,17 @@ #!/usr/bin/env bash +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + set -euxo pipefail # Check plantuml is in PATH diff --git a/ortools/sat/BUILD.bazel b/ortools/sat/BUILD.bazel index 80152d41aa..d66ba6c844 100644 --- a/ortools/sat/BUILD.bazel +++ b/ortools/sat/BUILD.bazel @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Home of CP/SAT solver (which includes SAT, max-SAT and PB problems). # diff --git a/ortools/sat/CMakeLists.txt b/ortools/sat/CMakeLists.txt index e8872500e0..506091c58a 100644 --- a/ortools/sat/CMakeLists.txt +++ b/ortools/sat/CMakeLists.txt @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + file(GLOB _SRCS "*.h" "*.cc") set(NAME ${PROJECT_NAME}_sat) diff --git a/ortools/sat/csharp/CMakeLists.txt b/ortools/sat/csharp/CMakeLists.txt index ea78c32bea..ced0424a95 100644 --- a/ortools/sat/csharp/CMakeLists.txt +++ b/ortools/sat/csharp/CMakeLists.txt @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + set_property(SOURCE sat.i PROPERTY CPLUSPLUS ON) set_property(SOURCE sat.i PROPERTY SWIG_MODULE_NAME operations_research_sat) set_property(SOURCE sat.i PROPERTY COMPILE_DEFINITIONS diff --git a/ortools/sat/java/CMakeLists.txt b/ortools/sat/java/CMakeLists.txt index 1a7829caa7..787349d9c0 100644 --- a/ortools/sat/java/CMakeLists.txt +++ b/ortools/sat/java/CMakeLists.txt @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + set_property(SOURCE sat.i PROPERTY CPLUSPLUS ON) set_property(SOURCE sat.i PROPERTY SWIG_MODULE_NAME main) set_property(SOURCE sat.i PROPERTY COMPILE_DEFINITIONS diff --git a/ortools/sat/python/BUILD.bazel b/ortools/sat/python/BUILD.bazel index d0734f14fc..6331f77dda 100644 --- a/ortools/sat/python/BUILD.bazel +++ b/ortools/sat/python/BUILD.bazel @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Python wrapper for cp_model. load("@ortools_deps//:requirements.bzl", "requirement") diff --git a/ortools/sat/python/CMakeLists.txt b/ortools/sat/python/CMakeLists.txt index 942aba50a4..af4749dc98 100644 --- a/ortools/sat/python/CMakeLists.txt +++ b/ortools/sat/python/CMakeLists.txt @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + pybind11_add_module(swig_helper MODULE swig_helper.cc) # note: macOS is APPLE and also UNIX ! if(APPLE) diff --git a/ortools/sat/samples/BUILD.bazel b/ortools/sat/samples/BUILD.bazel index f512087011..dd131592a7 100644 --- a/ortools/sat/samples/BUILD.bazel +++ b/ortools/sat/samples/BUILD.bazel @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + load(":code_samples.bzl", "code_sample_cc_py", "code_sample_py") code_sample_cc_py(name = "assignment_sat") @@ -66,4 +79,4 @@ code_sample_cc_py(name = "step_function_sample_sat") code_sample_cc_py(name = "solve_with_time_limit_sample_sat") -code_sample_cc_py(name = "stop_after_n_solutions_sample_sat") \ No newline at end of file +code_sample_cc_py(name = "stop_after_n_solutions_sample_sat") diff --git a/ortools/sat/samples/CMakeLists.txt b/ortools/sat/samples/CMakeLists.txt index 90246fcd14..1c8a168796 100644 --- a/ortools/sat/samples/CMakeLists.txt +++ b/ortools/sat/samples/CMakeLists.txt @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + if(NOT BUILD_SAMPLES) return() endif() diff --git a/ortools/scheduling/BUILD.bazel b/ortools/scheduling/BUILD.bazel index 5195a92a3c..4b677fbd97 100644 --- a/ortools/scheduling/BUILD.bazel +++ b/ortools/scheduling/BUILD.bazel @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + load("@rules_cc//cc:defs.bzl", "cc_proto_library") package(default_visibility = ["//visibility:public"]) diff --git a/ortools/scheduling/CMakeLists.txt b/ortools/scheduling/CMakeLists.txt index e0c3a831df..cb11f89efc 100644 --- a/ortools/scheduling/CMakeLists.txt +++ b/ortools/scheduling/CMakeLists.txt @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + file(GLOB _SRCS "*.h" "*.cc") set(NAME ${PROJECT_NAME}_scheduling) diff --git a/ortools/scheduling/python/CMakeLists.txt b/ortools/scheduling/python/CMakeLists.txt index a636ff4b4f..79acf468cf 100644 --- a/ortools/scheduling/python/CMakeLists.txt +++ b/ortools/scheduling/python/CMakeLists.txt @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + set_property(SOURCE rcpsp.i PROPERTY CPLUSPLUS ON) set_property(SOURCE rcpsp.i PROPERTY SWIG_MODULE_NAME pywraprcpsp) set_property(SOURCE rcpsp.i PROPERTY COMPILE_DEFINITIONS diff --git a/ortools/util/BUILD.bazel b/ortools/util/BUILD.bazel index e27d20b9ab..7d6bf0f850 100644 --- a/ortools/util/BUILD.bazel +++ b/ortools/util/BUILD.bazel @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + load("@rules_cc//cc:defs.bzl", "cc_proto_library") load("@com_google_protobuf//:protobuf.bzl", "py_proto_library") diff --git a/ortools/util/CMakeLists.txt b/ortools/util/CMakeLists.txt index b14d317d95..89050b8ee4 100644 --- a/ortools/util/CMakeLists.txt +++ b/ortools/util/CMakeLists.txt @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + file(GLOB _SRCS "*.h" "*.cc") set(NAME ${PROJECT_NAME}_util) diff --git a/ortools/util/csharp/CMakeLists.txt b/ortools/util/csharp/CMakeLists.txt index 9cae704291..3425807f34 100644 --- a/ortools/util/csharp/CMakeLists.txt +++ b/ortools/util/csharp/CMakeLists.txt @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + set_property(SOURCE sorted_interval_list.i PROPERTY CPLUSPLUS ON) set_property(SOURCE sorted_interval_list.i PROPERTY SWIG_MODULE_NAME operations_research_util) set_property(SOURCE sorted_interval_list.i PROPERTY COMPILE_DEFINITIONS diff --git a/ortools/util/java/CMakeLists.txt b/ortools/util/java/CMakeLists.txt index dd0bff2fbf..15a5e1f0ff 100644 --- a/ortools/util/java/CMakeLists.txt +++ b/ortools/util/java/CMakeLists.txt @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + set_property(SOURCE sorted_interval_list.i PROPERTY CPLUSPLUS ON) set_property(SOURCE sorted_interval_list.i PROPERTY SWIG_MODULE_NAME main) set_property(SOURCE sorted_interval_list.i PROPERTY COMPILE_DEFINITIONS diff --git a/ortools/util/python/BUILD.bazel b/ortools/util/python/BUILD.bazel index 0442adf02f..dc170e0673 100644 --- a/ortools/util/python/BUILD.bazel +++ b/ortools/util/python/BUILD.bazel @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Python wrapper for model_builder. load("@pybind11_bazel//:build_defs.bzl", "pybind_extension") diff --git a/ortools/util/python/CMakeLists.txt b/ortools/util/python/CMakeLists.txt index 14e7cb42ad..85c0c8ded9 100644 --- a/ortools/util/python/CMakeLists.txt +++ b/ortools/util/python/CMakeLists.txt @@ -1,3 +1,16 @@ +# Copyright 2010-2022 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + pybind11_add_module(sorted_interval_list MODULE sorted_interval_list.cc) # note: macOS is APPLE and also UNIX !