• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# Copyright (C) 2016 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
17WORKING_DIR := $(call my-dir)
18
19# build libflacJNI.so
20include $(CLEAR_VARS)
21include $(WORKING_DIR)/flac_sources.mk
22
23LOCAL_PATH := $(WORKING_DIR)
24LOCAL_MODULE := libflacJNI
25LOCAL_ARM_MODE := arm
26LOCAL_CPP_EXTENSION := .cc
27
28LOCAL_C_INCLUDES := \
29    $(LOCAL_PATH)/flac/include \
30    $(LOCAL_PATH)/flac/src/libFLAC/include
31LOCAL_SRC_FILES := $(FLAC_SOURCES)
32
33LOCAL_CFLAGS += '-DPACKAGE_VERSION="1.3.2"' -DFLAC__NO_MD5 -DFLAC__INTEGER_ONLY_LIBRARY
34LOCAL_CFLAGS += -D_REENTRANT -DPIC -DU_COMMON_IMPLEMENTATION -fPIC -DHAVE_SYS_PARAM_H
35LOCAL_CFLAGS += -O3 -funroll-loops -finline-functions -DFLAC__NO_ASM '-DFLAC__HAS_OGG=0'
36
37LOCAL_LDLIBS := -llog -lz -lm
38include $(BUILD_SHARED_LIBRARY)
39