blob: 6ca87bf0f1decf210b92ba89537bd5fa1fb4c4dc [file] [log] [blame]
Stephen Hines4a4bf922011-08-18 17:20:33 -07001/*
Stephen Hines5e3b6772012-03-21 08:02:10 -07002 * Copyright 2011-2012, The Android Open Source Project
Stephen Hines4a4bf922011-08-18 17:20:33 -07003 *
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 Hines4cc499d2011-08-24 19:06:17 -070017#ifndef _FRAMEWORKS_COMPILE_SLANG_SLANG_VERSION_H_ // NOLINT
18#define _FRAMEWORKS_COMPILE_SLANG_SLANG_VERSION_H_
Stephen Hines4a4bf922011-08-18 17:20:33 -070019
20// API levels used by the standard Android SDK.
21//
Stephen Hinesa546cb62011-08-29 17:07:00 -070022// 11 - Honeycomb
Stephen Hines4a4bf922011-08-18 17:20:33 -070023// 12 - Honeycomb MR1
24// 13 - Honeycomb MR2
25// 14 - Ice Cream Sandwich
26// ...
Stephen Hinesa546cb62011-08-29 17:07:00 -070027#define SLANG_MINIMUM_TARGET_API 11
Stephen Hines4cc499d2011-08-24 19:06:17 -070028#define SLANG_MAXIMUM_TARGET_API RS_VERSION
29// Note that RS_VERSION is defined at build time (see Android.mk for details).
Stephen Hines4a4bf922011-08-18 17:20:33 -070030
Stephen Hines4cc499d2011-08-24 19:06:17 -070031#define SLANG_ICS_TARGET_API 14
Stephen Hines4a4bf922011-08-18 17:20:33 -070032
Stephen Hines5e3b6772012-03-21 08:02:10 -070033// SlangVersion refers to the released compiler version (for which certain
34// behaviors could change - i.e. critical bugs fixed that may require
35// additional workarounds in the backend compiler).
36namespace SlangVersion {
37enum {
38 LEGACY = 0,
39 ICS = 1400,
40 CURRENT = ICS
41};
42} // namespace SlangVersion
43
Stephen Hines4cc499d2011-08-24 19:06:17 -070044#endif // _FRAMEWORKS_COMPILE_SLANG_SLANG_VERSION_H_ NOLINT