ReadFileIntoString() modified to return OK when the file is empty
[asdcplib.git] / src / Makefile.am
index a1f28f54cffbe9b1088067f7f427be2a4775ace4..74c0b11606a632d35761273aa3b14dc9f7a8bf13 100644 (file)
@@ -2,7 +2,7 @@
 #
 # $Id$
 #
-# Copyright (c) 2007-2013 John Hurst. All rights reserved.
+# Copyright (c) 2007-2018 John Hurst. All rights reserved.
 #
 # Redistribution and use in source and binary forms, with or without
 # modification, are permitted provided that the following conditions
@@ -58,6 +58,7 @@ include_HEADERS = \
 if DEV_HEADERS
 include_HEADERS += \
        S12MTimecode.h \
+       ST2095_PinkNoise.h \
        MDD.h \
        Metadata.h \
        KLV.h \
@@ -71,8 +72,10 @@ include_HEADERS += \
        PCMDataProviders.h \
        SyncCommon.h \
        SyncEncoder.h \
-       UUIDInformation.h 
-
+       UUIDInformation.h \
+       WavFileWriter.h \
+       AS_DCP_internal.h \
+       AS_DCP_DCData_internal.h
 
 endif
 
@@ -118,13 +121,14 @@ libasdcp_la_SOURCES = MPEG2_Parser.cpp MPEG.cpp JP2K_Codestream_Parser.cpp \
        Wav.h WavFileWriter.h MXF.h Metadata.h \
        JP2K.h AS_DCP.h AS_DCP_internal.h KLV.h MPEG.h MXFTypes.h MDD.h \
        PCMParserList.h S12MTimecode.h MDD.cpp \
-       AS_DCP_ATMOS.cpp  AS_DCP_DCData.cpp AS_DCP_DCData_internal.h \
+       AS_DCP_ATMOS.cpp  AS_DCP_DCData.cpp info.in \
        DCData_ByteStream_Parser.cpp DCData_Sequence_Parser.cpp \
        AtmosSyncChannel_Generator.cpp AtmosSyncChannel_Generator.h \
        AtmosSyncChannel_Mixer.cpp AtmosSyncChannel_Mixer.h \
        PCMDataProviders.cpp PCMDataProviders.h \
        SyncEncoder.c SyncEncoder.h SyncCommon.h CRC16.c CRC16.h \
-       UUIDInformation.c UUIDInformation.h 
+       UUIDInformation.c UUIDInformation.h \
+       ST2095_PinkNoise.cpp
 
 
 libasdcp_la_LDFLAGS = -release @VERSION@
@@ -137,12 +141,19 @@ if USE_AS_02
 libas02_la_SOURCES     = \
        AS_02.h \
        AS_02_internal.h \
+       ACES.h \
+       AS_02_ACES.h \
        h__02_Reader.cpp \
        h__02_Writer.cpp \
        AS_02_JP2K.cpp \
        AS_02_PCM.cpp \
+       AS_02_ISXD.cpp \
        ST2052_TextParser.cpp \
-       AS_02_TimedText.cpp
+       AS_02_TimedText.cpp \
+       ACES.cpp \
+       ACES_Codestream_Parser.cpp \
+       ACES_Sequence_Parser.cpp \
+       AS_02_ACES.cpp
 
 libas02_la_LDFLAGS = -release @VERSION@
 libas02_la_LIBADD = libasdcp.la libkumu.la
@@ -162,59 +173,28 @@ libphdr_la_LIBADD = libasdcp.la libkumu.la
 libphdr_la_CPPFLAGS = -DASDCP_PLATFORM=\"@host@\"
 endif
 
-# Python extension
-if PYTHON_USE
-lib_LTLIBRARIES += libpyasdcp.la
-
-nodist_libpyasdcp_la_SOURCES = \
-       kumu_python.cpp \
-       kumu_python.h \
-       asdcp_python.cpp \
-       asdcp_python.h \
-       asdcp_python_descriptor.cpp \
-       asdcp_python_misc.cpp \
-       asdcp_python_writerinfo.h \
-       asdcp_wrappers.h \
-       asdcp_python_mxf.cpp \
-       asdcp_python_mxf.h \
-       asdcp_python_mxf_text.cpp \
-       asdcp_python_mxf_metadata.cpp
-
-
-libpyasdcp_la_CPPFLAGS = @PYTHON_CPPFLAGS@
-libpyasdcp_la_LDFLAGS = @PYTHON_LSPEC@  -release @VERSION@
-libpyasdcp_la_LIBADD = libkumu.la libasdcp.la
-
-if USE_AS_02
-libpyasdcp_la_LIBADD   += libas02.la
-endif
-
-pyexecdir = @PYTHON_EXECDIR@
-pyexec_includedir = $(PYTHON_PREFIX)/include/python$(PYTHON_SHORTVERSION)
-nodist_pyexec_include_HEADERS = kumu_python.h asdcp_python.h asdcp_wrappers.h
-pyexec_LTLIBRARIES = kumu.la asdcp.la
-
-nodist_kumu_la_SOURCES = pykumu.cpp kumu_python.h
-kumu_la_CPPFLAGS = @PYTHON_CPPFLAGS@
-kumu_la_LDFLAGS = @PYTHON_LSPEC@ -avoid-version -module
-kumu_la_LIBADD = libpyasdcp.la
-
-nodist_asdcp_la_SOURCES = pyasdcp.cpp kumu_python.h asdcp_python.h asdcp_wrappers.h
-asdcp_la_CPPFLAGS = @PYTHON_CPPFLAGS@
-asdcp_la_LDFLAGS = @PYTHON_LSPEC@ -avoid-version -module
-asdcp_la_LIBADD = libpyasdcp.la
-endif
-
 # list of programs to be built and installed
 bin_PROGRAMS = \
-       asdcp-wrap asdcp-unwrap asdcp-util asdcp-info asdcp-test \
-       j2c-test blackwave klvwalk wavesplit klvsplit \
-       kmfilegen kmrandgen kmuuidgen
+       asdcp-wrap \
+       asdcp-unwrap \
+       asdcp-util \
+       asdcp-info \
+       asdcp-test \
+       j2c-test \
+       blackwave \
+       pinkwave \
+       klvwalk \
+       wavesplit \
+       klvsplit \
+       kmfilegen \
+       kmrandgen \
+       kmuuidgen
 
 if USE_AS_02
 bin_PROGRAMS += \
        as-02-wrap \
-       as-02-unwrap
+       as-02-unwrap \
+       as-02-info
 endif
 
 if USE_PHDR
@@ -251,6 +231,9 @@ kmuuidgen_LDADD = libkumu.la
 blackwave_SOURCES = blackwave.cpp
 blackwave_LDADD = libasdcp.la  libkumu.la
 
+pinkwave_SOURCES = pinkwave.cpp
+pinkwave_LDADD = libasdcp.la  libkumu.la
+
 klvwalk_SOURCES = klvwalk.cpp
 klvwalk_LDADD = libasdcp.la libkumu.la
 
@@ -269,6 +252,9 @@ as_02_wrap_LDADD = libas02.la libasdcp.la libkumu.la
 
 as_02_unwrap_SOURCES = as-02-unwrap.cpp
 as_02_unwrap_LDADD = libas02.la libasdcp.la libkumu.la
+
+as_02_info_SOURCES = as-02-info.cpp
+as_02_info_LDADD = libas02.la libasdcp.la libkumu.la
 endif
 
 if USE_PHDR
@@ -317,35 +303,14 @@ TESTS_ENVIRONMENT = BUILD_DIR="." TEST_FILES=../tests TEST_FILE_PREFIX=DCPd1-M1
        JP2K_PREFIX=MM_2k_XYZ_
 
 # files to include in the distribution that automake doesn't automatically include
-EXTRA_DIST = fips-186-test-harness.pl $(TESTS)
+EXTRA_DIST = fips-186-test-harness.pl $(TESTS) ../README.cmake ../CMakeLists.txt  CMakeLists.txt dirent_win.h
 if !FREEDIST
 if DEV_HEADERS
 EXTRA_DIST += $(nodist_libasdcp_la_SOURCES) $(nodist_tt_xform_SOURCES)
 endif
-if PYTHON_USE
-EXTRA_DIST += $(nodist_pyexec_include_HEADERS) $(nodist_libpyasdcp_la_SOURCES) $(nodist_kumu_la_SOURCES) $(nodist_asdcp_la_SOURCES)
-endif
 endif
 
-# source files that are themselves built
-BUILT_SOURCES = Metadata.h Metadata.cpp MDD.h MDD.cpp
-# files to be removed with "make maintainer-clean"
-MAINTAINERCLEANFILES = Metadata.h Metadata.cpp MDD.h MDD.cpp
-
-# build commands for built sources
-# dependencies: $(srcdir)/ullist.pl $(srcdir)/ULList.xml $(srcdir)/dict.xml $(srcdir)/DMS_Crypto.xml
-MDD.h:
-       $(srcdir)/ullist.pl $(srcdir)/ULList.xml $(srcdir)/dict.xml $(srcdir)/DMS_Crypto.xml > MDD.h
-# dependencies: $(srcdir)/ullist.pl $(srcdir)/ULList.xml $(srcdir)/dict.xml $(srcdir)/DMS_Crypto.xml
-MDD.cpp:
-       $(srcdir)/ullist.pl -s $(srcdir)/ULList.xml $(srcdir)/dict.xml $(srcdir)/DMS_Crypto.xml > MDD.cpp
-# dependencies: $(srcdir)/Metadata_h.tt2 $(srcdir)/mxfgen.pl $(srcdir)/MXF_def.pl
-Metadata.h:
-       $(srcdir)/mxfgen.pl $(srcdir)/MXF_def.pl $(srcdir)/Metadata_h.tt2 > Metadata.h
-# dependencies:  Metadata.h $(srcdir)/Metadata_cpp.tt2
-Metadata.cpp:
-       $(srcdir)/mxfgen.pl $(srcdir)/MXF_def.pl $(srcdir)/Metadata_cpp.tt2 > Metadata.cpp
 
 #
-#
+# end Makefile.am
 #