Android.mk 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. #
  2. # Copyright (C) 2013 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. #
  18. # Build app code.
  19. #
  20. include $(CLEAR_VARS)
  21. LOCAL_MODULE_TAGS := optional
  22. LOCAL_STATIC_JAVA_LIBRARIES := \
  23. android-support-v4 \
  24. android-support-v7-recyclerview \
  25. android-support-v7-palette
  26. LOCAL_SRC_FILES := \
  27. $(call all-java-files-under, src) \
  28. $(call all-java-files-under, src_config) \
  29. $(call all-proto-files-under, protos)
  30. LOCAL_RESOURCE_DIR := \
  31. $(LOCAL_PATH)/res \
  32. prebuilts/sdk/current/support/v7/recyclerview/res \
  33. LOCAL_PROGUARD_FLAG_FILES := proguard.flags
  34. LOCAL_PROTOC_OPTIMIZE_TYPE := nano
  35. LOCAL_PROTOC_FLAGS := --proto_path=$(LOCAL_PATH)/protos/
  36. LOCAL_PROTO_JAVA_OUTPUT_PARAMS := enum_style=java
  37. LOCAL_AAPT_FLAGS := \
  38. --auto-add-overlay \
  39. --extra-packages android.support.v7.recyclerview \
  40. LOCAL_SDK_VERSION := current
  41. LOCAL_MIN_SDK_VERSION := 21
  42. LOCAL_PACKAGE_NAME := Launcher3
  43. LOCAL_PRIVILEGED_MODULE := true
  44. LOCAL_OVERRIDES_PACKAGES := Home Launcher2
  45. LOCAL_FULL_LIBS_MANIFEST_FILES := $(LOCAL_PATH)/AndroidManifest-common.xml
  46. LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.launcher3.*
  47. include $(BUILD_PACKAGE)
  48. #
  49. # Launcher proto buffer jar used for development
  50. #
  51. include $(CLEAR_VARS)
  52. LOCAL_SRC_FILES := $(call all-proto-files-under, protos)
  53. LOCAL_PROTOC_OPTIMIZE_TYPE := nano
  54. LOCAL_PROTOC_FLAGS := --proto_path=$(LOCAL_PATH)/protos/
  55. LOCAL_PROTO_JAVA_OUTPUT_PARAMS := enum_style=java
  56. LOCAL_MODULE_TAGS := optional
  57. LOCAL_MODULE := launcher_proto_lib
  58. LOCAL_IS_HOST_MODULE := true
  59. LOCAL_STATIC_JAVA_LIBRARIES := host-libprotobuf-java-nano
  60. include $(BUILD_HOST_JAVA_LIBRARY)
  61. # ==================================================
  62. include $(call all-makefiles-under,$(LOCAL_PATH))