Advertisement
DarkAngelGR

Untitled

Dec 16th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.50 KB | None | 0 0
  1. LOCAL_PATH:= $(call my-dir)
  2.  
  3. include $(CLEAR_VARS)
  4.  
  5. LOCAL_SRC_FILES:= \
  6. qcamera_test.cpp \
  7.  
  8. LOCAL_SHARED_LIBRARIES:= \
  9. libdl \
  10. libui \
  11. libutils \
  12. libcutils \
  13. libbinder \
  14. libmedia \
  15. libui \
  16. libgui \
  17. libcamera_client \
  18. libskia \
  19. libstagefright \
  20. libstagefright_foundation \
  21.  
  22. ifneq (1,$(filter 1,$(shell echo "$$(( $(PLATFORM_SDK_VERSION) >= 18 ))" )))
  23.  
  24. LOCAL_SHARED_LIBRARIES += \
  25. libmedia_native \
  26.  
  27. LOCAL_32_BIT_ONLY := $(BOARD_QTI_CAMERA_32BIT_ONLY)
  28. LOCAL_CFLAGS += -DUSE_JB_MR1
  29.  
  30. endif
  31.  
  32. LOCAL_C_INCLUDES += \
  33. frameworks/base/include/ui \
  34. frameworks/base/include/surfaceflinger \
  35. frameworks/base/include/camera \
  36. frameworks/base/include/media \
  37. external/skia/include/core \
  38. external/skia/include/images \
  39. $(TARGET_OUT_HEADERS)/qcom/display \
  40. $(LOCAL_PATH)/../../stack/common \
  41. frameworks/av/include/media/stagefright \
  42. frameworks/native/include/media/openmax \
  43. $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
  44.  
  45. LOCAL_ADDITIONAL_DEPENDENCIES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
  46.  
  47. LOCAL_MODULE:= camera_test
  48. LOCAL_MODULE_TAGS:= tests
  49. LOCAL_VENDOR_MODULE := true
  50.  
  51. LOCAL_CFLAGS += -Wall -Wextra -Werror -Wno-unused-parameter
  52. LOCAL_CFLAGS += -O0
  53.  
  54. ifeq (1,$(filter 1,$(shell echo "$$(( $(PLATFORM_SDK_VERSION) >= 20 ))" )))
  55.  
  56. LOCAL_CFLAGS += -DUSE_SDK_20_OR_HIGHER
  57.  
  58. ifeq ($(TARGET_USES_AOSP),true)
  59. LOCAL_CFLAGS += -DVANILLA_HAL
  60. endif
  61.  
  62. endif
  63.  
  64. #include $(BUILD_EXECUTABLE)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement