2007-04-26 23:38:42 +02:00
|
|
|
AUTOMAKE_OPTIONS = foreign
|
2008-03-10 00:40:45 +01:00
|
|
|
SUFFIXES = .c .cpp .rc
|
|
|
|
noinst_LIBRARIES=
|
2006-03-25 17:14:24 +01:00
|
|
|
|
2008-12-31 10:20:50 +01:00
|
|
|
if BUILD_DARWIN
|
|
|
|
libosxutil_subdir = libosxutil
|
|
|
|
libosxutil_lib = libosxutil/libosxutil.a
|
|
|
|
libosxutil_ldflags = -framwork CoreFoundation
|
|
|
|
endif
|
|
|
|
|
|
|
|
SUBDIRS = bitmaps posix $(libosxutil_subdir)
|
2008-03-05 19:52:09 +01:00
|
|
|
|
2008-03-21 03:59:57 +01:00
|
|
|
AM_CXXFLAGS = -DAEGISUB -Iposix -include posix/defines.h -Iinclude @WX_CPPFLAGS@ @OPENMP_CXXFLAGS@
|
2008-03-10 00:40:45 +01:00
|
|
|
|
|
|
|
bin_PROGRAMS = aegisub
|
2008-12-31 10:20:50 +01:00
|
|
|
aegisub_LDADD = posix/libposix.a $(libosxutil_lib)
|
2008-03-10 00:40:45 +01:00
|
|
|
aegisub_CPPFLAGS = @FREETYPE_CFLAGS@
|
2008-12-31 10:20:50 +01:00
|
|
|
aegisub_LDFLAGS = @GL_LIBS@ @PTHREAD_LIBS@ @WX_LIBS@ @ICONV_LDFLAGS@ $(libosxutil_ldflags)
|
2008-03-21 22:01:03 +01:00
|
|
|
LIBS += @FREETYPE_LIBS@ @FONTCONFIG_LIBS@
|
2008-03-10 00:40:45 +01:00
|
|
|
|
2008-03-30 08:13:36 +02:00
|
|
|
if BUILD_DARWIN
|
2008-03-30 08:35:00 +02:00
|
|
|
aegisub_LDFLAGS += @AVUTIL_LDFLAGS@ -L/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries
|
2008-03-30 08:11:45 +02:00
|
|
|
endif
|
|
|
|
|
2008-03-10 00:40:45 +01:00
|
|
|
if HAVE_ALSA
|
|
|
|
noinst_LIBRARIES += libaudio_alsa.a
|
|
|
|
libaudio_alsa_a_SOURCES = audio_player_alsa.cpp
|
|
|
|
aegisub_LDFLAGS += @ALSA_LDFLAGS@
|
|
|
|
aegisub_LDADD += libaudio_alsa.a
|
|
|
|
endif
|
|
|
|
|
|
|
|
if HAVE_PORTAUDIO
|
|
|
|
noinst_LIBRARIES += libaudio_portaudio.a
|
|
|
|
libaudio_portaudio_a_SOURCES = audio_player_portaudio.cpp
|
|
|
|
aegisub_LDFLAGS += @PORTAUDIO_LDFLAGS@
|
|
|
|
aegisub_LDADD += libaudio_portaudio.a
|
2008-03-05 19:52:09 +01:00
|
|
|
endif
|
|
|
|
|
2008-03-10 00:40:45 +01:00
|
|
|
if HAVE_PULSEAUDIO
|
|
|
|
noinst_LIBRARIES += libaudio_pulseaudio.a
|
|
|
|
libaudio_pulseaudio_a_SOURCES = audio_player_pulse.cpp
|
|
|
|
libaudio_pulseaudio_a_CPPFLAGS = @LIBPULSE_CFLAGS@
|
|
|
|
aegisub_LDFLAGS += @LIBPULSE_LIBS@
|
|
|
|
aegisub_LDADD += libaudio_pulseaudio.a
|
|
|
|
endif
|
|
|
|
|
|
|
|
if HAVE_OPENAL
|
|
|
|
noinst_LIBRARIES += libaudio_openal.a
|
|
|
|
libaudio_openal_a_SOURCES = audio_player_openal.cpp
|
|
|
|
libaudio_openal_a_CPPFLAGS = @OPENAL_CFLAGS@
|
|
|
|
aegisub_LDFLAGS += @OPENAL_LIBS@
|
|
|
|
aegisub_LDADD += libaudio_openal.a
|
|
|
|
endif
|
|
|
|
|
|
|
|
if HAVE_FFMPEG
|
|
|
|
noinst_LIBRARIES += libaudiovideo_ffmpeg.a
|
|
|
|
libaudiovideo_ffmpeg_a_SOURCES = audio_provider_lavc.cpp lavc_file.cpp video_provider_lavc.cpp lavc_keyframes.cpp
|
|
|
|
aegisub_LDFLAGS += @AVFORMAT_LDFLAGS@ @AVCODEC_LDFLAGS@ @SWSCALE_LDFLAGS@
|
|
|
|
aegisub_LDADD += libaudiovideo_ffmpeg.a
|
|
|
|
endif
|
|
|
|
|
2008-10-28 03:18:14 +01:00
|
|
|
if HAVE_FFMPEGSOURCE
|
|
|
|
noinst_LIBRARIES += libaudiovideo_ffmpegsource.a
|
|
|
|
libaudiovideo_ffmpegsource_a_SOURCES = audio_provider_ffmpegsource.cpp video_provider_ffmpegsource.cpp ffmpegsource_common.cpp
|
|
|
|
aegisub_LDFLAGS += @AVFORMAT_LDFLAGS@ @AVCODEC_LDFLAGS@ @SWSCALE_LDFLAGS@ @POSTPROC_LDFLAGS@
|
|
|
|
aegisub_LDADD += libaudiovideo_ffmpegsource.a ../FFmpegSource2/libffmpegsource2_aegisub.a
|
|
|
|
endif
|
|
|
|
|
2008-04-13 07:10:27 +02:00
|
|
|
noinst_LIBRARIES += libsubtitle_provider.a
|
|
|
|
libsubtitle_provider_a_SOURCES = subtitles_provider.cpp
|
|
|
|
libsubtitle_provider_a_CPPFLAGS = @CSRI_CFLAGS@
|
|
|
|
aegisub_LDADD += libsubtitle_provider.a
|
|
|
|
|
2008-03-23 23:56:21 +01:00
|
|
|
if WITH_LIBASS
|
2008-03-10 00:40:45 +01:00
|
|
|
noinst_LIBRARIES += libsubtitle_ass.a
|
|
|
|
libsubtitle_ass_a_SOURCES = subtitles_provider_libass.cpp
|
2008-03-30 10:08:43 +02:00
|
|
|
libsubtitle_ass_a_CPPFLAGS = @LIBASS_CFLAGS@ @ICONV_CFLAGS@
|
2008-03-21 22:01:03 +01:00
|
|
|
LIBS += @LIBASS_LIBS@
|
2008-03-10 00:40:45 +01:00
|
|
|
aegisub_LDADD += libsubtitle_ass.a
|
2008-03-23 23:56:21 +01:00
|
|
|
aegisub_LDFLAGS += @FONTCONFIG_LIBS@
|
2008-03-10 00:40:45 +01:00
|
|
|
endif
|
|
|
|
|
2008-04-13 07:10:27 +02:00
|
|
|
if WITH_CSRI
|
|
|
|
noinst_LIBRARIES += libsubtitle_csri.a
|
|
|
|
libsubtitle_csri_a_SOURCES = subtitles_provider_csri.cpp
|
|
|
|
libsubtitle_csri_a_CPPFLAGS = @ICONV_CFLAGS@ @CSRI_CFLAGS@
|
|
|
|
LIBS += @CSRI_LIBS@
|
|
|
|
aegisub_LDADD += libsubtitle_csri.a
|
|
|
|
aegisub_LDFLAGS += @FONTCONFIG_LIBS@
|
|
|
|
endif
|
|
|
|
|
2008-03-10 00:40:45 +01:00
|
|
|
if HAVE_AUTO4_LUA
|
|
|
|
noinst_LIBRARIES += libauto4_lua.a
|
|
|
|
libauto4_lua_a_SOURCES = auto4_lua.cpp auto4_lua_assfile.cpp auto4_lua_dialog.cpp auto4_lua_scriptreader.cpp
|
2008-03-20 22:24:01 +01:00
|
|
|
libauto4_lua_a_CPPFLAGS = @LUA_CFLAGS@
|
|
|
|
LIBS += @LUA_LDFLAGS@
|
2008-03-10 00:40:45 +01:00
|
|
|
aegisub_LDADD += libauto4_lua.a
|
|
|
|
endif
|
|
|
|
|
|
|
|
if HAVE_AUTO4_PERL
|
|
|
|
noinst_LIBRARIES += libauto4_perl.a
|
|
|
|
libauto4_perl_a_SOURCES = auto4_perl.cpp auto4_perl_script.cpp auto4_perl_dialogs.cpp auto4_perl_ass.cpp auto4_perl_console.cpp auto4_perl.h auto4_perl_console.h
|
|
|
|
libauto4_perl_a_CPPFLAGS = @PERL_CFLAGS@
|
2008-03-11 07:31:06 +01:00
|
|
|
LIBS += @PERL_LDFLAGS@
|
2008-03-10 00:40:45 +01:00
|
|
|
aegisub_LDADD += libauto4_perl.a
|
|
|
|
endif
|
|
|
|
|
|
|
|
if HAVE_AUTO4_RUBY
|
|
|
|
noinst_LIBRARIES += libauto4_ruby.a
|
|
|
|
libauto4_ruby_a_SOURCES = auto4_ruby_assfile.cpp auto4_ruby.cpp auto4_ruby_dialog.cpp
|
|
|
|
libauto4_ruby_a_CPPFLAGS = @RUBY_CFLAGS@
|
|
|
|
aegisub_LDFLAGS += @RUBY_LDFLAGS@
|
|
|
|
aegisub_LDADD += libauto4_ruby.a
|
|
|
|
endif
|
|
|
|
|
|
|
|
if HAVE_AUTO3_LUA
|
|
|
|
AUTO3_LUA = auto4_auto3.cpp
|
|
|
|
aegisub_LDADD += -L$(srcdir)/../auto3 -laegisub-auto3
|
|
|
|
endif
|
|
|
|
|
|
|
|
if HAVE_HUNSPELL
|
|
|
|
noinst_LIBRARIES += libmisc_hunspell.a
|
|
|
|
libmisc_hunspell_a_SOURCES = spellchecker_hunspell.cpp
|
|
|
|
aegisub_LDFLAGS += @HUNSPELL_LIBS@
|
|
|
|
aegisub_LDADD += libmisc_hunspell.a
|
|
|
|
endif
|
|
|
|
|
|
|
|
if HAVE_UNIVCHARDET
|
|
|
|
noinst_LIBRARIES += libmisc_universalchardet.a
|
|
|
|
libmisc_universalchardet_a_SOURCES = charset_detect.cpp text_file_reader.cpp
|
2008-03-20 23:24:28 +01:00
|
|
|
libmisc_universalchardet_a_CPPFLAGS = -D_X86_
|
2008-03-10 00:40:45 +01:00
|
|
|
aegisub_LDADD += libmisc_universalchardet.a ../universalchardet/libuniversalchardet.a
|
|
|
|
else
|
|
|
|
UNIVCHARSET = charset_detect.cpp text_file_reader.cpp
|
|
|
|
endif
|
2008-03-09 06:32:02 +01:00
|
|
|
|
2008-03-27 00:58:39 +01:00
|
|
|
if BUILD_DARWIN
|
2008-12-29 03:57:41 +01:00
|
|
|
BEVEL_BUTTON = osx_bevelButton.cpp
|
2008-03-29 23:30:30 +01:00
|
|
|
endif
|
|
|
|
|
2008-04-13 19:44:54 +02:00
|
|
|
if FONTLISTER_FREETYPE
|
|
|
|
FONT_LISTER = font_file_lister_freetype.cpp
|
|
|
|
endif
|
|
|
|
|
|
|
|
if FONTLISTER_FONTCONFIG
|
2008-03-29 23:30:30 +01:00
|
|
|
FONT_LISTER = font_file_lister_fontconfig.cpp
|
2008-03-27 00:58:39 +01:00
|
|
|
endif
|
2008-03-05 19:52:09 +01:00
|
|
|
|
2008-03-03 08:22:58 +01:00
|
|
|
|
2008-03-10 00:40:45 +01:00
|
|
|
## These aren't built, but are listed here so 'make dist' can always find all the sources
|
|
|
|
## This should also list all Win32 specific files
|
|
|
|
EXTRA_aegisub_SOURCES = \
|
2008-03-27 00:58:39 +01:00
|
|
|
font_file_lister.cpp \
|
2008-03-29 23:30:30 +01:00
|
|
|
$(FONT_LISTER) \
|
2008-03-10 00:40:45 +01:00
|
|
|
audio_player_dsound.cpp \
|
2008-11-27 19:35:26 +01:00
|
|
|
audio_player_dsound2.cpp \
|
2008-03-10 00:40:45 +01:00
|
|
|
audio_player_portaudio.cpp \
|
|
|
|
audio_player_pulse.cpp \
|
|
|
|
audio_provider_avs.cpp \
|
|
|
|
audio_provider_lavc.cpp \
|
2008-03-22 09:20:28 +01:00
|
|
|
auto4_auto3.cpp \
|
2008-03-10 00:40:45 +01:00
|
|
|
auto4_lua.cpp \
|
|
|
|
auto4_lua_assfile.cpp \
|
|
|
|
auto4_lua_dialog.cpp \
|
|
|
|
auto4_lua_scriptreader.cpp \
|
|
|
|
auto4_ruby.cpp \
|
|
|
|
auto4_ruby_assfile.cpp \
|
|
|
|
auto4_ruby_dialog.cpp \
|
|
|
|
avisynth_wrap.cpp \
|
|
|
|
dialog_associations.cpp \
|
|
|
|
lavc_file.cpp \
|
|
|
|
lavc_keyframes.cpp \
|
2008-12-29 03:57:41 +01:00
|
|
|
osx_bevelButton.cpp \
|
2008-03-10 00:40:45 +01:00
|
|
|
setup.cpp \
|
|
|
|
spellchecker_hunspell.cpp \
|
|
|
|
stdwx.cpp \
|
|
|
|
subtitle_format_prs.cpp \
|
2008-04-13 07:10:27 +02:00
|
|
|
subtitles_provider_csri.cpp \
|
2008-03-10 00:40:45 +01:00
|
|
|
subtitles_provider_libass.cpp \
|
|
|
|
video_provider_avs.cpp \
|
|
|
|
video_provider_dshow.cpp \
|
2008-10-28 03:18:14 +01:00
|
|
|
video_provider_lavc.cpp
|
2007-04-25 00:29:27 +02:00
|
|
|
|
2008-03-29 23:30:30 +01:00
|
|
|
|
2008-03-10 00:40:45 +01:00
|
|
|
aegisub_SOURCES = \
|
2008-03-22 09:20:28 +01:00
|
|
|
$(AUTO3_LUA) \
|
|
|
|
$(FFMPEG) \
|
2008-03-10 00:40:45 +01:00
|
|
|
$(HUNSPELL) \
|
|
|
|
$(LIBASS) \
|
|
|
|
$(UNIVCHARSET) \
|
2008-03-29 23:30:30 +01:00
|
|
|
$(BEVEL_BUTTON) \
|
|
|
|
font_file_lister.cpp \
|
|
|
|
$(FONT_LISTER) \
|
2008-03-22 09:20:28 +01:00
|
|
|
MatroskaParser.c \
|
2008-03-10 00:40:45 +01:00
|
|
|
aegisublocale.cpp \
|
|
|
|
ass_attachment.cpp \
|
|
|
|
ass_dialogue.cpp \
|
|
|
|
ass_entry.cpp \
|
|
|
|
ass_export_filter.cpp \
|
|
|
|
ass_exporter.cpp \
|
|
|
|
ass_file.cpp \
|
|
|
|
ass_karaoke.cpp \
|
|
|
|
ass_override.cpp \
|
|
|
|
ass_style.cpp \
|
|
|
|
ass_style_storage.cpp \
|
|
|
|
ass_time.cpp \
|
|
|
|
audio_box.cpp \
|
|
|
|
audio_display.cpp \
|
|
|
|
audio_karaoke.cpp \
|
2008-03-22 09:20:28 +01:00
|
|
|
audio_player.cpp \
|
2008-03-10 00:40:45 +01:00
|
|
|
audio_provider.cpp \
|
|
|
|
audio_provider_convert.cpp \
|
2008-07-16 00:49:02 +02:00
|
|
|
audio_provider_downmix.cpp \
|
2008-03-10 00:40:45 +01:00
|
|
|
audio_provider_hd.cpp \
|
|
|
|
audio_provider_pcm.cpp \
|
2008-03-22 09:20:28 +01:00
|
|
|
audio_provider_ram.cpp \
|
2008-03-10 00:40:45 +01:00
|
|
|
audio_provider_stream.cpp \
|
|
|
|
audio_spectrum.cpp \
|
2008-03-22 09:20:28 +01:00
|
|
|
auto4_base.cpp \
|
2008-03-10 00:40:45 +01:00
|
|
|
avisynth_wrap.cpp \
|
|
|
|
base_grid.cpp \
|
|
|
|
browse_button.cpp \
|
|
|
|
colorspace.cpp \
|
|
|
|
colour_button.cpp \
|
|
|
|
dialog_about.cpp \
|
|
|
|
dialog_attachments.cpp \
|
|
|
|
dialog_automation.cpp \
|
|
|
|
dialog_colorpicker.cpp \
|
|
|
|
dialog_detached_video.cpp \
|
|
|
|
dialog_dummy_video.cpp \
|
|
|
|
dialog_export.cpp \
|
|
|
|
dialog_fonts_collector.cpp \
|
|
|
|
dialog_jumpto.cpp \
|
|
|
|
dialog_kanji_timer.cpp \
|
|
|
|
dialog_options.cpp \
|
|
|
|
dialog_paste_over.cpp \
|
|
|
|
dialog_progress.cpp \
|
|
|
|
dialog_properties.cpp \
|
|
|
|
dialog_resample.cpp \
|
|
|
|
dialog_search_replace.cpp \
|
|
|
|
dialog_selection.cpp \
|
|
|
|
dialog_shift_times.cpp \
|
|
|
|
dialog_spellchecker.cpp \
|
|
|
|
dialog_splash.cpp \
|
|
|
|
dialog_style_editor.cpp \
|
|
|
|
dialog_style_manager.cpp \
|
|
|
|
dialog_styling_assistant.cpp \
|
|
|
|
dialog_text_import.cpp \
|
|
|
|
dialog_timing_processor.cpp \
|
|
|
|
dialog_tip.cpp \
|
|
|
|
dialog_translation.cpp \
|
|
|
|
dialog_version_check.cpp \
|
|
|
|
dialog_video_details.cpp \
|
|
|
|
drop.cpp \
|
|
|
|
export_clean_info.cpp \
|
|
|
|
export_fixstyle.cpp \
|
|
|
|
export_framerate.cpp \
|
|
|
|
export_visible_lines.cpp \
|
|
|
|
fft.cpp \
|
|
|
|
frame_main.cpp \
|
|
|
|
frame_main_events.cpp \
|
|
|
|
gl_text.cpp \
|
|
|
|
gl_wrap.cpp \
|
|
|
|
help_button.cpp \
|
|
|
|
hilimod_textctrl.cpp \
|
|
|
|
hotkeys.cpp \
|
|
|
|
idle_field_event.cpp \
|
|
|
|
kana_table.cpp \
|
|
|
|
keyframe.cpp \
|
|
|
|
main.cpp \
|
|
|
|
md5.c \
|
|
|
|
mkv_wrap.cpp \
|
|
|
|
mythes.cxx \
|
|
|
|
options.cpp \
|
2008-03-11 07:19:20 +01:00
|
|
|
plugin_manager.cpp \
|
2008-03-10 00:40:45 +01:00
|
|
|
scintilla_text_ctrl.cpp \
|
|
|
|
spellchecker.cpp \
|
|
|
|
spline.cpp \
|
|
|
|
spline_curve.cpp \
|
|
|
|
standard_paths.cpp \
|
|
|
|
static_bmp.cpp \
|
|
|
|
string_codec.cpp \
|
|
|
|
subs_edit_box.cpp \
|
|
|
|
subs_edit_ctrl.cpp \
|
|
|
|
subs_grid.cpp \
|
|
|
|
subs_preview.cpp \
|
|
|
|
subtitle_format.cpp \
|
|
|
|
subtitle_format_ass.cpp \
|
|
|
|
subtitle_format_dvd.cpp \
|
|
|
|
subtitle_format_encore.cpp \
|
|
|
|
subtitle_format_microdvd.cpp \
|
|
|
|
subtitle_format_mkv.cpp \
|
|
|
|
subtitle_format_srt.cpp \
|
2008-07-18 03:36:20 +02:00
|
|
|
subtitle_format_transtation.cpp \
|
2008-03-10 00:40:45 +01:00
|
|
|
subtitle_format_ttxt.cpp \
|
2008-03-22 09:20:28 +01:00
|
|
|
subtitle_format_txt.cpp \
|
2008-03-10 00:40:45 +01:00
|
|
|
text_file_writer.cpp \
|
|
|
|
thesaurus.cpp \
|
|
|
|
thesaurus_myspell.cpp \
|
|
|
|
timeedit_ctrl.cpp \
|
|
|
|
toggle_bitmap.cpp \
|
|
|
|
tooltip_manager.cpp \
|
|
|
|
utils.cpp \
|
|
|
|
validators.cpp \
|
|
|
|
variable_data.cpp \
|
|
|
|
vector2d.cpp \
|
|
|
|
version.cpp \
|
|
|
|
vfr.cpp \
|
|
|
|
video_box.cpp \
|
|
|
|
video_context.cpp \
|
|
|
|
video_display.cpp \
|
|
|
|
video_frame.cpp \
|
2008-03-22 09:20:28 +01:00
|
|
|
video_provider_cache.cpp \
|
2008-03-10 00:40:45 +01:00
|
|
|
video_provider_dummy.cpp \
|
|
|
|
video_provider_manager.cpp \
|
|
|
|
video_slider.cpp \
|
|
|
|
visual_feature.cpp \
|
|
|
|
visual_tool.cpp \
|
|
|
|
visual_tool_clip.cpp \
|
|
|
|
visual_tool_cross.cpp \
|
|
|
|
visual_tool_drag.cpp \
|
|
|
|
visual_tool_rotatexy.cpp \
|
|
|
|
visual_tool_rotatez.cpp \
|
|
|
|
visual_tool_scale.cpp \
|
2008-03-22 09:20:28 +01:00
|
|
|
visual_tool_vector_clip.cpp
|
|
|
|
|
|
|
|
|
|
|
|
aegisub_SOURCES += \
|
|
|
|
$(srcdir)/*.h \
|
|
|
|
$(srcdir)/include/aegisub/*.h
|
2006-03-25 17:14:24 +01:00
|
|
|
|
2008-03-10 00:40:45 +01:00
|
|
|
noinst_HEADERS = \
|
2008-03-22 09:20:28 +01:00
|
|
|
$(srcdir)/boost/*.hpp \
|
2008-03-10 00:40:45 +01:00
|
|
|
gl/glext.h \
|
2008-03-29 23:30:30 +01:00
|
|
|
$(srcdir)/*.hxx \
|
2008-12-29 03:57:41 +01:00
|
|
|
osx_bevelButton.h
|
2008-03-03 08:22:58 +01:00
|
|
|
|
2008-03-08 23:22:01 +01:00
|
|
|
EXTRA_DIST = \
|
2008-03-22 09:20:28 +01:00
|
|
|
auto4_perldata.inc \
|
|
|
|
win32/stdint.h
|