Android.mk 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. #
  2. # Copyright 2015 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. LOCAL_PATH := $(call my-dir)
  17. swiftshader_root := $(LOCAL_PATH)
  18. # Subzero is an alternative JIT compiler. It is smaller and generally slower.
  19. REACTOR_USE_SUBZERO := false
  20. # SwiftShader requires C++11.
  21. # Full C++11 support is only available from Marshmallow and up.
  22. ifeq ($(shell test $(PLATFORM_SDK_VERSION) -lt 23 && echo PreMarshmallow),PreMarshmallow)
  23. swiftshader_unsupported_build := true
  24. endif
  25. # Check whether $(TARGET_ARCH) is supported.
  26. ifneq ($(TARGET_ARCH),$(filter $(TARGET_ARCH),x86 x86_64 arm arm64))
  27. swiftshader_unsupported_build := true
  28. endif
  29. ifneq ($(swiftshader_unsupported_build),true)
  30. include $(swiftshader_root)/src/Android.mk
  31. include $(swiftshader_root)/tests/GLESUnitTests/Android.mk
  32. include $(swiftshader_root)/third_party/llvm-7.0/Android.mk
  33. endif