1// Copyright (C) 2018 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 15package { 16 default_applicable_licenses: ["Android-Apache-2.0"], 17} 18 19python_binary_host { 20 name: "aidegen", 21 // Make aidegen's built name to aidegen-dev 22 suffix: "-dev", 23 main: "aidegen_main.py", 24 pkg_path: "aidegen", 25 srcs: [ 26 "**/*.py", 27 ], 28 libs: [ 29 "atest_module_info", 30 "asuite_cc_client", 31 "asuite_plugin_lib", 32 ], 33 dist: { 34 targets: ["droidcore"], 35 }, 36} 37 38python_library_host { 39 name: "aidegen_lib", 40 pkg_path: "aidegen", 41 srcs: [ 42 "**/*.py", 43 ], 44 exclude_srcs: [ 45 "*_unittest.py", 46 "*/*_unittest.py", 47 ] 48} 49 50python_library_host { 51 name: "aidegen_lib_common_util", 52 pkg_path: "aidegen", 53 srcs: [ 54 "lib/common_util.py", 55 "lib/config.py", 56 "lib/errors.py", 57 "constant.py", 58 "templates.py" 59 ], 60 exclude_srcs: [ 61 "*_unittest.py", 62 "*/*_unittest.py", 63 ] 64} 65 66python_test_host { 67 name: "aidegen_unittests", 68 main: "aidegen_run_unittests.py", 69 pkg_path: "aidegen", 70 srcs: [ 71 "**/*.py", 72 ], 73 data: [ 74 "test_data/**/*", 75 ], 76 libs: [ 77 "atest_module_info", 78 "asuite_cc_client", 79 ], 80 test_config: "aidegen_unittests.xml", 81 test_suites: ["null-suite"], 82 test_options:{ 83 unit_test: false, 84 }, 85} 86