diff options
author | Ibrahim Kanouche <kanouche@google.com> | 2023-02-21 18:19:07 +0000 |
---|---|---|
committer | Ibrahim Kanouche <kanouche@google.com> | 2023-02-28 22:00:56 +0000 |
commit | f5f50ce9aafefee0a8dac84bd4730e33626c8f3f (patch) | |
tree | 2760d4490794301fcea4128a493f07b1b132d877 /builder | |
parent | d335a5462d80ea9ee4120488439836428b21ab3b (diff) | |
download | spdx-tools-f5f50ce9aafefee0a8dac84bd4730e33626c8f3f.tar.gz |
Added blueprints to spdx-tools library
Test: m all
Change-Id: Iccd31e33b40d6d7cd1a876ca468332b01d1b9e34
Diffstat (limited to 'builder')
-rw-r--r-- | builder/Android.bp | 35 | ||||
-rw-r--r-- | builder/builder2v1/Android.bp | 44 | ||||
-rw-r--r-- | builder/builder2v2/Android.bp | 44 | ||||
-rw-r--r-- | builder/builder2v3/Android.bp | 44 |
4 files changed, 167 insertions, 0 deletions
diff --git a/builder/Android.bp b/builder/Android.bp new file mode 100644 index 0000000..4f57937 --- /dev/null +++ b/builder/Android.bp @@ -0,0 +1,35 @@ +// +// Copyright (C) 2023 The Android Open Source Project +// +// 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: ["Android-Apache-2.0"], + default_visibility: [ + "//external/spdx-tools:__subpackages__", + "//build/make/tools/compliance:__subpackages__", + ], +} + +bootstrap_go_package { + name: "spdx-tools-builder", + pkgPath: "github.com/spdx/tools-golang/builder", + srcs: ["build.go"], + deps: [ + "spdx-tools-builder2v1", + "spdx-tools-builder2v2", + "spdx-tools-builder2v3", + "spdx-tools-spdxv2_3", + ], + testSrcs: ["build_test.go"], +} diff --git a/builder/builder2v1/Android.bp b/builder/builder2v1/Android.bp new file mode 100644 index 0000000..753f4a0 --- /dev/null +++ b/builder/builder2v1/Android.bp @@ -0,0 +1,44 @@ +// +// Copyright (C) 2023 The Android Open Source Project +// +// 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: ["Android-Apache-2.0"], + default_visibility: [ + "//external/spdx-tools:__subpackages__", + "//build/make/tools/compliance:__subpackages__", + ], +} + +bootstrap_go_package { + name: "spdx-tools-builder2v1", + pkgPath: "github.com/spdx/tools-golang/builder/builder2v1", + srcs: [ + "build_creation_info.go", + "build_file.go", + "build_package.go", + "build_relationship.go", + ], + deps: [ + "spdx-tools-spdxcommon", + "spdx-tools-spdxv2_1", + "spdx-tools-utils", + ], + testSrcs: [ + "build_creation_info_test.go", + "build_file_test.go", + "build_package_test.go", + "build_relationship_test.go", + ], +} diff --git a/builder/builder2v2/Android.bp b/builder/builder2v2/Android.bp new file mode 100644 index 0000000..d77ccaf --- /dev/null +++ b/builder/builder2v2/Android.bp @@ -0,0 +1,44 @@ +// +// Copyright (C) 2023 The Android Open Source Project +// +// 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: ["Android-Apache-2.0"], + default_visibility: [ + "//external/spdx-tools:__subpackages__", + "//build/make/tools/compliance:__subpackages__", + ], +} + +bootstrap_go_package { + name: "spdx-tools-builder2v2", + pkgPath: "github.com/spdx/tools-golang/builder/builder2v2", + srcs: [ + "build_creation_info.go", + "build_file.go", + "build_package.go", + "build_relationship.go", + ], + deps: [ + "spdx-tools-spdxcommon", + "spdx-tools-spdxv2_2", + "spdx-tools-utils", + ], + testSrcs: [ + "build_creation_info_test.go", + "build_file_test.go", + "build_package_test.go", + "build_relationship_test.go", + ], +} diff --git a/builder/builder2v3/Android.bp b/builder/builder2v3/Android.bp new file mode 100644 index 0000000..2646d0c --- /dev/null +++ b/builder/builder2v3/Android.bp @@ -0,0 +1,44 @@ +// +// Copyright (C) 2023 The Android Open Source Project +// +// 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: ["Android-Apache-2.0"], + default_visibility: [ + "//external/spdx-tools:__subpackages__", + "//build/make/tools/compliance:__subpackages__", + ], +} + +bootstrap_go_package { + name: "spdx-tools-builder2v3", + pkgPath: "github.com/spdx/tools-golang/builder/builder2v3", + srcs: [ + "build_creation_info.go", + "build_file.go", + "build_package.go", + "build_relationship.go", + ], + deps: [ + "spdx-tools-spdxcommon", + "spdx-tools-spdxv2_3", + "spdx-tools-utils", + ], + testSrcs: [ + "build_creation_info_test.go", + "build_file_test.go", + "build_package_test.go", + "build_relationship_test.go", + ], +} |