Android.mk 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  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 rule for Launcher3 app.
  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. android-support-dynamic-animation
  27. LOCAL_SRC_FILES := \
  28. $(call all-java-files-under, src) \
  29. $(call all-java-files-under, src_config) \
  30. $(call all-java-files-under, src_flags) \
  31. $(call all-proto-files-under, protos) \
  32. $(call all-proto-files-under, proto_overrides)
  33. LOCAL_RESOURCE_DIR := \
  34. $(LOCAL_PATH)/res \
  35. prebuilts/sdk/current/support/v7/recyclerview/res \
  36. LOCAL_PROGUARD_FLAG_FILES := proguard.flags
  37. LOCAL_PROTOC_OPTIMIZE_TYPE := nano
  38. LOCAL_PROTOC_FLAGS := --proto_path=$(LOCAL_PATH)/protos/ --proto_path=$(LOCAL_PATH)/proto_overrides/
  39. LOCAL_PROTO_JAVA_OUTPUT_PARAMS := enum_style=java
  40. LOCAL_AAPT_FLAGS := \
  41. --auto-add-overlay \
  42. --extra-packages android.support.v7.recyclerview \
  43. LOCAL_SDK_VERSION := current
  44. LOCAL_MIN_SDK_VERSION := 21
  45. LOCAL_PACKAGE_NAME := Launcher3
  46. LOCAL_PRIVILEGED_MODULE := true
  47. LOCAL_OVERRIDES_PACKAGES := Home Launcher2
  48. LOCAL_FULL_LIBS_MANIFEST_FILES := $(LOCAL_PATH)/AndroidManifest-common.xml
  49. LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.launcher3.*
  50. include $(BUILD_PACKAGE)
  51. #
  52. # Build rule for Launcher3 Go app for Android Go devices.
  53. #
  54. include $(CLEAR_VARS)
  55. LOCAL_MODULE_TAGS := optional
  56. LOCAL_STATIC_JAVA_LIBRARIES := \
  57. android-support-v4 \
  58. android-support-v7-recyclerview \
  59. android-support-v7-palette \
  60. android-support-dynamic-animation
  61. LOCAL_SRC_FILES := \
  62. $(call all-java-files-under, src) \
  63. $(call all-java-files-under, src_config) \
  64. $(call all-java-files-under, go/src_flags) \
  65. $(call all-proto-files-under, protos) \
  66. $(call all-proto-files-under, proto_overrides)
  67. LOCAL_RESOURCE_DIR := \
  68. $(LOCAL_PATH)/go/res \
  69. $(LOCAL_PATH)/res \
  70. prebuilts/sdk/current/support/v7/recyclerview/res \
  71. LOCAL_PROGUARD_FLAG_FILES := proguard.flags
  72. LOCAL_PROTOC_OPTIMIZE_TYPE := nano
  73. LOCAL_PROTOC_FLAGS := --proto_path=$(LOCAL_PATH)/protos/ --proto_path=$(LOCAL_PATH)/proto_overrides/
  74. LOCAL_PROTO_JAVA_OUTPUT_PARAMS := enum_style=java
  75. LOCAL_AAPT_FLAGS := \
  76. --auto-add-overlay \
  77. --extra-packages android.support.v7.recyclerview \
  78. LOCAL_SDK_VERSION := current
  79. LOCAL_MIN_SDK_VERSION := 21
  80. LOCAL_PACKAGE_NAME := Launcher3Go
  81. LOCAL_PRIVILEGED_MODULE := true
  82. LOCAL_OVERRIDES_PACKAGES := Home Launcher2 Launcher3
  83. LOCAL_FULL_LIBS_MANIFEST_FILES := \
  84. $(LOCAL_PATH)/AndroidManifest.xml \
  85. $(LOCAL_PATH)/AndroidManifest-common.xml
  86. LOCAL_MANIFEST_FILE := go/AndroidManifest.xml
  87. LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.launcher3.*
  88. include $(BUILD_PACKAGE)
  89. #
  90. # Launcher proto buffer jar used for development
  91. #
  92. include $(CLEAR_VARS)
  93. LOCAL_SRC_FILES := $(call all-proto-files-under, protos) $(call all-proto-files-under, proto_overrides)
  94. LOCAL_PROTOC_OPTIMIZE_TYPE := nano
  95. LOCAL_PROTOC_FLAGS := --proto_path=$(LOCAL_PATH)/protos/ --proto_path=$(LOCAL_PATH)/proto_overrides/
  96. LOCAL_PROTO_JAVA_OUTPUT_PARAMS := enum_style=java
  97. LOCAL_MODULE_TAGS := optional
  98. LOCAL_MODULE := launcher_proto_lib
  99. LOCAL_IS_HOST_MODULE := true
  100. LOCAL_STATIC_JAVA_LIBRARIES := host-libprotobuf-java-nano
  101. include $(BUILD_HOST_JAVA_LIBRARY)
  102. # ==================================================
  103. include $(call all-makefiles-under,$(LOCAL_PATH))