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 | |
Jiri Simsa | 5293dcb | 2014-05-10 09:56:38 -0700 | [diff] [blame] | 5 | // Package profile contains implementation and internal interfaces and |
Suharsh Sivakumar | d1cc6e0 | 2015-03-16 13:58:49 -0700 | [diff] [blame] | 6 | // types used by the implementation of Vanadium profiles. |
Jiri Simsa | 5293dcb | 2014-05-10 09:56:38 -0700 | [diff] [blame] | 7 | package profile |
| 8 | |
Todd Wang | 94c9d0b | 2015-04-01 14:27:00 -0700 | [diff] [blame^] | 9 | import "v.io/v23/services/build" |
Jiri Simsa | 5293dcb | 2014-05-10 09:56:38 -0700 | [diff] [blame] | 10 | |
| 11 | // Library describes a shared library that applications may use. |
| 12 | type Library struct { |
Jiri Simsa | ddbfebb | 2014-06-20 15:56:06 -0700 | [diff] [blame] | 13 | // Name is the name of the library. |
| 14 | Name string |
| 15 | // MajorVersion is the major version of the library. |
| 16 | MajorVersion string |
| 17 | // MinorVersion is the minor version of the library. |
| 18 | MinorVersion string |
Jiri Simsa | 5293dcb | 2014-05-10 09:56:38 -0700 | [diff] [blame] | 19 | } |
| 20 | |
| 21 | // Specification is how we represent a profile internally. It should |
Bogdan Caprita | 2b21936 | 2014-12-09 17:03:33 -0800 | [diff] [blame] | 22 | // provide enough information to allow matching of binaries to devices. |
Jiri Simsa | 5293dcb | 2014-05-10 09:56:38 -0700 | [diff] [blame] | 23 | type Specification struct { |
Bogdan Caprita | 54ae80e | 2015-01-20 13:37:52 -0800 | [diff] [blame] | 24 | // Label is a human-friendly concise label for the profile, |
| 25 | // e.g. "linux-media". |
| 26 | Label string |
Jiri Simsa | 2f8bc27 | 2014-07-16 12:29:15 -0700 | [diff] [blame] | 27 | // Description is a human-friendly description of the profile. |
Jiri Simsa | ddbfebb | 2014-06-20 15:56:06 -0700 | [diff] [blame] | 28 | Description string |
Bogdan Caprita | 54ae80e | 2015-01-20 13:37:52 -0800 | [diff] [blame] | 29 | // Arch is the target hardware architecture of the profile. |
| 30 | Arch build.Architecture |
Todd Wang | 53a4e2e | 2015-03-18 10:54:54 -0700 | [diff] [blame] | 31 | // Os is the target operating system of the profile. |
| 32 | Os build.OperatingSystem |
Jiri Simsa | 2f8bc27 | 2014-07-16 12:29:15 -0700 | [diff] [blame] | 33 | // Format is the file format supported by the profile. |
| 34 | Format build.Format |
| 35 | // Libraries is a set of libraries the profile requires. |
| 36 | Libraries set[Library] |
Jiri Simsa | 5293dcb | 2014-05-10 09:56:38 -0700 | [diff] [blame] | 37 | } |