Ivan Lozano | d7586b6 | 2021-04-01 09:49:36 -0400 | [diff] [blame^] | 1 | // Copyright 2021 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 | |
| 15 | package rust |
| 16 | |
| 17 | import ( |
| 18 | "android/soong/android" |
| 19 | ) |
| 20 | |
| 21 | func (mod *Module) ExcludeFromVendorSnapshot() bool { |
| 22 | // TODO Rust does not yet support snapshotting |
| 23 | return true |
| 24 | } |
| 25 | |
| 26 | func (mod *Module) ExcludeFromRecoverySnapshot() bool { |
| 27 | // TODO Rust does not yet support snapshotting |
| 28 | return true |
| 29 | } |
| 30 | |
| 31 | func (mod *Module) IsSnapshotLibrary() bool { |
| 32 | // TODO Rust does not yet support snapshotting |
| 33 | return false |
| 34 | } |
| 35 | |
| 36 | func (mod *Module) SnapshotRuntimeLibs() []string { |
| 37 | // TODO Rust does not yet support a runtime libs notion similar to CC |
| 38 | return []string{} |
| 39 | } |
| 40 | |
| 41 | func (mod *Module) SnapshotSharedLibs() []string { |
| 42 | // TODO Rust does not yet support snapshotting |
| 43 | return []string{} |
| 44 | } |
| 45 | |
| 46 | func (mod *Module) Symlinks() []string { |
| 47 | // TODO update this to return the list of symlinks when Rust supports defining symlinks |
| 48 | return nil |
| 49 | } |
| 50 | |
| 51 | func (m *Module) SnapshotHeaders() android.Paths { |
| 52 | // TODO Rust does not yet support snapshotting |
| 53 | return android.Paths{} |
| 54 | } |