Android.mk 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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. LOCAL_SRC_FILES := $(call all-java-files-under, src) \
  26. $(call all-java-files-under, WallpaperPicker/src) \
  27. $(call all-proto-files-under, protos)
  28. LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/WallpaperPicker/res \
  29. $(LOCAL_PATH)/res \
  30. $(LOCAL_PATH)/../../../prebuilts/sdk/current/support/v7/recyclerview/res
  31. LOCAL_PROGUARD_FLAG_FILES := proguard.flags
  32. LOCAL_PROTOC_OPTIMIZE_TYPE := nano
  33. LOCAL_PROTOC_FLAGS := --proto_path=$(LOCAL_PATH)/protos/
  34. LOCAL_AAPT_FLAGS := \
  35. --auto-add-overlay \
  36. --extra-packages android.support.v7.recyclerview
  37. LOCAL_SDK_VERSION := current
  38. LOCAL_PACKAGE_NAME := Launcher3
  39. LOCAL_PRIVILEGED_MODULE := true
  40. #LOCAL_CERTIFICATE := shared
  41. LOCAL_OVERRIDES_PACKAGES := Home Launcher2
  42. include $(BUILD_PACKAGE)
  43. #
  44. # Protocol Buffer Debug Utility in Java
  45. #
  46. include $(CLEAR_VARS)
  47. LOCAL_SRC_FILES := $(call all-java-files-under, util) \
  48. $(call all-proto-files-under, protos)
  49. LOCAL_PROTOC_OPTIMIZE_TYPE := nano
  50. LOCAL_PROTOC_FLAGS := --proto_path=$(LOCAL_PATH)/protos/
  51. LOCAL_MODULE_TAGS := optional
  52. LOCAL_MODULE := launcher_protoutil_lib
  53. LOCAL_IS_HOST_MODULE := true
  54. LOCAL_JAR_MANIFEST := util/etc/manifest.txt
  55. include $(BUILD_HOST_JAVA_LIBRARY)
  56. #
  57. # Protocol Buffer Debug Utility Wrapper Script
  58. #
  59. include $(CLEAR_VARS)
  60. LOCAL_IS_HOST_MODULE := true
  61. LOCAL_MODULE_CLASS := EXECUTABLES
  62. LOCAL_MODULE_TAGS := optional
  63. LOCAL_MODULE := launcher_protoutil
  64. include $(BUILD_SYSTEM)/base_rules.mk
  65. $(LOCAL_BUILT_MODULE): | $(HOST_OUT_JAVA_LIBRARIES)/launcher_protoutil_lib.jar
  66. $(LOCAL_BUILT_MODULE): $(LOCAL_PATH)/util/etc/launcher_protoutil | $(ACP)
  67. @echo "Copy: $(PRIVATE_MODULE) ($@)"
  68. $(copy-file-to-new-target)
  69. $(hide) chmod 755 $@
  70. INTERNAL_DALVIK_MODULES += $(LOCAL_INSTALLED_MODULE)
  71. include $(call all-makefiles-under,$(LOCAL_PATH))