Stephen Hines | 4a4bf92 | 2011-08-18 17:20:33 -0700 | [diff] [blame] | 1 | /* |
Stephen Hines | 5e3b677 | 2012-03-21 08:02:10 -0700 | [diff] [blame] | 2 | * Copyright 2011-2012, The Android Open Source Project |
Stephen Hines | 4a4bf92 | 2011-08-18 17:20:33 -0700 | [diff] [blame] | 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
Stephen Hines | 4cc499d | 2011-08-24 19:06:17 -0700 | [diff] [blame] | 17 | #ifndef _FRAMEWORKS_COMPILE_SLANG_SLANG_VERSION_H_ // NOLINT |
| 18 | #define _FRAMEWORKS_COMPILE_SLANG_SLANG_VERSION_H_ |
Stephen Hines | 4a4bf92 | 2011-08-18 17:20:33 -0700 | [diff] [blame] | 19 | |
Chris Wailes | c9454af | 2014-06-13 17:25:40 -0700 | [diff] [blame] | 20 | #include <climits> |
| 21 | |
| 22 | #define RS_DEVELOPMENT_API UINT_MAX |
Chris Wailes | 9e3aa07 | 2014-06-16 18:52:02 -0700 | [diff] [blame] | 23 | |
Stephen Hines | 4a4bf92 | 2011-08-18 17:20:33 -0700 | [diff] [blame] | 24 | // API levels used by the standard Android SDK. |
Stephen Hines | 9b044ec | 2011-11-23 16:30:16 -0800 | [diff] [blame] | 25 | // MR -> Maintenance Release |
| 26 | // HC -> Honeycomb |
| 27 | // ICS -> Ice Cream Sandwich |
Stephen Hines | 41cc610 | 2012-02-16 00:42:23 -0800 | [diff] [blame] | 28 | // JB -> Jelly Bean |
Jean-Luc Brouillet | 0f2a239 | 2014-01-14 11:40:57 -0800 | [diff] [blame] | 29 | // KK -> KitKat |
Stephen Hines | 9b044ec | 2011-11-23 16:30:16 -0800 | [diff] [blame] | 30 | enum SlangTargetAPI { |
| 31 | SLANG_MINIMUM_TARGET_API = 11, |
| 32 | SLANG_HC_TARGET_API = 11, |
| 33 | SLANG_HC_MR1_TARGET_API = 12, |
| 34 | SLANG_HC_MR2_TARGET_API = 13, |
| 35 | SLANG_ICS_TARGET_API = 14, |
| 36 | SLANG_ICS_MR1_TARGET_API = 15, |
Stephen Hines | 41cc610 | 2012-02-16 00:42:23 -0800 | [diff] [blame] | 37 | SLANG_JB_TARGET_API = 16, |
Stephen Hines | fe2b93d | 2012-08-01 19:09:58 -0700 | [diff] [blame] | 38 | SLANG_JB_MR1_TARGET_API = 17, |
Stephen Hines | 9221935 | 2012-12-12 16:54:43 -0800 | [diff] [blame] | 39 | SLANG_JB_MR2_TARGET_API = 18, |
Stephen Hines | 4f67319 | 2013-12-19 14:02:18 -0800 | [diff] [blame] | 40 | SLANG_KK_TARGET_API = 19, |
Stephen Hines | b3e022a | 2015-05-21 09:44:14 -0700 | [diff] [blame] | 41 | SLANG_M_TARGET_API = 23, |
Chris Wailes | c9454af | 2014-06-13 17:25:40 -0700 | [diff] [blame] | 42 | SLANG_MAXIMUM_TARGET_API = RS_VERSION, |
| 43 | SLANG_DEVELOPMENT_TARGET_API = RS_DEVELOPMENT_API |
Stephen Hines | 9b044ec | 2011-11-23 16:30:16 -0800 | [diff] [blame] | 44 | }; |
Stephen Hines | 4cc499d | 2011-08-24 19:06:17 -0700 | [diff] [blame] | 45 | // Note that RS_VERSION is defined at build time (see Android.mk for details). |
Stephen Hines | 4a4bf92 | 2011-08-18 17:20:33 -0700 | [diff] [blame] | 46 | |
Stephen Hines | 5e3b677 | 2012-03-21 08:02:10 -0700 | [diff] [blame] | 47 | // SlangVersion refers to the released compiler version (for which certain |
| 48 | // behaviors could change - i.e. critical bugs fixed that may require |
| 49 | // additional workarounds in the backend compiler). |
| 50 | namespace SlangVersion { |
| 51 | enum { |
| 52 | LEGACY = 0, |
| 53 | ICS = 1400, |
Stephen Hines | 59e3736 | 2012-07-16 14:37:12 -0700 | [diff] [blame] | 54 | JB = 1600, |
Stephen Hines | fe2b93d | 2012-08-01 19:09:58 -0700 | [diff] [blame] | 55 | JB_MR1 = 1700, |
Stephen Hines | 5097474 | 2013-02-12 22:11:08 -0800 | [diff] [blame] | 56 | JB_MR2 = 1800, |
Stephen Hines | 4f67319 | 2013-12-19 14:02:18 -0800 | [diff] [blame] | 57 | KK = 1900, |
Stephen Hines | 76110d5 | 2014-01-14 18:33:58 -0800 | [diff] [blame] | 58 | KK_P1 = 1901, |
Stephen Hines | b3e022a | 2015-05-21 09:44:14 -0700 | [diff] [blame] | 59 | L = 2100, |
| 60 | M = 2300, |
| 61 | CURRENT = M |
Stephen Hines | 5e3b677 | 2012-03-21 08:02:10 -0700 | [diff] [blame] | 62 | }; |
| 63 | } // namespace SlangVersion |
| 64 | |
Stephen Hines | 4cc499d | 2011-08-24 19:06:17 -0700 | [diff] [blame] | 65 | #endif // _FRAMEWORKS_COMPILE_SLANG_SLANG_VERSION_H_ NOLINT |