1# Copyright (C) 2022 The Android Open Source Project 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14 15filegroup( 16 name = "collect_zip", 17 srcs = [":collect"], 18 output_group = "python_zip_file", 19) 20 21py_binary( 22 name = "collect", 23 srcs = ["collect.py"], 24 python_version = "PY3", 25) 26 27filegroup( 28 name = "difftool_zip", 29 srcs = [":difftool"], 30 output_group = "python_zip_file", 31) 32 33py_library( 34 name = "difftool_commands", 35 srcs = [ 36 "clangcompile.py", 37 "commands.py", 38 ], 39 deps = [ 40 "//build/bazel/scripts/difftool/diffs", 41 ], 42) 43 44py_test( 45 name = "difftool_test", 46 srcs = ["difftool_test.py"], 47 deps = [ 48 ":collect", 49 ":difftool", 50 ], 51) 52 53py_binary( 54 name = "difftool", 55 srcs = ["difftool.py"], 56 python_version = "PY3", 57 deps = [ 58 ":collect", 59 ":difftool_commands", 60 ], 61) 62