2010-12-05 20:12:42 +01:00
|
|
|
include ../Makefile.inc
|
|
|
|
|
|
|
|
PROGRAM = aegisub-3.0
|
|
|
|
PROGRAM_INSTALL = yes
|
|
|
|
|
|
|
|
PRECOMPILED_HEADER_NAME=agi_pre.h
|
|
|
|
|
2012-01-08 02:04:05 +01:00
|
|
|
AEGISUB_CFLAGS = -I. -I.. -Iinclude -I../libaegisub/include -DAEGISUB $(CFLAGS_PTHREAD) $(CFLAGS_FFTW3) $(CFLAGS_PROFILE)
|
2011-12-22 22:21:20 +01:00
|
|
|
|
|
|
|
CFLAGS += $(AEGISUB_CFLAGS)
|
|
|
|
CXXFLAGS += $(AEGISUB_CFLAGS) -D__STDC_FORMAT_MACROS $(CXXFLAGS_WX)
|
2010-12-05 20:12:42 +01:00
|
|
|
|
2011-12-22 22:24:40 +01:00
|
|
|
LIBS += -L../libaegisub -laegisub-3.0
|
|
|
|
LIBS += $(LIBS_CCMALLOC) $(LIBS_EFENCE) $(LIBS_GL)
|
|
|
|
LIBS += $(LIBS_PTHREAD) $(LIBS_WX) $(LIBS_FREETYPE)
|
|
|
|
LIBS += $(LIBS_FONTCONFIG) $(LIBS_FFTW3)
|
|
|
|
LIBS += $(LIBS_UCHARDET)
|
|
|
|
|
|
|
|
LDFLAGS += $(LDFLAGS_CCMALLOC)
|
2010-12-05 20:12:42 +01:00
|
|
|
|
|
|
|
ifdef BUILD_DARWIN
|
2011-12-22 22:24:40 +01:00
|
|
|
LIBS += -lz
|
2010-12-05 20:12:42 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
###############
|
|
|
|
# AUDIO PLAYERS
|
|
|
|
###############
|
|
|
|
ifeq (yes, $(HAVE_ALSA))
|
|
|
|
audio_player_alsa.o: CXXFLAGS += $(CFLAGS_ALSA)
|
2011-12-22 22:24:40 +01:00
|
|
|
LIBS += $(LIBS_ALSA)
|
2012-01-14 19:46:43 +01:00
|
|
|
SRC += audio_player_alsa.cpp
|
|
|
|
else
|
|
|
|
EXTRA_DIST += audio_player_alsa.cpp
|
2010-12-05 20:12:42 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq (yes, $(HAVE_PORTAUDIO))
|
|
|
|
audio_player_portaudio.o: CXXFLAGS += $(CFLAGS_PORTAUDIO)
|
2011-12-22 22:24:40 +01:00
|
|
|
LIBS += $(LIBS_PORTAUDIO)
|
2012-01-14 19:46:43 +01:00
|
|
|
SRC += audio_player_portaudio.cpp
|
|
|
|
else
|
|
|
|
EXTRA_DIST += audio_player_portaudio.cpp
|
2010-12-05 20:12:42 +01:00
|
|
|
endif
|
|
|
|
|
2011-12-22 22:25:49 +01:00
|
|
|
ifeq (yes, $(HAVE_LIBPULSE))
|
2010-12-05 20:12:42 +01:00
|
|
|
audio_player_pulse.o: CXXFLAGS += $(CFLAGS_LIBPULSE)
|
2011-12-22 22:24:40 +01:00
|
|
|
LIBS += $(LIBS_LIBPULSE)
|
2012-01-14 19:46:43 +01:00
|
|
|
SRC += audio_player_pulse.cpp
|
|
|
|
else
|
|
|
|
EXTRA_DIST += audio_player_pulse.cpp
|
2010-12-05 20:12:42 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq (yes, $(HAVE_OPENAL))
|
|
|
|
audio_player_openal.o: CXXFLAGS += $(CFLAGS_OPENAL)
|
2011-12-22 22:24:40 +01:00
|
|
|
LIBS += $(LIBS_OPENAL)
|
2012-01-14 19:46:43 +01:00
|
|
|
SRC += audio_player_openal.cpp
|
|
|
|
else
|
|
|
|
EXTRA_DIST += audio_player_openal.cpp
|
2010-12-05 20:12:42 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq (yes, $(HAVE_OSS))
|
2011-12-22 22:24:51 +01:00
|
|
|
audio_player_oss.o: CXXFLAGS += $(CFLAGS_OSS)
|
2012-01-14 19:46:43 +01:00
|
|
|
SRC += audio_player_oss.cpp
|
|
|
|
else
|
|
|
|
EXTRA_DIST += audio_player_oss.cpp
|
2010-12-05 20:12:42 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
#######################
|
|
|
|
# AUDIO / VIDEO SUPPORT
|
|
|
|
#######################
|
2011-12-22 22:25:49 +01:00
|
|
|
ifeq (yes, $(HAVE_FFMS2))
|
2010-12-05 20:12:42 +01:00
|
|
|
audio_provider_ffmpegsource.o video_provider_ffmpegsource.o ffmpegsource_common.o: \
|
2011-12-22 22:25:49 +01:00
|
|
|
CXXFLAGS += $(CFLAGS_FFMS2)
|
|
|
|
LIBS += $(LIBS_FFMS2)
|
2012-01-14 19:46:43 +01:00
|
|
|
SRC += audio_provider_ffmpegsource.cpp video_provider_ffmpegsource.cpp ffmpegsource_common.cpp
|
|
|
|
else
|
|
|
|
EXTRA_DIST += audio_provider_ffmpegsource.cpp video_provider_ffmpegsource.cpp ffmpegsource_common.cpp
|
2010-12-05 20:12:42 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
###########
|
|
|
|
# SUBTITLES
|
|
|
|
###########
|
2011-07-16 05:52:30 +02:00
|
|
|
ifeq (yes, $(HAVE_LIBASS))
|
2011-07-16 05:36:28 +02:00
|
|
|
subtitles_provider_libass.o: CXXFLAGS += $(CFLAGS_LIBASS)
|
2011-12-22 22:24:40 +01:00
|
|
|
LIBS += $(LIBS_LIBASS)
|
2012-01-14 19:46:43 +01:00
|
|
|
SRC += subtitles_provider_libass.cpp
|
|
|
|
else
|
|
|
|
EXTRA_DIST += subtitles_provider_libass.cpp
|
2010-12-05 20:12:42 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
############
|
|
|
|
# AUTOMATION
|
|
|
|
############
|
|
|
|
ifeq (yes, $(HAVE_AUTO4_LUA))
|
2011-09-28 21:45:25 +02:00
|
|
|
auto4_lua.o auto4_lua_assfile.o auto4_lua_dialog.o auto4_lua_progresssink.o auto4_lua_scriptreader.o: CXXFLAGS += $(CFLAGS_LUA)
|
2011-12-22 22:26:39 +01:00
|
|
|
LIBS += $(LIBS_LUA)
|
2012-01-14 19:46:43 +01:00
|
|
|
SRC += auto4_lua.cpp auto4_lua_assfile.cpp auto4_lua_dialog.cpp auto4_lua_progresssink.cpp auto4_lua_scriptreader.cpp
|
|
|
|
else
|
|
|
|
EXTRA_DIST += auto4_lua.cpp auto4_lua_assfile.cpp auto4_lua_dialog.cpp auto4_lua_progresssink.cpp auto4_lua_scriptreader.cpp
|
2010-12-05 20:12:42 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
##############
|
|
|
|
# MISCELLANOUS
|
|
|
|
##############
|
|
|
|
ifeq (yes, $(HAVE_HUNSPELL))
|
|
|
|
spellchecker_hunspell.o: CXXFLAGS += $(CFLAGS_HUNSPELL)
|
2011-12-22 22:24:40 +01:00
|
|
|
LIBS += $(LIBS_HUNSPELL)
|
2012-01-14 19:46:43 +01:00
|
|
|
SRC += spellchecker_hunspell.cpp
|
|
|
|
else
|
|
|
|
EXTRA_DIST += spellchecker_hunspell.cpp
|
2010-12-05 20:12:42 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
#####################
|
|
|
|
# SOURCE-LEVEL CFLAGS
|
|
|
|
#####################
|
2011-11-09 04:47:26 +01:00
|
|
|
audio_player.o: CXXFLAGS += $(CFLAGS_ALSA) $(CFLAGS_PORTAUDIO) $(CFLAGS_LIBPULSE) $(CFLAGS_OPENAL)
|
2011-12-22 22:25:49 +01:00
|
|
|
audio_provider.o: CXXFLAGS += $(CFLAGS_FFMS2)
|
2011-11-09 04:47:26 +01:00
|
|
|
auto4_base.o: CXXFLAGS += $(CFLAGS_FREETYPE)
|
|
|
|
charset_detect.o: CXXFLAGS += -D_X86_
|
2012-01-12 23:32:09 +01:00
|
|
|
font_file_lister_fontconfig.o: CXXFLAGS += $(CFLAGS_FONTCONFIG)
|
2011-11-09 04:47:26 +01:00
|
|
|
text_file_reader.o: CXXFLAGS += -D_X86_
|
2011-12-22 22:25:49 +01:00
|
|
|
video_provider_manager.o: CXXFLAGS += $(CFLAGS_FFMS2)
|
2010-12-05 20:12:42 +01:00
|
|
|
|
|
|
|
SRC += \
|
|
|
|
MatroskaParser.c \
|
|
|
|
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 \
|
2010-12-08 15:31:24 +01:00
|
|
|
audio_controller.cpp \
|
|
|
|
audio_colorscheme.cpp \
|
2010-12-05 20:12:42 +01:00
|
|
|
audio_display.cpp \
|
|
|
|
audio_karaoke.cpp \
|
2012-02-02 00:59:12 +01:00
|
|
|
audio_marker.cpp \
|
2010-12-05 20:12:42 +01:00
|
|
|
audio_player.cpp \
|
|
|
|
audio_provider.cpp \
|
|
|
|
audio_provider_convert.cpp \
|
|
|
|
audio_provider_hd.cpp \
|
|
|
|
audio_provider_pcm.cpp \
|
|
|
|
audio_provider_ram.cpp \
|
|
|
|
audio_renderer.cpp \
|
|
|
|
audio_renderer_spectrum.cpp \
|
2010-12-08 15:31:24 +01:00
|
|
|
audio_renderer_waveform.cpp \
|
|
|
|
audio_timing_dialogue.cpp \
|
2011-09-28 21:44:07 +02:00
|
|
|
audio_timing_karaoke.cpp \
|
2010-12-05 20:12:42 +01:00
|
|
|
auto4_base.cpp \
|
|
|
|
avisynth_wrap.cpp \
|
|
|
|
base_grid.cpp \
|
|
|
|
charset_conv.cpp \
|
|
|
|
charset_detect.cpp \
|
|
|
|
colorspace.cpp \
|
|
|
|
colour_button.cpp \
|
|
|
|
compat.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_kara_timing_copy.cpp \
|
|
|
|
dialog_log.cpp \
|
|
|
|
dialog_paste_over.cpp \
|
|
|
|
dialog_progress.cpp \
|
|
|
|
dialog_properties.cpp \
|
|
|
|
dialog_resample.cpp \
|
|
|
|
dialog_search_replace.cpp \
|
|
|
|
dialog_selected_choices.cpp \
|
|
|
|
dialog_selection.cpp \
|
|
|
|
dialog_shift_times.cpp \
|
|
|
|
dialog_spellchecker.cpp \
|
|
|
|
dialog_style_editor.cpp \
|
|
|
|
dialog_style_manager.cpp \
|
|
|
|
dialog_styling_assistant.cpp \
|
|
|
|
dialog_text_import.cpp \
|
|
|
|
dialog_timing_processor.cpp \
|
|
|
|
dialog_translation.cpp \
|
|
|
|
dialog_version_check.cpp \
|
|
|
|
dialog_video_details.cpp \
|
|
|
|
audio_provider_dummy.cpp \
|
|
|
|
export_fixstyle.cpp \
|
|
|
|
export_framerate.cpp \
|
|
|
|
fft.cpp \
|
|
|
|
font_file_lister.cpp \
|
|
|
|
font_file_lister_fontconfig.cpp \
|
|
|
|
frame_main.cpp \
|
|
|
|
gl_text.cpp \
|
|
|
|
gl_wrap.cpp \
|
|
|
|
help_button.cpp \
|
Merge the dynamic menu, hotkey and toolbar branch to trunk. This doesn't include Windows support as vs2008 was being a major pain. This involves revisions r4921:4950, r4961:5002, r5005:5006, r5008:5056, r5062:5065, r5072, r5081:5082, r5087, r5096:5110, r5124:5125. Updates #1258.
Originally committed to SVN as r5126.
2011-01-05 14:00:46 +01:00
|
|
|
hotkey.cpp \
|
2011-10-28 22:40:43 +02:00
|
|
|
hotkey_data_view_model.cpp \
|
2010-12-05 20:12:42 +01:00
|
|
|
kana_table.cpp \
|
|
|
|
main.cpp \
|
Merge the dynamic menu, hotkey and toolbar branch to trunk. This doesn't include Windows support as vs2008 was being a major pain. This involves revisions r4921:4950, r4961:5002, r5005:5006, r5008:5056, r5062:5065, r5072, r5081:5082, r5087, r5096:5110, r5124:5125. Updates #1258.
Originally committed to SVN as r5126.
2011-01-05 14:00:46 +01:00
|
|
|
menu.cpp \
|
2010-12-05 20:12:42 +01:00
|
|
|
md5.c \
|
|
|
|
mkv_wrap.cpp \
|
2011-10-19 06:19:01 +02:00
|
|
|
pen.cpp \
|
2011-07-27 07:36:02 +02:00
|
|
|
persist_location.cpp \
|
2010-12-05 20:12:42 +01:00
|
|
|
plugin_manager.cpp \
|
|
|
|
preferences.cpp \
|
|
|
|
preferences_base.cpp \
|
|
|
|
scintilla_text_ctrl.cpp \
|
|
|
|
spellchecker.cpp \
|
|
|
|
spline.cpp \
|
|
|
|
spline_curve.cpp \
|
|
|
|
standard_paths.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_encore.cpp \
|
|
|
|
subtitle_format_microdvd.cpp \
|
|
|
|
subtitle_format_mkv.cpp \
|
|
|
|
subtitle_format_srt.cpp \
|
|
|
|
subtitle_format_transtation.cpp \
|
|
|
|
subtitle_format_ttxt.cpp \
|
|
|
|
subtitle_format_txt.cpp \
|
|
|
|
subtitles_provider.cpp \
|
|
|
|
text_file_reader.cpp \
|
|
|
|
text_file_writer.cpp \
|
|
|
|
thesaurus.cpp \
|
|
|
|
timeedit_ctrl.cpp \
|
|
|
|
threaded_frame_source.cpp \
|
|
|
|
toggle_bitmap.cpp \
|
Merge the dynamic menu, hotkey and toolbar branch to trunk. This doesn't include Windows support as vs2008 was being a major pain. This involves revisions r4921:4950, r4961:5002, r5005:5006, r5008:5056, r5062:5065, r5072, r5081:5082, r5087, r5096:5110, r5124:5125. Updates #1258.
Originally committed to SVN as r5126.
2011-01-05 14:00:46 +01:00
|
|
|
toolbar.cpp \
|
2010-12-05 20:12:42 +01:00
|
|
|
tooltip_manager.cpp \
|
|
|
|
utils.cpp \
|
|
|
|
validators.cpp \
|
|
|
|
variable_data.cpp \
|
|
|
|
vector2d.cpp \
|
|
|
|
version.cpp \
|
|
|
|
video_box.cpp \
|
|
|
|
video_context.cpp \
|
|
|
|
video_display.cpp \
|
|
|
|
video_frame.cpp \
|
|
|
|
video_out_gl.cpp \
|
|
|
|
video_provider_cache.cpp \
|
|
|
|
video_provider_dummy.cpp \
|
|
|
|
video_provider_manager.cpp \
|
|
|
|
video_provider_yuv4mpeg.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 \
|
|
|
|
visual_tool_vector_clip.cpp
|
|
|
|
|
|
|
|
|
|
|
|
HEADER += \
|
|
|
|
*.h \
|
2012-01-14 19:46:43 +01:00
|
|
|
command/*.h \
|
|
|
|
config/*.h \
|
2010-12-05 20:12:42 +01:00
|
|
|
include/aegisub/*.h \
|
2012-01-14 19:46:43 +01:00
|
|
|
gl/*.h
|
2010-12-05 20:12:42 +01:00
|
|
|
|
2012-01-14 19:46:43 +01:00
|
|
|
EXTRA_DIST += \
|
|
|
|
bitmaps/button/*.png \
|
2010-12-05 20:12:42 +01:00
|
|
|
bitmaps/misc/*.png \
|
|
|
|
bitmaps/windows/eyedropper.cur \
|
2012-01-14 19:46:43 +01:00
|
|
|
bitmaps/windows/icon.ico \
|
|
|
|
bitmaps/*.respack
|
|
|
|
|
|
|
|
EXTRA_DIST += \
|
|
|
|
command/Makefile.inc \
|
|
|
|
libresrc/Makefile.inc
|
2010-12-05 20:12:42 +01:00
|
|
|
|
2011-12-22 22:20:34 +01:00
|
|
|
include command/Makefile.inc
|
|
|
|
include libresrc/Makefile.inc
|
|
|
|
|
2010-12-05 20:12:42 +01:00
|
|
|
include ../Makefile.target
|
2011-01-10 22:27:39 +01:00
|
|
|
-include *.d
|
2012-01-14 19:46:43 +01:00
|
|
|
-include command/*.d
|
|
|
|
-include libresrc/*.d
|