1# 2# Copyright (C) 2012 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 17# Only include the x86 encoder/decoder for x86 architecture 18ifeq ($(TARGET_ARCH),x86) 19 20LOCAL_PATH:= $(call my-dir) 21 22ifneq ($(LIBENC_INCLUDED),true) 23 24LIBENC_INCLUDED := true 25 26enc_src_files := \ 27 enc_base.cpp \ 28 dec_base.cpp \ 29 enc_wrapper.cpp \ 30 enc_tabl.cpp 31 32enc_include_files := 33 34## 35## 36## Build the device version of libenc 37## 38## 39ifneq ($(SDK_ONLY),true) # SDK_only doesn't need device version 40 41include $(CLEAR_VARS) 42LOCAL_SRC_FILES := $(enc_src_files) 43LOCAL_C_INCLUDES += $(enc_include_files) 44LOCAL_MODULE_TAGS := optional 45LOCAL_MODULE := libenc 46include $(BUILD_STATIC_LIBRARY) 47 48endif # !SDK_ONLY 49 50 51## 52## 53## Build the host version of libenc 54## 55## 56include $(CLEAR_VARS) 57LOCAL_SRC_FILES := $(enc_src_files) 58LOCAL_C_INCLUDES += $(enc_include_files) 59LOCAL_MODULE_TAGS := optional 60LOCAL_MODULE := libenc 61include $(BUILD_HOST_STATIC_LIBRARY) 62 63endif # ifneq ($(LIBENC_INCLUDED),true) 64 65endif # ifeq ($(TARGET_ARCH),x86) 66