Skip to content

Instantly share code, notes, and snippets.

@ShinjiKobayashi
Created March 31, 2016 16:12
Show Gist options
  • Save ShinjiKobayashi/260309bdb5ca7ba33924f15e469b6b45 to your computer and use it in GitHub Desktop.
Save ShinjiKobayashi/260309bdb5ca7ba33924f15e469b6b45 to your computer and use it in GitHub Desktop.
PlatformアプリでAPTするサンプルソース2
TOP_LOCAL_PATH:= $(call my-dir)
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_JAVACFLAGS := -processor butterknife.internal.ButterKnifeProcessor
LOCAL_STATIC_JAVA_LIBRARIES := \
android-support-v4 \
android-support-v7-appcompat \
butterknife \
LOCAL_PROGUARD_ENABLED := disabled
LOCAL_RESOURCE_DIR := \
$(LOCAL_PATH)/res \
frameworks/support/v7/appcompat/res
LOCAL_AAPT_FLAGS := \
--auto-add-overlay \
--extra-packages android.support.v7.appcompat
LOCAL_SRC_FILES := $(call all-java-files-under, src)
LOCAL_PACKAGE_NAME := Sample
include $(BUILD_PACKAGE)
include $(CLEAR_VARS)
LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := \
butterknife:libs/butterknife-7.0.1.jar \
include $(BUILD_MULTI_PREBUILT)
include $(call all-makefiles-under,$(LOCAL_PATH))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment