Initial set of autotools files
This commit is contained in:
parent
35e1d01a8d
commit
b4500a074d
1
COPYING
Normal file
1
COPYING
Normal file
|
@ -0,0 +1 @@
|
|||
For copying information, please refer to the LICENSE file.
|
23
Makefile.am
Normal file
23
Makefile.am
Normal file
|
@ -0,0 +1,23 @@
|
|||
## Copyright (c) 2013 Tiancheng "Timothy" Gu
|
||||
## Modifications copyright (c) 2016 Mike Brady
|
||||
## 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.
|
||||
|
||||
ACLOCAL_AMFLAGS = -I m4
|
||||
|
||||
AM_CXXFLAGS = -I$(top_srcdir)/codec -g -O3 -c
|
||||
|
||||
if EXAMPLE
|
||||
EXAMPLE_DIR = convert-utility
|
||||
endif
|
||||
|
||||
SUBDIRS = codec $(EXAMPLE_DIR)
|
39
codec/Makefile.am
Normal file
39
codec/Makefile.am
Normal file
|
@ -0,0 +1,39 @@
|
|||
## Copyright (c) 2013 Tiancheng "Timothy" Gu
|
||||
## Modifications copyright (c) 2016 Mike Brady
|
||||
## 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.
|
||||
|
||||
lib_LTLIBRARIES = libalac.la
|
||||
|
||||
libalac_la_CPPFLAGS = -Wno-multichar
|
||||
libalac_la_LDFLAGS = -version-info @ALAC_VERSION@
|
||||
|
||||
libalac_la_SOURCES = \
|
||||
EndianPortable.c \
|
||||
ALACBitUtilities.c \
|
||||
ALACDecoder.cpp \
|
||||
ALACEncoder.cpp \
|
||||
ag_dec.c \
|
||||
ag_enc.c \
|
||||
dp_dec.c \
|
||||
dp_enc.c \
|
||||
matrix_dec.c \
|
||||
matrix_enc.c
|
||||
|
||||
pkgconfigdir = $(libdir)/pkgconfig
|
||||
pkgconfig_DATA = alac.pc
|
||||
|
||||
# Install to include/alac
|
||||
alacincludedir = $(includedir)/alac
|
||||
|
||||
# Install everything
|
||||
alacinclude_HEADERS = *.h
|
76
configure.ac
Normal file
76
configure.ac
Normal file
|
@ -0,0 +1,76 @@
|
|||
dnl -*- Autoconf -*-
|
||||
dnl Process this file with autoconf to produce a configure script.
|
||||
|
||||
dnl Copyright (c) 2013 Tiancheng "Timothy" Gu
|
||||
dnl Modifications copyright (c) 2016 Mike Brady
|
||||
dnl Licensed under the Apache License, Version 2.0 (the "License");
|
||||
dnl you may not use this file except in compliance with the License.
|
||||
dnl You may obtain a copy of the License at
|
||||
dnl
|
||||
dnl http://www.apache.org/licenses/LICENSE-2.0
|
||||
dnl
|
||||
dnl Unless required by applicable law or agreed to in writing, software
|
||||
dnl distributed under the License is distributed on an "AS IS" BASIS,
|
||||
dnl WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
dnl See the License for the specific language governing permissions and
|
||||
dnl limitations under the License.
|
||||
|
||||
AC_PREREQ([2.68])
|
||||
AC_INIT([alac], [0.0.6], [mikebrady@eircom.net])
|
||||
AM_INIT_AUTOMAKE
|
||||
AC_CONFIG_SRCDIR([codec/dp_enc.c])
|
||||
AC_CONFIG_HEADERS([config.h])
|
||||
|
||||
dnl AC_CONFIG_AUX_DIR(.)
|
||||
AC_CONFIG_MACRO_DIR([m4])
|
||||
dnl AM_INIT_AUTOMAKE([tar-ustar foreign])
|
||||
dnl m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
|
||||
dnl AM_MAINTAINER_MODE
|
||||
|
||||
dnl Various options for configure
|
||||
AC_ARG_ENABLE([example],
|
||||
[AS_HELP_STRING([--enable-example],
|
||||
[enable example encoding program (default is no)])],
|
||||
[example=$enableval], [example=no])
|
||||
|
||||
dnl Automake conditionals to set
|
||||
AM_CONDITIONAL(EXAMPLE, test x$example = xyes)
|
||||
|
||||
dnl Checks for programs.
|
||||
AC_PROG_CC
|
||||
AC_PROG_CXX
|
||||
|
||||
dnl Checks for header files.
|
||||
AC_CHECK_HEADERS([stdint.h stdlib.h string.h])
|
||||
|
||||
dnl Checks for typedefs, structures, and compiler characteristics.
|
||||
AC_CHECK_HEADER_STDBOOL
|
||||
AC_C_INLINE
|
||||
AC_TYPE_INT16_T
|
||||
AC_TYPE_INT32_T
|
||||
AC_TYPE_INT64_T
|
||||
AC_TYPE_INT8_T
|
||||
AC_TYPE_SIZE_T
|
||||
AC_TYPE_UINT16_T
|
||||
AC_TYPE_UINT32_T
|
||||
AC_TYPE_UINT64_T
|
||||
AC_TYPE_UINT8_T
|
||||
|
||||
# Checks for library functions.
|
||||
AC_CHECK_FUNCS([memset strrchr])
|
||||
|
||||
dnl Setup for libtool
|
||||
LT_INIT
|
||||
|
||||
dnl soname version to use
|
||||
dnl goes by ‘current[:revision[:age]]’ with the soname ending up as
|
||||
dnl current.age.revision.
|
||||
ALAC_VERSION=0
|
||||
|
||||
AC_SUBST(ALAC_VERSION)
|
||||
|
||||
AC_CONFIG_FILES([Makefile
|
||||
codec/Makefile
|
||||
convert-utility/Makefile
|
||||
codec/alac.pc])
|
||||
AC_OUTPUT
|
23
convert-utility/Makefile.am
Normal file
23
convert-utility/Makefile.am
Normal file
|
@ -0,0 +1,23 @@
|
|||
## Copyright (c) 2013 Tiancheng "Timothy" Gu
|
||||
## Modifications copyright (c) 2016 Mike Brady
|
||||
## 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.
|
||||
|
||||
bin_PROGRAMS = alacconvert$(EXEEXT)
|
||||
|
||||
alacconvert_CPPFLAGS = -Wno-multichar
|
||||
alacconvert_LDADD = ../codec/libalac.la
|
||||
alacconvert_SOURCES = \
|
||||
main.cpp \
|
||||
CAFFileALAC.cpp
|
||||
|
||||
noinst_HEADERS = $(top_srcdir)/convert-utility/CAFFileALAC.h
|
Loading…
Reference in a new issue