Makefile.am 8.64 KB
Newer Older
1 2
include $(top_srcdir)/doxygen-include.am

Petri Hintukainen's avatar
Petri Hintukainen committed
3 4 5 6
ACLOCAL_AMFLAGS = -I m4

MOSTLYCLEANFILES = $(DX_CLEANFILES)

7 8
POSIX_C_SOURCE=200809L

Petri Hintukainen's avatar
Petri Hintukainen committed
9 10 11 12 13 14 15 16 17
EXTRA_DIST = \
	bootstrap \
	ChangeLog \
	COPYING \
	doc \
	player_wrappers \
	README.txt \
	src/libbluray/bdj/build.xml \
	src/libbluray/bdj/java \
18
	src/libbluray/bdj/java-build-support \
Petri Hintukainen's avatar
Petri Hintukainen committed
19
	src/libbluray/bdj/java-j2me \
20 21
	src/libbluray/bdj/java-j2se \
	contrib/asm
gates's avatar
gates committed
22

23 24 25 26 27 28 29 30 31 32 33
AM_CFLAGS = \
	-std=c99

AM_CPPFLAGS = \
	-D_ISOC99_SOURCE \
	-D_POSIX_C_SOURCE=$(POSIX_C_SOURCE) \
	-D_REENTRANT \
	\
	-I$(top_srcdir)/src \
	-I$(top_srcdir)/src/libbluray

Petri Hintukainen's avatar
Petri Hintukainen committed
34
lib_LTLIBRARIES=libbluray.la
35 36 37 38
libbluray_la_CPPFLAGS = \
	$(AM_CPPFLAGS) \
	-I$(top_builddir)/src/libbluray \
	$(BDJAVA_CFLAGS) \
39
	-I${top_srcdir}/contrib/libudfread/src/ \
40 41 42
	$(LIBXML2_CFLAGS) \
	$(FT2_CFLAGS) \
	$(FONTCONFIG_CFLAGS)
Petri Hintukainen's avatar
Petri Hintukainen committed
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
libbluray_la_SOURCES = \
	src/file/dirs.h \
	src/file/dl.h \
	src/file/file.h \
	src/file/file.c \
	src/file/filesystem.h \
	src/file/filesystem.c \
	src/file/mount.h \
	src/libbluray/bluray.h \
	src/libbluray/bluray.c \
	src/libbluray/bluray_internal.h \
	src/libbluray/bluray-version.h \
	src/libbluray/keys.h \
	src/libbluray/player_settings.h \
	src/libbluray/register.h \
	src/libbluray/register.c \
	src/libbluray/bdnav/bdid_parse.h \
	src/libbluray/bdnav/bdid_parse.c \
61 62
	src/libbluray/bdnav/bdmv_parse.h \
	src/libbluray/bdnav/bdmv_parse.c \
Petri Hintukainen's avatar
Petri Hintukainen committed
63 64 65 66 67 68 69 70 71 72 73
	src/libbluray/bdnav/bdparse.h \
	src/libbluray/bdnav/clpi_parse.c \
	src/libbluray/bdnav/clpi_parse.h \
	src/libbluray/bdnav/extdata_parse.h \
	src/libbluray/bdnav/extdata_parse.c \
	src/libbluray/bdnav/index_parse.h \
	src/libbluray/bdnav/index_parse.c \
	src/libbluray/bdnav/meta_data.h \
	src/libbluray/bdnav/meta_parse.h \
	src/libbluray/bdnav/meta_parse.c \
	src/libbluray/bdnav/mpls_parse.h \
74
	src/libbluray/bdnav/mpls_data.h \
Petri Hintukainen's avatar
Petri Hintukainen committed
75 76 77 78 79
	src/libbluray/bdnav/mpls_parse.c \
	src/libbluray/bdnav/navigation.h \
	src/libbluray/bdnav/navigation.c \
	src/libbluray/bdnav/sound_parse.h \
	src/libbluray/bdnav/sound_parse.c \
80 81
	src/libbluray/bdnav/uo_mask.h \
	src/libbluray/bdnav/uo_mask.c \
Petri Hintukainen's avatar
Petri Hintukainen committed
82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116
	src/libbluray/bdnav/uo_mask_table.h \
	src/libbluray/decoders/graphics_controller.h \
	src/libbluray/decoders/graphics_controller.c \
	src/libbluray/decoders/graphics_processor.h \
	src/libbluray/decoders/graphics_processor.c \
	src/libbluray/decoders/hdmv_pids.h \
	src/libbluray/decoders/ig.h \
	src/libbluray/decoders/ig_decode.h \
	src/libbluray/decoders/ig_decode.c \
	src/libbluray/decoders/m2ts_demux.h \
	src/libbluray/decoders/m2ts_demux.c \
	src/libbluray/decoders/m2ts_filter.h \
	src/libbluray/decoders/m2ts_filter.c \
	src/libbluray/decoders/overlay.h \
	src/libbluray/decoders/pg.h \
	src/libbluray/decoders/pg_decode.h \
	src/libbluray/decoders/pg_decode.c \
	src/libbluray/decoders/pes_buffer.h \
	src/libbluray/decoders/pes_buffer.c \
	src/libbluray/decoders/rle.h \
	src/libbluray/decoders/rle.c \
	src/libbluray/decoders/textst.h \
	src/libbluray/decoders/textst_decode.h \
	src/libbluray/decoders/textst_decode.c \
	src/libbluray/decoders/textst_render.h \
	src/libbluray/decoders/textst_render.c \
	src/libbluray/disc/aacs.h \
	src/libbluray/disc/aacs.c \
	src/libbluray/disc/bdplus.h \
	src/libbluray/disc/bdplus.c \
	src/libbluray/disc/dec.h \
	src/libbluray/disc/dec.c \
	src/libbluray/disc/disc.h \
	src/libbluray/disc/disc.c \
	src/libbluray/disc/enc_info.h \
117 118
	src/libbluray/disc/properties.h \
	src/libbluray/disc/properties.c \
Petri Hintukainen's avatar
Petri Hintukainen committed
119 120 121 122 123 124 125 126 127 128 129 130 131
	src/libbluray/hdmv/hdmv_insn.h \
	src/libbluray/hdmv/hdmv_vm.h \
	src/libbluray/hdmv/hdmv_vm.c \
	src/libbluray/hdmv/mobj_data.h \
	src/libbluray/hdmv/mobj_parse.h \
	src/libbluray/hdmv/mobj_parse.c \
	src/libbluray/hdmv/mobj_print.h \
	src/libbluray/hdmv/mobj_print.c \
	src/util/array.h \
	src/util/array.c \
	src/util/attributes.h \
	src/util/bits.h \
	src/util/bits.c \
132 133
	src/util/event_queue.h \
	src/util/event_queue.c \
Petri Hintukainen's avatar
Petri Hintukainen committed
134 135 136 137 138 139 140 141 142 143
	src/util/logging.h \
	src/util/logging.c \
	src/util/log_control.h \
	src/util/macro.h \
	src/util/mutex.h \
	src/util/mutex.c \
	src/util/refcnt.h \
	src/util/refcnt.c \
	src/util/strutl.h \
	src/util/strutl.c \
144 145
	src/util/time.h \
	src/util/time.c
146

Petri Hintukainen's avatar
Petri Hintukainen committed
147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181
# bd-j
libbluray_la_SOURCES += \
	src/libbluray/bdj/bdj.h \
	src/libbluray/bdj/bdj.c \
	src/libbluray/bdj/bdjo_data.h \
	src/libbluray/bdj/bdjo_parse.h \
	src/libbluray/bdj/bdjo_parse.c \
	src/libbluray/bdj/native/bdjo.h \
	src/libbluray/bdj/native/bdjo.c \
	src/libbluray/bdj/native/java_awt_BDFontMetrics.h \
	src/libbluray/bdj/native/java_awt_BDFontMetrics.c \
	src/libbluray/bdj/native/java_awt_BDGraphics.h \
	src/libbluray/bdj/native/java_awt_BDGraphics.c \
	src/libbluray/bdj/native/org_videolan_Libbluray.h \
	src/libbluray/bdj/native/org_videolan_Libbluray.c \
	src/libbluray/bdj/native/org_videolan_Logger.h \
	src/libbluray/bdj/native/org_videolan_Logger.c \
	src/libbluray/bdj/native/register_native.h \
	src/libbluray/bdj/native/register_native.c \
	src/libbluray/bdj/native/util.h \
	src/libbluray/bdj/native/util.c

# libudfread
libbluray_la_SOURCES += \
	src/libbluray/disc/udf_fs.h \
	src/libbluray/disc/udf_fs.c\
	\
	contrib/libudfread/src/blockinput.h \
	contrib/libudfread/src/default_blockinput.h \
	contrib/libudfread/src/default_blockinput.c \
	contrib/libudfread/src/ecma167.h \
	contrib/libudfread/src/ecma167.c \
	contrib/libudfread/src/udfread.h \
	contrib/libudfread/src/udfread.c

Petri Hintukainen's avatar
Petri Hintukainen committed
182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206
if HAVE_DARWIN
libbluray_la_SOURCES+= \
	src/file/dir_posix.c \
	src/file/dirs_darwin.c \
	src/file/dl_posix.c \
	src/file/file_posix.c \
	src/file/mount_darwin.c
else
if HAVE_WIN32
libbluray_la_SOURCES+= \
	src/file/dir_win32.c \
	src/file/dirs_win32.c \
	src/file/dl_win32.c \
	src/file/file_win32.c \
	src/file/mount.c
else
libbluray_la_SOURCES+= \
	src/file/dir_posix.c \
	src/file/dirs_xdg.c \
	src/file/dl_posix.c \
	src/file/file_posix.c \
	src/file/mount.c
endif
endif

207
libbluray_la_LDFLAGS= -no-undefined -version-info $(LT_VERSION_INFO) -export-symbols-regex "^bd_"
208
libbluray_la_LIBADD= $(LIBXML2_LIBS) $(FT2_LIBS) $(FONTCONFIG_LIBS) $(EXTRA_LIBS)
Petri Hintukainen's avatar
Petri Hintukainen committed
209 210

noinst_HEADERS = \
211 212 213
	jni/jni.h \
	jni/linux/jni_md.h \
	jni/win32/jni_md.h \
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
214
	jni/darwin/jni_md.h
215

Petri Hintukainen's avatar
Petri Hintukainen committed
216 217 218 219 220 221 222 223 224 225
pkginclude_HEADERS = \
	src/file/filesystem.h \
	src/libbluray/bluray.h \
	src/libbluray/bluray-version.h \
	src/libbluray/keys.h \
	src/libbluray/player_settings.h \
	src/libbluray/bdnav/clpi_data.h \
	src/libbluray/bdnav/meta_data.h \
	src/libbluray/decoders/overlay.h \
	src/util/log_control.h
226

227

228
if USING_BDJAVA_BUILD_JAR
Petri Hintukainen's avatar
Petri Hintukainen committed
229

230 231 232 233 234 235
if USING_JAVAC_9
java_versions = -Djava_version_asm=1.6 -Djava_version_bdj=1.6
else
java_versions = -Djava_version_asm=1.5 -Djava_version_bdj=1.4
endif

236 237 238 239 240 241
if BDJ_J2SE
awt_src = java-$(BDJ_TYPE):java-build-support
else
awt_src = java-$(BDJ_TYPE)
endif

Petri Hintukainen's avatar
Petri Hintukainen committed
242
jardir=$(datadir)/java/
Petri Hintukainen's avatar
Petri Hintukainen committed
243 244 245
jar_DATA = \
	$(top_builddir)/.libs/libbluray-$(BDJ_TYPE)-$(VERSION).jar \
	$(top_builddir)/.libs/libbluray-awt-$(BDJ_TYPE)-$(VERSION).jar
Petri Hintukainen's avatar
Petri Hintukainen committed
246

Petri Hintukainen's avatar
Petri Hintukainen committed
247
$(jar_DATA): all-local
Petri Hintukainen's avatar
Petri Hintukainen committed
248 249 250 251 252

all-local:
	ant -f $(top_srcdir)/src/libbluray/bdj/build.xml \
	    -Dbuild='$(abs_builddir)/src/libbluray/bdj/build' \
	    -Ddist='$(abs_builddir)/.libs' \
253
	    -Dsrc_awt=:$(awt_src) \
254
	    $(java_versions) \
Petri Hintukainen's avatar
Petri Hintukainen committed
255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276
	    -Dbootclasspath="$(BDJ_BOOTCLASSPATH)" \
	    -Dversion='$(BDJ_TYPE)-$(VERSION)'

clean-local:
	ant -f $(top_srcdir)/src/libbluray/bdj/build.xml \
	    -Dbuild='$(abs_builddir)/src/libbluray/bdj/build' \
	    -Ddist='$(abs_builddir)/.libs' \
	    -Dversion='$(BDJ_TYPE)-$(VERSION)' \
	    clean
endif

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = src/libbluray.pc


#
# examples
#

if USING_EXAMPLES

noinst_PROGRAMS = \
277
	bdj_test \
Petri Hintukainen's avatar
Petri Hintukainen committed
278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297
	bdjo_dump \
	bdsplice \
	clpi_dump \
	hdmv_test \
	index_dump \
	libbluray_test \
	list_titles \
	mobj_dump \
	mpls_dump \
	sound_dump

bin_PROGRAMS = \
	bd_info

bd_info_SOURCES = src/examples/bd_info.c
bd_info_LDADD = libbluray.la

bdsplice_SOURCES = src/examples/bdsplice.c
bdsplice_LDADD = libbluray.la

298
bdj_test_SOURCES = src/devtools/bdj_test.c
Petri Hintukainen's avatar
Petri Hintukainen committed
299 300
bdj_test_LDADD = libbluray.la

301
bdjo_dump_SOURCES = src/devtools/bdjo_dump.c
Petri Hintukainen's avatar
Petri Hintukainen committed
302 303 304 305
bdjo_dump_LDADD = libbluray.la

clpi_dump_CFLAGS = $(AM_CFLAGS)
clpi_dump_SOURCES = \
306
	src/devtools/clpi_dump.c \
307
	src/devtools/strings.h \
308 309
	src/devtools/util.c \
	src/devtools/util.h
Petri Hintukainen's avatar
Petri Hintukainen committed
310 311
clpi_dump_LDADD = libbluray.la

312
hdmv_test_SOURCES = src/devtools/hdmv_test.c
Petri Hintukainen's avatar
Petri Hintukainen committed
313 314 315 316 317 318 319 320 321 322 323 324
hdmv_test_LDADD = libbluray.la

index_dump_SOURCES = src/examples/index_dump.c
index_dump_LDADD = libbluray.la

libbluray_test_SOURCES = src/examples/libbluray_test.c
libbluray_test_LDADD = libbluray.la

list_titles_SOURCES = src/examples/list_titles.c
list_titles_LDADD = libbluray.la

mobj_dump_CFLAGS = $(AM_CFLAGS)
325 326
mobj_dump_SOURCES = \
	src/devtools/mobj_dump.c \
Petri Hintukainen's avatar
Petri Hintukainen committed
327 328 329 330 331
	src/libbluray/hdmv/mobj_print.c
mobj_dump_LDADD = libbluray.la

mpls_dump_CFLAGS = $(AM_CFLAGS)
mpls_dump_SOURCES = \
332
	src/devtools/mpls_dump.c \
333
	src/devtools/strings.h \
334 335
	src/devtools/util.c \
	src/devtools/util.h
Petri Hintukainen's avatar
Petri Hintukainen committed
336 337 338 339 340 341
mpls_dump_LDADD = libbluray.la

sound_dump_SOURCES = src/examples/sound_dump.c
sound_dump_LDADD = libbluray.la

endif