Abi.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*
  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. #ifndef H_ANDROID_SPLIT_ABI
  17. #define H_ANDROID_SPLIT_ABI
  18. #include <utils/Vector.h>
  19. namespace split {
  20. namespace abi {
  21. enum Variant {
  22. Variant_none = 0,
  23. Variant_armeabi,
  24. Variant_armeabi_v7a,
  25. Variant_arm64_v8a,
  26. Variant_x86,
  27. Variant_x86_64,
  28. Variant_mips,
  29. Variant_mips64,
  30. };
  31. enum Family {
  32. Family_none,
  33. Family_arm,
  34. Family_intel,
  35. Family_mips,
  36. };
  37. Family getFamily(Variant variant);
  38. const android::Vector<Variant>& getVariants(Family family);
  39. const char* toString(Variant variant);
  40. } // namespace abi
  41. } // namespace split
  42. #endif // H_ANDROID_SPLIT_ABI