2007-04-25 04:03:02 +02:00
|
|
|
EXTRA_DIST = res.rc $(srcdir)/*.h beautify
|
2006-03-25 17:14:24 +01:00
|
|
|
SUFFIXES = .c .cpp .rc
|
|
|
|
|
2007-04-25 04:03:02 +02:00
|
|
|
## Most of these are just to catch extra sources for tarball.
|
|
|
|
## I'm not sure if the build subdir should be included here...? --jfs
|
|
|
|
SUBDIRS = bitmaps gl macosx posix win32
|
2006-03-25 17:14:24 +01:00
|
|
|
|
|
|
|
bin_PROGRAMS = aegisub
|
|
|
|
|
2007-04-25 04:03:02 +02:00
|
|
|
## My automake complains about these not being portable
|
|
|
|
## Perhaps it should somehow be moved to a shell script that generates an
|
|
|
|
## include, which is then included in source tarball?
|
|
|
|
## Similar to what the make-svn-rev-header.py scripts do currently.
|
|
|
|
## --jfs
|
2007-01-11 04:52:17 +01:00
|
|
|
SVNREV := $(strip $(shell grep -m 1 revision= .svn/entries 2>/dev/null | cut -d \" -f 2))
|
2006-05-07 16:29:45 +02:00
|
|
|
DARCSREV := $(strip $(shell head -n 1 ../_darcs/inventory 2>/dev/null))
|
|
|
|
REVISION := $(if $(SVNREV),-DBUILD_SVN_REVISION=$(SVNREV)) $(if $(DARCSREV),-DBUILD_DARCS)
|
|
|
|
BUILDINFO := -DBUILD_CREDIT="\"$(shell whoami)\"" $(REVISION)
|
|
|
|
|
2007-04-23 00:20:53 +02:00
|
|
|
AM_CPPFLAGST = -DAEGISUB -Iposix -include posix/defines.h $(BUILDINFO)
|
2007-04-25 00:29:27 +02:00
|
|
|
aegisub_LDADD = posix/libposix.a ../lua51/src/liblua.a ../FexTrackerSource/libfex.a ../csri/lib/.libs/libcsri.a
|
|
|
|
aegisub_LDFLAGS =
|
2007-01-30 23:13:26 +01:00
|
|
|
|
2007-04-04 21:40:06 +02:00
|
|
|
if USE_LIBASS
|
|
|
|
LIBASS=subtitles_provider_libass.cpp
|
|
|
|
else
|
|
|
|
LIBASS=
|
|
|
|
endif
|
|
|
|
|
2007-04-22 23:59:35 +02:00
|
|
|
AUDIO_PLAYER=audio_player.cpp
|
2007-04-22 09:04:31 +02:00
|
|
|
if HAVE_PORTAUDIO
|
2007-04-23 04:30:27 +02:00
|
|
|
AUDIO_PLAYER += audio_player_portaudio.cpp
|
2007-04-25 00:29:27 +02:00
|
|
|
aegisub_LDFLAGS += -lportaudio
|
2007-04-22 23:59:35 +02:00
|
|
|
endif
|
|
|
|
if HAVE_ALSA
|
2007-04-23 04:30:27 +02:00
|
|
|
AUDIO_PLAYER += audio_player_alsa.cpp
|
2007-04-25 00:29:27 +02:00
|
|
|
aegisub_LDFLAGS += -lasound
|
2007-04-22 09:04:31 +02:00
|
|
|
endif
|
2007-04-23 04:30:27 +02:00
|
|
|
if HAVE_PULSEAUDIO
|
|
|
|
AUDIO_PLAYER += audio_player_pulse.cpp
|
2007-04-25 00:29:27 +02:00
|
|
|
aegisub_LDFLAGS += -lpulse
|
2007-04-23 04:30:27 +02:00
|
|
|
endif
|
2007-04-22 09:04:31 +02:00
|
|
|
|
2007-04-23 00:20:53 +02:00
|
|
|
if HAVE_RUBY
|
|
|
|
AUTO4RUBY=auto4_ruby_assfile.cpp auto4_ruby.cpp auto4_ruby_dialog.cpp
|
|
|
|
AM_CPPFLAGS = $(shell ruby -r rbconfig -e "p '-I' + Config::CONFIG['rubylibdir'] + '/' + Config::CONFIG['arch'] ") $(AM_CPPFLAGST)
|
|
|
|
else
|
|
|
|
AUTO4RUBY=
|
|
|
|
AM_CPPFLAGS = $(AM_CPPFLAGST)
|
|
|
|
endif
|
2007-01-30 23:13:26 +01:00
|
|
|
|
2007-04-22 17:45:29 +02:00
|
|
|
if HAVE_HUNSPELL
|
|
|
|
HUNSPELL=spellchecker_hunspell.cpp
|
|
|
|
else
|
|
|
|
HUNSPELL=
|
2007-04-22 23:59:35 +02:00
|
|
|
endif
|
2007-04-22 17:45:29 +02:00
|
|
|
|
2007-04-24 02:52:49 +02:00
|
|
|
if HAVE_FFMPEG
|
|
|
|
FFMPEG=audio_provider_lavc.cpp lavc_file.cpp video_provider_lavc.cpp
|
|
|
|
else
|
|
|
|
FFMPEG=
|
|
|
|
endif
|
|
|
|
|
2007-04-25 00:29:27 +02:00
|
|
|
|
|
|
|
## These aren't built, but are listed here so 'make dist' can always find all the sources
|
2007-04-25 04:03:02 +02:00
|
|
|
## This should also list all Win32 specific files
|
2007-04-25 00:29:27 +02:00
|
|
|
EXTRA_aegisub_SOURCES = \
|
|
|
|
audio_player_alsa.cpp \
|
|
|
|
audio_player_dsound.cpp \
|
2007-04-25 04:03:02 +02:00
|
|
|
audio_player_portaudio.cpp \
|
|
|
|
audio_player_pulse.cpp \
|
|
|
|
audio_provider_avs.cpp \
|
2007-04-25 00:29:27 +02:00
|
|
|
audio_provider_lavc.cpp \
|
2007-04-25 04:03:02 +02:00
|
|
|
auto4_ruby.cpp \
|
|
|
|
auto4_ruby_assfile.cpp \
|
|
|
|
auto4_ruby_dialog.cpp \
|
|
|
|
avisynth.h \
|
|
|
|
avisynth_wrap.cpp \
|
|
|
|
dialog_associations.cpp \
|
|
|
|
factory.h \
|
|
|
|
fextracker_main_events.cpp \
|
2007-04-25 00:29:27 +02:00
|
|
|
lavc_file.cpp \
|
2007-04-25 04:03:02 +02:00
|
|
|
setup0.h \
|
|
|
|
setup.cpp \
|
|
|
|
spellchecker_hunspell.cpp \
|
|
|
|
stdwx.cpp \
|
|
|
|
stdwx.h \
|
|
|
|
subtitle_format_prs.cpp \
|
|
|
|
subtitles_provider_libass.cpp \
|
|
|
|
video_display_fextracker.cpp \
|
|
|
|
video_provider_avs.cpp \
|
|
|
|
video_provider_dshow.cpp \
|
2007-04-25 00:29:27 +02:00
|
|
|
video_provider_lavc.cpp
|
|
|
|
|
2007-01-01 20:45:32 +01:00
|
|
|
aegisub_SOURCES = \
|
2007-04-24 02:52:49 +02:00
|
|
|
$(AUDIO_PLAYER) \
|
|
|
|
$(AUTO4RUBY) \
|
|
|
|
$(HUNSPELL) \
|
|
|
|
$(LIBASS) \
|
|
|
|
$(FFMPEG) \
|
2006-03-25 17:14:24 +01:00
|
|
|
aegisublocale.cpp \
|
2006-07-08 00:48:10 +02:00
|
|
|
ass_attachment.cpp \
|
2006-03-25 17:14:24 +01:00
|
|
|
ass_dialogue.cpp \
|
|
|
|
ass_entry.cpp \
|
|
|
|
ass_export_filter.cpp \
|
|
|
|
ass_exporter.cpp \
|
|
|
|
ass_file.cpp \
|
|
|
|
ass_override.cpp \
|
|
|
|
ass_style.cpp \
|
|
|
|
ass_style_storage.cpp \
|
|
|
|
ass_time.cpp \
|
|
|
|
audio_box.cpp \
|
|
|
|
audio_display.cpp \
|
|
|
|
audio_karaoke.cpp \
|
|
|
|
audio_provider.cpp \
|
|
|
|
audio_provider_hd.cpp \
|
|
|
|
audio_provider_ram.cpp \
|
2006-07-08 00:48:10 +02:00
|
|
|
audio_provider_stream.cpp \
|
2007-01-10 02:36:05 +01:00
|
|
|
audio_spectrum.cpp \
|
2007-01-01 20:45:32 +01:00
|
|
|
auto4_base.cpp \
|
|
|
|
auto4_lua.cpp \
|
|
|
|
auto4_lua_assfile.cpp \
|
|
|
|
auto4_lua_dialog.cpp \
|
2007-01-18 19:49:36 +01:00
|
|
|
auto4_auto3.cpp \
|
2006-03-25 17:14:24 +01:00
|
|
|
avisynth_wrap.cpp \
|
|
|
|
base_grid.cpp \
|
2007-04-18 01:03:08 +02:00
|
|
|
browse_button.cpp \
|
2006-03-25 17:14:24 +01:00
|
|
|
colorspace.cpp \
|
2007-01-11 04:52:17 +01:00
|
|
|
colour_button.cpp \
|
2007-01-01 20:45:32 +01:00
|
|
|
dialog_about.cpp \
|
2006-07-08 00:48:10 +02:00
|
|
|
dialog_attachments.cpp \
|
2007-01-01 20:45:32 +01:00
|
|
|
dialog_automation.cpp \
|
2006-03-25 17:14:24 +01:00
|
|
|
dialog_colorpicker.cpp \
|
2007-01-30 23:13:26 +01:00
|
|
|
dialog_detached_video.cpp \
|
2007-04-02 20:28:09 +02:00
|
|
|
dialog_dummy_video.cpp \
|
2006-03-25 17:14:24 +01:00
|
|
|
dialog_export.cpp \
|
2007-01-31 00:09:33 +01:00
|
|
|
dialog_fextracker.cpp \
|
2007-01-03 22:18:19 +01:00
|
|
|
dialog_fonts_collector.cpp \
|
2006-03-25 17:14:24 +01:00
|
|
|
dialog_jumpto.cpp \
|
2007-01-30 23:13:26 +01:00
|
|
|
dialog_kanji_timer.cpp \
|
2006-07-08 00:48:10 +02:00
|
|
|
dialog_options.cpp \
|
2007-01-01 20:45:32 +01:00
|
|
|
dialog_paste_over.cpp \
|
2006-03-25 17:14:24 +01:00
|
|
|
dialog_progress.cpp \
|
|
|
|
dialog_properties.cpp \
|
|
|
|
dialog_resample.cpp \
|
|
|
|
dialog_search_replace.cpp \
|
|
|
|
dialog_selection.cpp \
|
|
|
|
dialog_shift_times.cpp \
|
2007-04-18 21:44:45 +02:00
|
|
|
dialog_spellchecker.cpp \
|
2007-01-01 20:45:32 +01:00
|
|
|
dialog_splash.cpp \
|
2006-03-25 17:14:24 +01:00
|
|
|
dialog_style_editor.cpp \
|
|
|
|
dialog_style_manager.cpp \
|
|
|
|
dialog_styling_assistant.cpp \
|
|
|
|
dialog_timing_processor.cpp \
|
2007-01-01 20:45:32 +01:00
|
|
|
dialog_tip.cpp \
|
2006-03-25 17:14:24 +01:00
|
|
|
dialog_translation.cpp \
|
2007-01-08 22:11:06 +01:00
|
|
|
dialog_version_check.cpp \
|
2006-03-25 17:14:24 +01:00
|
|
|
drop.cpp \
|
|
|
|
export_clean_info.cpp \
|
|
|
|
export_fixstyle.cpp \
|
|
|
|
export_framerate.cpp \
|
2007-01-09 02:52:30 +01:00
|
|
|
export_visible_lines.cpp \
|
2006-03-25 17:14:24 +01:00
|
|
|
fft.cpp \
|
|
|
|
frame_main.cpp \
|
|
|
|
frame_main_events.cpp \
|
2007-04-18 21:44:45 +02:00
|
|
|
gl_text.cpp \
|
2007-01-24 04:03:16 +01:00
|
|
|
gl_wrap.cpp \
|
2006-03-25 17:14:24 +01:00
|
|
|
hilimod_textctrl.cpp \
|
|
|
|
hotkeys.cpp \
|
2007-01-01 20:45:32 +01:00
|
|
|
idle_field_event.cpp \
|
2007-01-30 23:13:26 +01:00
|
|
|
kana_table.cpp \
|
2006-03-25 17:14:24 +01:00
|
|
|
main.cpp \
|
2006-04-08 21:33:43 +02:00
|
|
|
md5.c \
|
2006-03-25 17:14:24 +01:00
|
|
|
mkv_wrap.cpp \
|
2007-01-03 22:18:19 +01:00
|
|
|
mythes.cxx \
|
2006-03-25 17:14:24 +01:00
|
|
|
options.cpp \
|
2007-01-01 20:45:32 +01:00
|
|
|
spellchecker.cpp \
|
2006-03-25 17:14:24 +01:00
|
|
|
static_bmp.cpp \
|
|
|
|
string_codec.cpp \
|
|
|
|
subs_edit_box.cpp \
|
2007-01-01 20:45:32 +01:00
|
|
|
subs_edit_ctrl.cpp \
|
2006-03-25 17:14:24 +01:00
|
|
|
subs_grid.cpp \
|
2007-04-16 06:26:42 +02:00
|
|
|
subs_preview.cpp \
|
2006-03-25 17:14:24 +01:00
|
|
|
subtitle_format.cpp \
|
|
|
|
subtitle_format_ass.cpp \
|
2007-01-01 20:45:32 +01:00
|
|
|
subtitle_format_mkv.cpp \
|
2006-03-25 17:14:24 +01:00
|
|
|
subtitle_format_srt.cpp \
|
|
|
|
subtitle_format_txt.cpp \
|
2007-01-24 04:03:16 +01:00
|
|
|
subtitles_provider.cpp \
|
|
|
|
subtitles_provider_csri.cpp \
|
2006-03-25 17:14:24 +01:00
|
|
|
text_file_reader.cpp \
|
|
|
|
text_file_writer.cpp \
|
2007-01-01 20:45:32 +01:00
|
|
|
thesaurus.cpp \
|
|
|
|
thesaurus_myspell.cpp \
|
2006-03-25 17:14:24 +01:00
|
|
|
timeedit_ctrl.cpp \
|
|
|
|
toggle_bitmap.cpp \
|
|
|
|
utils.cpp \
|
|
|
|
validators.cpp \
|
|
|
|
variable_data.cpp \
|
2006-04-08 21:33:43 +02:00
|
|
|
version.cpp \
|
2006-03-25 17:14:24 +01:00
|
|
|
vfr.cpp \
|
|
|
|
video_box.cpp \
|
2007-01-24 04:03:16 +01:00
|
|
|
video_context.cpp \
|
2006-03-25 17:14:24 +01:00
|
|
|
video_display.cpp \
|
2007-01-31 00:09:33 +01:00
|
|
|
video_display_fextracker.cpp \
|
2007-01-08 22:11:06 +01:00
|
|
|
video_display_visual.cpp \
|
2007-01-24 04:03:16 +01:00
|
|
|
video_frame.cpp \
|
2006-03-25 17:14:24 +01:00
|
|
|
video_provider.cpp \
|
2007-04-02 00:06:00 +02:00
|
|
|
video_provider_dummy.cpp \
|
2006-03-25 17:14:24 +01:00
|
|
|
video_slider.cpp \
|
|
|
|
MatroskaParser.c
|
|
|
|
|
2007-04-04 20:50:43 +02:00
|
|
|
noinst_HEADERS = \
|
|
|
|
boost/assert.hpp \
|
|
|
|
boost/checked_delete.hpp \
|
|
|
|
boost/shared_count.hpp \
|
|
|
|
boost/shared_ptr.hpp \
|
|
|
|
boost/throw_exception.hpp \
|
|
|
|
boost/workaround.hpp \
|
|
|
|
gl/glext.h \
|
|
|
|
csri/csri.h \
|
|
|
|
csri/logging.h \
|
|
|
|
csri/openerr.h \
|
|
|
|
mythes.hxx
|