Home | History | Annotate | Download | only in library
      1 #
      2 # Include this make file to build your application against this module.
      3 #
      4 # Make sure to include it after you've set all your desired LOCAL variables.
      5 # Note that you must explicitly set your LOCAL_RESOURCE_DIR before including this file.
      6 #
      7 # For example:
      8 #
      9 #   LOCAL_RESOURCE_DIR := \
     10 #        $(LOCAL_PATH)/res
     11 #
     12 #   include frameworks/opt/setupwizard/library/common.mk
     13 #
     14 
     15 # Path to directory of setup wizard lib (e.g. frameworks/opt/setupwizard/library)
     16 suwlib_path := $(dir $(lastword $(MAKEFILE_LIST)))
     17 
     18 ifneq ($(LOCAL_USE_AAPT2),true)
     19   LOCAL_RESOURCE_DIR += \
     20       $(suwlib_path)/main/res \
     21       $(suwlib_path)/platform/res
     22   LOCAL_AAPT_FLAGS += --auto-add-overlay --extra-packages com.android.setupwizardlib
     23   LOCAL_STATIC_JAVA_LIBRARIES += setup-wizard-lib
     24 else # LOCAL_USE_AAPT2 := true
     25   LOCAL_STATIC_ANDROID_LIBRARIES += setup-wizard-lib
     26 endif # LOCAL_USE_AAPT2
     27