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