slang_version.h revision 4f673191448c2a76c7dc5d18ff45bb7954968ea6
1/*
2 * Copyright 2011-2012, The Android Open Source Project
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
17#ifndef _FRAMEWORKS_COMPILE_SLANG_SLANG_VERSION_H_  // NOLINT
18#define _FRAMEWORKS_COMPILE_SLANG_SLANG_VERSION_H_
19
20// API levels used by the standard Android SDK.
21// MR -> Maintenance Release
22// HC -> Honeycomb
23// ICS -> Ice Cream Sandwich
24// JB -> Jelly Bean
25enum SlangTargetAPI {
26  SLANG_MINIMUM_TARGET_API = 11,
27  SLANG_HC_TARGET_API = 11,
28  SLANG_HC_MR1_TARGET_API = 12,
29  SLANG_HC_MR2_TARGET_API = 13,
30  SLANG_ICS_TARGET_API = 14,
31  SLANG_ICS_MR1_TARGET_API = 15,
32  SLANG_JB_TARGET_API = 16,
33  SLANG_JB_MR1_TARGET_API = 17,
34  SLANG_JB_MR2_TARGET_API = 18,
35  SLANG_KK_TARGET_API = 19,
36  SLANG_MAXIMUM_TARGET_API = RS_VERSION
37};
38// Note that RS_VERSION is defined at build time (see Android.mk for details).
39
40// SlangVersion refers to the released compiler version (for which certain
41// behaviors could change - i.e. critical bugs fixed that may require
42// additional workarounds in the backend compiler).
43namespace SlangVersion {
44enum {
45  LEGACY = 0,
46  ICS = 1400,
47  JB = 1600,
48  JB_MR1 = 1700,
49  JB_MR2 = 1800,
50  KK = 1900,
51  CURRENT = KK
52};
53}  // namespace SlangVersion
54
55#endif  // _FRAMEWORKS_COMPILE_SLANG_SLANG_VERSION_H_  NOLINT
56