• Building a simple APK
  • Build Cookbook In this document




    Download 1.28 Mb.
    bet14/95
    Sana22.12.2019
    Hajmi1.28 Mb.
    #4580
    1   ...   10   11   12   13   14   15   16   17   ...   95

    Build Cookbook

    In this document


    The Android Build Cookbook offers code snippets to help you quickly implement some common build tasks. For additional instruction, please see the other build documents in this section.

    Building a simple APK


    LOCAL_PATH := $(call my-dir)

    include $(CLEAR_VARS)

     

    # Build all java files in the java subdirectory



    LOCAL_SRC_FILES := $(call all-subdir-java-files)

     

    # Name of the APK to build



    LOCAL_PACKAGE_NAME := LocalPackage

     

    # Tell it to build an APK



    include $(BUILD_PACKAGE)


    Download 1.28 Mb.
    1   ...   10   11   12   13   14   15   16   17   ...   95




    Download 1.28 Mb.