Jiri Simsa | 756772c | 2015-03-25 15:40:54 -0700 | [diff] [blame] | 1 | // Copyright 2015 The Vanadium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style |
| 3 | // license that can be found in the LICENSE file. |
| 4 | |
Todd Wang | 8c4e5cc | 2015-04-09 11:30:52 -0700 | [diff] [blame] | 5 | // Package profile defines types for the implementation of Vanadium profiles. |
Jiri Simsa | 5293dcb | 2014-05-10 09:56:38 -0700 | [diff] [blame] | 6 | package profile |
| 7 | |
Todd Wang | 94c9d0b | 2015-04-01 14:27:00 -0700 | [diff] [blame] | 8 | import "v.io/v23/services/build" |
Jiri Simsa | 5293dcb | 2014-05-10 09:56:38 -0700 | [diff] [blame] | 9 | |
| 10 | // Library describes a shared library that applications may use. |
| 11 | type Library struct { |
Jiri Simsa | ddbfebb | 2014-06-20 15:56:06 -0700 | [diff] [blame] | 12 | // Name is the name of the library. |
| 13 | Name string |
| 14 | // MajorVersion is the major version of the library. |
| 15 | MajorVersion string |
| 16 | // MinorVersion is the minor version of the library. |
| 17 | MinorVersion string |
Jiri Simsa | 5293dcb | 2014-05-10 09:56:38 -0700 | [diff] [blame] | 18 | } |
| 19 | |
| 20 | // Specification is how we represent a profile internally. It should |
Bogdan Caprita | 2b21936 | 2014-12-09 17:03:33 -0800 | [diff] [blame] | 21 | // provide enough information to allow matching of binaries to devices. |
Jiri Simsa | 5293dcb | 2014-05-10 09:56:38 -0700 | [diff] [blame] | 22 | type Specification struct { |
Bogdan Caprita | 54ae80e | 2015-01-20 13:37:52 -0800 | [diff] [blame] | 23 | // Label is a human-friendly concise label for the profile, |
| 24 | // e.g. "linux-media". |
| 25 | Label string |
Jiri Simsa | 2f8bc27 | 2014-07-16 12:29:15 -0700 | [diff] [blame] | 26 | // Description is a human-friendly description of the profile. |
Jiri Simsa | ddbfebb | 2014-06-20 15:56:06 -0700 | [diff] [blame] | 27 | Description string |
Bogdan Caprita | 54ae80e | 2015-01-20 13:37:52 -0800 | [diff] [blame] | 28 | // Arch is the target hardware architecture of the profile. |
| 29 | Arch build.Architecture |
Todd Wang | 53a4e2e | 2015-03-18 10:54:54 -0700 | [diff] [blame] | 30 | // Os is the target operating system of the profile. |
| 31 | Os build.OperatingSystem |
Jiri Simsa | 2f8bc27 | 2014-07-16 12:29:15 -0700 | [diff] [blame] | 32 | // Format is the file format supported by the profile. |
| 33 | Format build.Format |
| 34 | // Libraries is a set of libraries the profile requires. |
| 35 | Libraries set[Library] |
Jiri Simsa | 5293dcb | 2014-05-10 09:56:38 -0700 | [diff] [blame] | 36 | } |