美文网首页
Android7.0 Android.mk

Android7.0 Android.mk

作者: Jarhot | 来源:发表于2017-09-12 13:14 被阅读0次
    #
    # Copyright (C) 2008 The Android Open Source Project
    #
    # Licensed under the Apache License, Version 2.0 (the "License");
    # you may not use this file except in compliance with the License.
    # You may obtain a copy of the License at
    #
    #      http://www.apache.org/licenses/LICENSE-2.0
    #
    # Unless required by applicable law or agreed to in writing, software
    # distributed under the License is distributed on an "AS IS" BASIS,
    # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    # See the License for the specific language governing permissions and
    # limitations under the License.
    #
    
    LOCAL_PATH := $(call my-dir)
    include $(CLEAR_VARS)
    
    LOCAL_MODULE_TAGS := optional
    
    LOCAL_STATIC_JAVA_LIBRARIES := libarity android-support-v4 guava
    
    LOCAL_SRC_FILES := $(call all-java-files-under, src)
    
    LOCAL_SDK_VERSION := current
    
    LOCAL_PACKAGE_NAME := Calculator
    
    include $(BUILD_PACKAGE)
    ##################################################
    include $(CLEAR_VARS)
    
    LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := libarity:arity-2.1.2.jar
    
    include $(BUILD_MULTI_PREBUILT)
    
    # Use the following include to make our test apk.
    include $(call all-makefiles-under,$(LOCAL_PATH))
    
    
    # Copyright 2007 The Android Open Source Project
    #
    #export dnscache_SKIP_TESTS = false:$dnscache_SKIP_TESTS
    
    LOCAL_PATH:= $(call my-dir)
    include $(CLEAR_VARS)
    
    #export dnscache_SKIP_TESTS = false:$dnscache_SKIP_TESTS
    
    LOCAL_MODULE_TAGS := optional
    
    LOCAL_SRC_FILES := $(call all-subdir-java-files)
    LOCAL_MODULE := dnscache
    
    LOCAL_STATIC_JAVA_LIBRARIES := libhttp_client \
                                   libhttp_core \
    
    include $(BUILD_STATIC_JAVA_LIBRARY)
    
    include $(CLEAR_VARS)
    
    LOCAL_MODULE_TAGS := optional
    
    LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := \
        libhttp_client:libs/httpclient-4.5.3.jar \
        libhttp_core:libs/httpcore-4.4.6.jar
    
    include $(BUILD_MULTI_PREBUILT)
    
    
    LOCAL_PATH:= $(call my-dir)
    
    # --------------------------------------------------------------
    # Use prebuilt aprotoc to compile .proto files
    
    ifeq ($(HOST_OS),darwin)
    PROTOC := $(TOPDIR)prebuilts/misc/darwin-x86/protobuf/aprotoc
    else
    PROTOC := $(TOPDIR)prebuilts/misc/linux-x86/protobuf/aprotoc
    endif
    
    # --------------------------------------------------------------
    # Build the apk. This generates an standalone apk for USB tuner
    # input service.
    include $(CLEAR_VARS)
    
    LOCAL_PACKAGE_NAME := UsbTunerTvInput
    LOCAL_MODULE_TAGS := optional
    # It's not required but keep it for a compatibility with the previous version.
    LOCAL_PRIVILEGED_MODULE := true
    LOCAL_SDK_VERSION := system_current
    LOCAL_MIN_SDK_VERSION := 23  # M
    
    LOCAL_STATIC_JAVA_LIBRARIES := \
        lib-exoplayer \
        usbtuner-tvinput
    
    LOCAL_RESOURCE_DIR := \
        $(LOCAL_PATH)/res \
        $(LOCAL_PATH)/../common/res \
        $(TOP)/prebuilts/sdk/current/support/v7/recyclerview/res \
        $(TOP)/prebuilts/sdk/current/support/v17/leanback/res
    
    LOCAL_AAPT_FLAGS := --auto-add-overlay \
        --extra-packages android.support.v7.recyclerview \
        --extra-packages android.support.v17.leanback \
        --extra-packages com.android.tv.common
    
    LOCAL_JNI_SHARED_LIBRARIES := \
        libusbtuner_jni
    
    LOCAL_PROGUARD_ENABLED := disabled
    
    include $(BUILD_PACKAGE)
    
    # --------------------------------------------------------------
    # The final static library that apps can link against.
    # The R class is automatically excluded from the generated library.
    # Applications that use this library must specify LOCAL_RESOURCE_DIR
    # in their makefiles to include the resources in their package.
    
    include $(CLEAR_VARS)
    
    LOCAL_MODULE := usbtuner-tvinput
    LOCAL_MODULE_TAGS := optional
    LOCAL_SRC_FILES := \
        $(call all-java-files-under, src) \
        $(call all-proto-files-under, proto)
    LOCAL_SDK_VERSION := system_current
    LOCAL_STATIC_JAVA_LIBRARIES := \
        android-support-v4 \
        android-support-v7-recyclerview \
        android-support-v17-leanback \
        icu4j-usbtuner \
        lib-exoplayer \
        libprotobuf-java-nano \
        tv-common
    
    
    LOCAL_PROGUARD_ENABLED := disabled
    
    LOCAL_RESOURCE_DIR := \
        $(LOCAL_PATH)/res \
        $(LOCAL_PATH)/../common/res \
        $(TOP)/prebuilts/sdk/current/support/v7/recyclerview/res \
        $(TOP)/prebuilts/sdk/current/support/v17/leanback/res
    
    LOCAL_AAPT_FLAGS := --auto-add-overlay \
        --extra-packages android.support.v17.leanback \
        --extra-packages com.android.tv.common \
    
    LOCAL_PROTOC_OPTIMIZE_TYPE := nano
    LOCAL_PROTOC_FLAGS := --proto_path=$(LOCAL_PATH)/proto/
    
    include $(BUILD_STATIC_JAVA_LIBRARY)
    
    # --------------------------------------------------------------
    # Build a tiny icu4j library out of the classes necessary for the project.
    
    include $(CLEAR_VARS)
    
    LOCAL_MODULE := icu4j-usbtuner
    LOCAL_MODULE_TAGS := optional
    icu4j_path := icu/icu4j
    LOCAL_SRC_FILES := \
        $(icu4j_path)/main/classes/core/src/com/ibm/icu/text/SCSU.java \
        $(icu4j_path)/main/classes/core/src/com/ibm/icu/text/UnicodeDecompressor.java
    LOCAL_SDK_VERSION := system_current
    
    include $(BUILD_STATIC_JAVA_LIBRARY)
    #############################################################
    # Pre-built dependency jars
    #############################################################
    
    # --------------------------------------------------------------
    # ExoPlayer library version 1.5.6
    # https://github.com/google/ExoPlayer/archive/r1.5.6.zip
    # TODO: Add ExoPlayer source code to external/ android repository.
    
    include $(CLEAR_VARS)
    
    LOCAL_MODULE_TAGS := optional
    
    LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := \
       lib-exoplayer:libs/exoplayer_1.5.6.jar
    
    include $(BUILD_MULTI_PREBUILT)
    
    include $(call all-makefiles-under, $(LOCAL_PATH))
    
    

    相关文章

      网友评论

          本文标题:Android7.0 Android.mk

          本文链接:https://www.haomeiwen.com/subject/oodcsxtx.html