1// Copyright (C) 2020 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 15python_defaults { 16 name: "treble_split_default", 17 pkg_path: "treble", 18 version: { 19 py2: { 20 enabled: false, 21 }, 22 py3: { 23 enabled: true, 24 }, 25 }, 26 libs: [ 27 "py-setuptools", 28 ], 29} 30 31python_binary_host { 32 name: "treble_manifest_split", 33 main: "manifest_split.py", 34 defaults: ["treble_split_default"], 35 srcs: [ 36 "manifest_split.py", 37 ], 38 data: [ 39 "default_config.xml", 40 ], 41} 42 43python_test_host { 44 name: "treble_manifest_split_test", 45 main: "test.py", 46 defaults: ["treble_split_default"], 47 srcs: [ 48 "manifest_split.py", 49 "manifest_split_test.py", 50 "test.py", 51 ], 52 libs: [ 53 "py-mock", 54 ], 55 test_config: "test.xml", 56 test_suites: ["general-tests"], 57} 58