From 22efb3393b1501a518cb2a5e601f9ffef58d1f48 Mon Sep 17 00:00:00 2001 From: Julien Desprez Date: Tue, 31 May 2022 10:24:41 -0700 Subject: Add build files for portpicker Test: presubmit Bug: 234458076 Change-Id: I50310ccd76258c3fc96957d5e7b83aca933db1ad --- Android.bp | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 Android.bp diff --git a/Android.bp b/Android.bp new file mode 100644 index 0000000..96f8529 --- /dev/null +++ b/Android.bp @@ -0,0 +1,44 @@ +// Copyright 2022 Google Inc. All rights reserved. +// +// 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_applicable_licenses: ["external_python_portpicker_license"], +} + +license { + name: "external_python_portpicker_license", + visibility: [":__subpackages__"], + license_kinds: [ + "SPDX-license-identifier-Apache-2.0", + ], + license_text: [ + "LICENSE", + ], +} + +python_library { + name: "py-portpicker", + host_supported: true, + srcs: [ + "src/portpicker.py", + "src/portserver.py", + ], + version: { + py2: { + enabled: false, + }, + py3: { + enabled: true, + }, + }, +} -- cgit v1.2.3