Android.mk 2.4 KB

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