Android.mk 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. # Copyright (C) 2010 The Android Open Source Project
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. LOCAL_PATH := $(call my-dir)
  15. include $(CLEAR_VARS)
  16. LOCAL_CLANG := true
  17. LOCAL_CPPFLAGS := -std=c++1y -Weverything -Werror
  18. # The static constructors and destructors in this library have not been noted to
  19. # introduce significant overheads
  20. LOCAL_CPPFLAGS += -Wno-exit-time-destructors
  21. LOCAL_CPPFLAGS += -Wno-global-constructors
  22. # We only care about compiling as C++14
  23. LOCAL_CPPFLAGS += -Wno-c++98-compat-pedantic
  24. # We use four-character constants for the GraphicBuffer header, and don't care
  25. # that they're non-portable as long as they're consistent within one execution
  26. LOCAL_CPPFLAGS += -Wno-four-char-constants
  27. # Don't warn about struct padding
  28. LOCAL_CPPFLAGS += -Wno-padded
  29. LOCAL_SRC_FILES := \
  30. Fence.cpp \
  31. FramebufferNativeWindow.cpp \
  32. FrameStats.cpp \
  33. GraphicBuffer.cpp \
  34. GraphicBufferAllocator.cpp \
  35. GraphicBufferMapper.cpp \
  36. PixelFormat.cpp \
  37. Rect.cpp \
  38. Region.cpp \
  39. UiConfig.cpp
  40. LOCAL_SHARED_LIBRARIES := \
  41. libcutils \
  42. libhardware \
  43. libsync \
  44. libutils \
  45. liblog
  46. ifneq ($(BOARD_FRAMEBUFFER_FORCE_FORMAT),)
  47. LOCAL_CFLAGS += -DFRAMEBUFFER_FORCE_FORMAT=$(BOARD_FRAMEBUFFER_FORCE_FORMAT)
  48. endif
  49. ifeq ($(BOARD_EGL_NEEDS_HANDLE_VALUE),true)
  50. LOCAL_CFLAGS += -DEGL_NEEDS_HANDLE
  51. endif
  52. LOCAL_MODULE := libui
  53. include $(BUILD_SHARED_LIBRARY)
  54. # Include subdirectory makefiles
  55. # ============================================================
  56. # If we're building with ONE_SHOT_MAKEFILE (mm, mmm), then what the framework
  57. # team really wants is to build the stuff defined by this makefile.
  58. ifeq (,$(ONE_SHOT_MAKEFILE))
  59. include $(call first-makefiles-under,$(LOCAL_PATH))
  60. endif