blob: 85b4d626473ec1e0e0d84550d0b641391bc3d0ce [file] [log] [blame]
Adam Lesinski40e8eef2014-09-16 14:43:29 -07001/*
2 * Copyright (C) 2014 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 H_ANDROID_SPLIT_ABI
18#define H_ANDROID_SPLIT_ABI
19
Adam Lesinskic3dc0b52014-11-03 12:05:15 -080020#include <utils/Vector.h>
Adam Lesinski40e8eef2014-09-16 14:43:29 -070021
22namespace split {
23namespace abi {
24
Adam Lesinskic3dc0b52014-11-03 12:05:15 -080025enum Variant {
26 Variant_none = 0,
27 Variant_armeabi,
28 Variant_armeabi_v7a,
29 Variant_arm64_v8a,
30 Variant_x86,
31 Variant_x86_64,
32 Variant_mips,
33 Variant_mips64,
Adam Lesinski40e8eef2014-09-16 14:43:29 -070034};
35
Adam Lesinskic3dc0b52014-11-03 12:05:15 -080036enum Family {
37 Family_none,
38 Family_arm,
39 Family_intel,
40 Family_mips,
Adam Lesinski40e8eef2014-09-16 14:43:29 -070041};
42
43Family getFamily(Variant variant);
Adam Lesinskic3dc0b52014-11-03 12:05:15 -080044const android::Vector<Variant>& getVariants(Family family);
Adam Lesinski40e8eef2014-09-16 14:43:29 -070045const char* toString(Variant variant);
46
47} // namespace abi
48} // namespace split
49
50#endif // H_ANDROID_SPLIT_ABI