2010-12-05 20:12:42 +01:00
|
|
|
include ../Makefile.inc
|
|
|
|
|
2012-08-19 23:33:50 +02:00
|
|
|
PROGRAM = $(AEGISUB_COMMAND)
|
2010-12-05 20:12:42 +01:00
|
|
|
PROGRAM_INSTALL = yes
|
|
|
|
|
|
|
|
PRECOMPILED_HEADER_NAME=agi_pre.h
|
|
|
|
|
2013-06-12 04:52:44 +02:00
|
|
|
AEGISUB_CFLAGS = -I. -I.. -Iinclude -I../libaegisub/include -I../build -DAEGISUB $(CFLAGS_PTHREAD) $(CFLAGS_FFTW3) $(CFLAGS_ICU)
|
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
|
|
|
|
2013-06-12 04:52:44 +02:00
|
|
|
LIBS := -L../libaegisub -laegisub $(LIBS)
|
2013-04-11 04:59:02 +02:00
|
|
|
LIBS += $(LIBS_GL) $(LIBS_PTHREAD) $(LIBS_WX) $(LIBS_FREETYPE)
|
|
|
|
LIBS += $(LIBS_FONTCONFIG) $(LIBS_FFTW3) $(LIBS_UCHARDET) $(LIBS_BOOST)
|
|
|
|
LIBS += $(LIBS_ICU) $(LIBS_LUA)
|
2011-12-22 22:24:40 +01:00
|
|
|
|
2012-05-26 22:16:08 +02:00
|
|
|
ifeq (yes, $(BUILD_DARWIN))
|
2013-12-27 04:23:59 +01:00
|
|
|
SRC += osx_utils.mm retina_helper.mm
|
2010-12-05 20:12:42 +01:00
|
|
|
endif
|
|
|
|
|
2014-03-11 17:47:53 +01:00
|
|
|
lpeg.o: CXXFLAGS += -Wno-unused-function
|
2014-01-03 00:08:57 +01:00
|
|
|
MatroskaParser.o: CFLAGS += -Wno-sometimes-uninitialized
|
|
|
|
|
2010-12-05 20:12:42 +01:00
|
|
|
###############
|
|
|
|
# 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))
|
2012-05-16 06:56:59 +02:00
|
|
|
audio_provider_ffmpegsource.o video_provider_ffmpegsource.o ffmpegsource_common.o preferences.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
|
|
|
|
###########
|
2013-01-24 17:16:23 +01:00
|
|
|
subtitles_provider_libass.o: CXXFLAGS += $(CFLAGS_LIBASS) -Wno-c++11-narrowing
|
2013-01-10 04:24:47 +01:00
|
|
|
subtitles_provider.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
|
2010-12-05 20:12:42 +01:00
|
|
|
|
|
|
|
##############
|
|
|
|
# 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)
|
2014-03-11 17:47:53 +01:00
|
|
|
auto4_lua.o auto4_lua_assfile.o auto4_lua_dialog.o auto4_lua_progresssink.o auto4_lua_regex.o auto4_lua_scriptreader.o auto4_regex.o lpeg.o: CXXFLAGS += $(CFLAGS_LUA)
|
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 \
|
2012-10-12 04:12:42 +02:00
|
|
|
ass_parser.cpp \
|
2010-12-05 20:12:42 +01:00
|
|
|
ass_style.cpp \
|
|
|
|
ass_style_storage.cpp \
|
|
|
|
ass_time.cpp \
|
|
|
|
audio_box.cpp \
|
2010-12-08 15:31:24 +01:00
|
|
|
audio_colorscheme.cpp \
|
2013-04-11 04:59:02 +02:00
|
|
|
audio_controller.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 \
|
2013-04-11 04:59:02 +02:00
|
|
|
audio_provider_dummy.cpp \
|
2010-12-05 20:12:42 +01:00
|
|
|
audio_provider_hd.cpp \
|
2012-08-18 05:13:39 +02:00
|
|
|
audio_provider_lock.cpp \
|
2010-12-05 20:12:42 +01:00
|
|
|
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 \
|
2013-04-11 04:59:02 +02:00
|
|
|
auto4_lua.cpp \
|
|
|
|
auto4_lua_assfile.cpp \
|
|
|
|
auto4_lua_dialog.cpp \
|
|
|
|
auto4_lua_progresssink.cpp \
|
|
|
|
auto4_lua_scriptreader.cpp \
|
|
|
|
auto4_regex.cpp \
|
2010-12-05 20:12:42 +01:00
|
|
|
avisynth_wrap.cpp \
|
|
|
|
base_grid.cpp \
|
|
|
|
charset_detect.cpp \
|
|
|
|
colorspace.cpp \
|
|
|
|
colour_button.cpp \
|
|
|
|
compat.cpp \
|
2014-03-25 22:49:26 +01:00
|
|
|
context.cpp \
|
2014-03-19 17:15:25 +01:00
|
|
|
crash_writer.cpp \
|
2010-12-05 20:12:42 +01:00
|
|
|
dialog_about.cpp \
|
|
|
|
dialog_attachments.cpp \
|
|
|
|
dialog_automation.cpp \
|
2012-11-08 03:53:44 +01:00
|
|
|
dialog_autosave.cpp \
|
2010-12-05 20:12:42 +01:00
|
|
|
dialog_colorpicker.cpp \
|
|
|
|
dialog_detached_video.cpp \
|
|
|
|
dialog_dummy_video.cpp \
|
|
|
|
dialog_export.cpp \
|
2012-03-29 21:05:26 +02:00
|
|
|
dialog_export_ebu3264.cpp \
|
2010-12-05 20:12:42 +01:00
|
|
|
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 \
|
|
|
|
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 \
|
2012-10-12 01:46:53 +02:00
|
|
|
initial_line_state.cpp \
|
2014-03-11 17:47:53 +01:00
|
|
|
lpeg.cpp \
|
2010-12-05 20:12:42 +01:00
|
|
|
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
|
|
|
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
|
|
|
preferences.cpp \
|
|
|
|
preferences_base.cpp \
|
2013-07-05 01:28:43 +02:00
|
|
|
resolution_resampler.cpp \
|
2010-12-05 20:12:42 +01:00
|
|
|
scintilla_text_ctrl.cpp \
|
2012-10-08 16:32:51 +02:00
|
|
|
scintilla_text_selection_controller.cpp \
|
2013-04-11 04:59:02 +02:00
|
|
|
search_replace_engine.cpp \
|
2014-03-25 01:15:14 +01:00
|
|
|
selection_controller.cpp \
|
2010-12-05 20:12:42 +01:00
|
|
|
spellchecker.cpp \
|
|
|
|
spline.cpp \
|
|
|
|
spline_curve.cpp \
|
|
|
|
string_codec.cpp \
|
2013-01-26 02:57:46 +01:00
|
|
|
subs_controller.cpp \
|
2010-12-05 20:12:42 +01:00
|
|
|
subs_edit_box.cpp \
|
|
|
|
subs_edit_ctrl.cpp \
|
|
|
|
subs_preview.cpp \
|
|
|
|
subtitle_format.cpp \
|
|
|
|
subtitle_format_ass.cpp \
|
2012-03-29 21:05:26 +02:00
|
|
|
subtitle_format_ebu3264.cpp \
|
2010-12-05 20:12:42 +01:00
|
|
|
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 \
|
|
|
|
threaded_frame_source.cpp \
|
2013-04-11 04:59:02 +02:00
|
|
|
timeedit_ctrl.cpp \
|
2010-12-05 20:12:42 +01:00
|
|
|
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 \
|
|
|
|
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
|