2014-06-17 03:22:06 +02:00
|
|
|
include $(dir $(lastword $(MAKEFILE_LIST)))../header.mk
|
|
|
|
|
|
|
|
PROGRAM += $(d)src
|
|
|
|
|
|
|
|
src_CPPFLAGS := -I$(d) -I.. -I$(d)include -I$(TOP)libaegisub/include -I$(TOP)build \
|
2015-01-01 03:45:00 +01:00
|
|
|
$(CFLAGS_PTHREAD) $(CFLAGS_FFTW3) $(CFLAGS_ICU) $(CPPFLAGS_BOOST)
|
2014-06-30 05:03:03 +02:00
|
|
|
src_CXXFLAGS := $(CXXFLAGS_WX)
|
2014-06-17 03:22:06 +02:00
|
|
|
src_LIBS := $(LIBS_GL) $(LIBS_PTHREAD) $(LIBS_WX) $(LIBS_FREETYPE) \
|
|
|
|
$(LIBS_LIBASS) $(LIBS_FONTCONFIG) $(LIBS_FFTW3) $(LIBS_BOOST) $(LIBS_ICU)
|
|
|
|
src_PCH := $(d)agi_pre.h
|
|
|
|
src_INSTALLNAME := $(AEGISUB_COMMAND)
|
|
|
|
|
|
|
|
src_OBJ := \
|
2018-03-05 18:28:29 +01:00
|
|
|
$(patsubst %.cpp,%.o,$(sort $(wildcard $(d)command/*.cpp))) \
|
|
|
|
$(patsubst %.cpp,%.o,$(sort $(wildcard $(d)dialog_*.cpp))) \
|
|
|
|
$(patsubst %.cpp,%.o,$(sort $(wildcard $(d)subtitle_format*.cpp))) \
|
|
|
|
$(patsubst %.cpp,%.o,$(sort $(wildcard $(d)visual_tool*.cpp))) \
|
2014-06-17 03:22:06 +02:00
|
|
|
$(d)MatroskaParser.o \
|
|
|
|
$(d)aegisublocale.o \
|
|
|
|
$(d)ass_attachment.o \
|
|
|
|
$(d)ass_dialogue.o \
|
|
|
|
$(d)ass_entry.o \
|
|
|
|
$(d)ass_export_filter.o \
|
|
|
|
$(d)ass_exporter.o \
|
|
|
|
$(d)ass_file.o \
|
|
|
|
$(d)ass_karaoke.o \
|
|
|
|
$(d)ass_override.o \
|
|
|
|
$(d)ass_parser.o \
|
|
|
|
$(d)ass_style.o \
|
|
|
|
$(d)ass_style_storage.o \
|
|
|
|
$(d)async_video_provider.o \
|
|
|
|
$(d)audio_box.o \
|
|
|
|
$(d)audio_colorscheme.o \
|
|
|
|
$(d)audio_controller.o \
|
|
|
|
$(d)audio_display.o \
|
|
|
|
$(d)audio_karaoke.o \
|
|
|
|
$(d)audio_marker.o \
|
|
|
|
$(d)audio_player.o \
|
2014-07-09 16:22:49 +02:00
|
|
|
$(d)audio_provider_factory.o \
|
2014-06-17 03:22:06 +02:00
|
|
|
$(d)audio_renderer.o \
|
|
|
|
$(d)audio_renderer_spectrum.o \
|
|
|
|
$(d)audio_renderer_waveform.o \
|
|
|
|
$(d)audio_timing_dialogue.o \
|
|
|
|
$(d)audio_timing_karaoke.o \
|
|
|
|
$(d)auto4_base.o \
|
|
|
|
$(d)auto4_lua.o \
|
|
|
|
$(d)auto4_lua_assfile.o \
|
|
|
|
$(d)auto4_lua_dialog.o \
|
|
|
|
$(d)auto4_lua_progresssink.o \
|
|
|
|
$(d)avisynth_wrap.o \
|
|
|
|
$(d)base_grid.o \
|
|
|
|
$(d)charset_detect.o \
|
|
|
|
$(d)colorspace.o \
|
|
|
|
$(d)colour_button.o \
|
|
|
|
$(d)compat.o \
|
|
|
|
$(d)context.o \
|
|
|
|
$(d)crash_writer.o \
|
|
|
|
$(d)export_fixstyle.o \
|
|
|
|
$(d)export_framerate.o \
|
|
|
|
$(d)fft.o \
|
|
|
|
$(d)font_file_lister.o \
|
|
|
|
$(d)frame_main.o \
|
|
|
|
$(d)gl_text.o \
|
|
|
|
$(d)gl_wrap.o \
|
|
|
|
$(d)grid_column.o \
|
|
|
|
$(d)help_button.o \
|
|
|
|
$(d)hotkey.o \
|
|
|
|
$(d)hotkey_data_view_model.o \
|
2019-09-02 19:32:36 +02:00
|
|
|
$(d)image_position_picker.o \
|
2014-06-17 03:22:06 +02:00
|
|
|
$(d)initial_line_state.o \
|
|
|
|
$(d)main.o \
|
|
|
|
$(d)menu.o \
|
|
|
|
$(d)mkv_wrap.o \
|
|
|
|
$(d)pen.o \
|
|
|
|
$(d)persist_location.o \
|
|
|
|
$(d)preferences.o \
|
|
|
|
$(d)preferences_base.o \
|
|
|
|
$(d)project.o \
|
|
|
|
$(d)resolution_resampler.o \
|
|
|
|
$(d)search_replace_engine.o \
|
|
|
|
$(d)selection_controller.o \
|
|
|
|
$(d)spellchecker.o \
|
|
|
|
$(d)spline.o \
|
|
|
|
$(d)spline_curve.o \
|
|
|
|
$(d)string_codec.o \
|
|
|
|
$(d)subs_controller.o \
|
|
|
|
$(d)subs_edit_box.o \
|
|
|
|
$(d)subs_edit_ctrl.o \
|
|
|
|
$(d)subs_preview.o \
|
|
|
|
$(d)subtitles_provider.o \
|
|
|
|
$(d)subtitles_provider_libass.o \
|
|
|
|
$(d)text_file_reader.o \
|
|
|
|
$(d)text_file_writer.o \
|
|
|
|
$(d)text_selection_controller.o \
|
|
|
|
$(d)thesaurus.o \
|
|
|
|
$(d)timeedit_ctrl.o \
|
|
|
|
$(d)toggle_bitmap.o \
|
|
|
|
$(d)toolbar.o \
|
|
|
|
$(d)tooltip_manager.o \
|
|
|
|
$(d)utils.o \
|
|
|
|
$(d)validators.o \
|
|
|
|
$(d)vector2d.o \
|
|
|
|
$(d)version.o \
|
|
|
|
$(d)video_box.o \
|
|
|
|
$(d)video_controller.o \
|
|
|
|
$(d)video_display.o \
|
|
|
|
$(d)video_frame.o \
|
|
|
|
$(d)video_out_gl.o \
|
|
|
|
$(d)video_provider_cache.o \
|
|
|
|
$(d)video_provider_dummy.o \
|
|
|
|
$(d)video_provider_manager.o \
|
|
|
|
$(d)video_provider_yuv4mpeg.o \
|
|
|
|
$(d)video_slider.o \
|
|
|
|
$(d)visual_feature.o \
|
|
|
|
$(LIBS_LUA) \
|
|
|
|
$(TOP)lib/libaegisub.a \
|
|
|
|
$(TOP)lib/libluabins.a \
|
|
|
|
$(TOP)lib/libresrc.a \
|
2011-12-22 22:24:40 +01:00
|
|
|
|
2012-05-26 22:16:08 +02:00
|
|
|
ifeq (yes, $(BUILD_DARWIN))
|
2015-10-28 20:44:22 +01:00
|
|
|
src_OBJ += $(d)font_file_lister_coretext.o
|
2018-03-05 18:28:29 +01:00
|
|
|
src_OBJ += $(patsubst %.mm,%.o,$(sort $(wildcard $(d)osx/*.mm)))
|
2015-11-07 20:44:36 +01:00
|
|
|
$(d)font_file_lister_coretext.o_FLAGS := -fobjc-arc
|
2015-10-28 20:44:22 +01:00
|
|
|
else
|
|
|
|
src_OBJ += $(d)font_file_lister_fontconfig.o
|
2010-12-05 20:12:42 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
###############
|
|
|
|
# AUDIO PLAYERS
|
|
|
|
###############
|
2014-06-17 03:22:06 +02:00
|
|
|
$(d)audio_player_alsa.o_FLAGS := $(CFLAGS_ALSA)
|
|
|
|
$(d)audio_player_portaudio.o_FLAGS := $(CFLAGS_PORTAUDIO)
|
|
|
|
$(d)audio_player_pulse.o_FLAGS := $(CFLAGS_LIBPULSE)
|
|
|
|
$(d)audio_player_openal.o_FLAGS := $(CFLAGS_OPENAL)
|
|
|
|
$(d)audio_player_oss.o_FLAGS := $(CFLAGS_OSS)
|
|
|
|
|
2010-12-05 20:12:42 +01:00
|
|
|
ifeq (yes, $(HAVE_ALSA))
|
2014-06-17 03:22:06 +02:00
|
|
|
src_LIBS += $(LIBS_ALSA)
|
|
|
|
src_OBJ += $(d)audio_player_alsa.o
|
2010-12-05 20:12:42 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq (yes, $(HAVE_PORTAUDIO))
|
2014-06-17 03:22:06 +02:00
|
|
|
src_LIBS += $(LIBS_PORTAUDIO)
|
|
|
|
src_OBJ += $(d)audio_player_portaudio.o
|
2010-12-05 20:12:42 +01:00
|
|
|
endif
|
|
|
|
|
2011-12-22 22:25:49 +01:00
|
|
|
ifeq (yes, $(HAVE_LIBPULSE))
|
2014-06-17 03:22:06 +02:00
|
|
|
src_LIBS += $(LIBS_LIBPULSE)
|
|
|
|
src_OBJ += $(d)audio_player_pulse.o
|
2010-12-05 20:12:42 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq (yes, $(HAVE_OPENAL))
|
2014-06-17 03:22:06 +02:00
|
|
|
src_LIBS += $(LIBS_OPENAL)
|
|
|
|
src_OBJ += $(d)audio_player_openal.o
|
2010-12-05 20:12:42 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq (yes, $(HAVE_OSS))
|
2014-06-17 03:22:06 +02:00
|
|
|
src_OBJ += $(d)audio_player_oss.o
|
2010-12-05 20:12:42 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
#######################
|
|
|
|
# AUDIO / VIDEO SUPPORT
|
|
|
|
#######################
|
2011-12-22 22:25:49 +01:00
|
|
|
ifeq (yes, $(HAVE_FFMS2))
|
2014-06-17 03:22:06 +02:00
|
|
|
$(d)audio_provider_ffmpegsource.o_FLAGS := $(CFLAGS_FFMS2)
|
|
|
|
$(d)video_provider_ffmpegsource.o_FLAGS := $(CFLAGS_FFMS2)
|
|
|
|
$(d)ffmpegsource_common.o_FLAGS := $(CFLAGS_FFMS2)
|
|
|
|
$(d)preferences.o_FLAGS := $(CFLAGS_FFMS2)
|
|
|
|
src_LIBS += $(LIBS_FFMS2)
|
|
|
|
src_OBJ += \
|
|
|
|
$(d)audio_provider_ffmpegsource.o \
|
|
|
|
$(d)video_provider_ffmpegsource.o \
|
|
|
|
$(d)ffmpegsource_common.o
|
2010-12-05 20:12:42 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
##############
|
|
|
|
# MISCELLANOUS
|
|
|
|
##############
|
|
|
|
ifeq (yes, $(HAVE_HUNSPELL))
|
2014-06-17 03:22:06 +02:00
|
|
|
$(d)spellchecker_hunspell.o_FLAGS := $(CFLAGS_HUNSPELL)
|
|
|
|
src_LIBS += $(LIBS_HUNSPELL)
|
|
|
|
src_OBJ += $(d)spellchecker_hunspell.o
|
2010-12-05 20:12:42 +01:00
|
|
|
endif
|
|
|
|
|
2016-02-08 04:52:45 +01:00
|
|
|
ifeq (yes, $(HAVE_UCHARDET))
|
|
|
|
src_LIBS += $(LIBS_UCHARDET)
|
|
|
|
endif
|
|
|
|
|
2010-12-05 20:12:42 +01:00
|
|
|
#####################
|
|
|
|
# SOURCE-LEVEL CFLAGS
|
|
|
|
#####################
|
2014-06-17 03:22:06 +02:00
|
|
|
$(d)audio_player.o_FLAGS := $(CFLAGS_ALSA) $(CFLAGS_PORTAUDIO) $(CFLAGS_LIBPULSE) $(CFLAGS_OPENAL)
|
2014-07-09 16:22:49 +02:00
|
|
|
$(d)audio_provider_factory.o_FLAGS := $(CFLAGS_FFMS2)
|
2014-06-17 03:22:06 +02:00
|
|
|
$(d)auto4_base.o_FLAGS := $(CFLAGS_FREETYPE)
|
|
|
|
$(d)charset_detect.o_FLAGS := -D_X86_
|
|
|
|
$(d)font_file_lister_fontconfig.o_FLAGS := $(CFLAGS_FONTCONFIG)
|
|
|
|
$(d)subtitles_provider.o_FLAGS := $(CFLAGS_LIBASS)
|
2019-09-07 19:25:15 +02:00
|
|
|
$(d)subtitles_provider_libass.o_FLAGS := $(CFLAGS_LIBASS) -Wno-narrowing
|
2014-06-17 03:22:06 +02:00
|
|
|
$(d)text_file_reader.o_FLAGS := -D_X86_
|
|
|
|
$(d)video_provider_manager.o_FLAGS := $(CFLAGS_FFMS2)
|
2016-02-28 03:59:03 +01:00
|
|
|
$(d)auto4_lua.o_FLAGS := $(CFLAGS_LUA)
|
|
|
|
$(d)auto4_lua_assfile.o_FLAGS := $(CFLAGS_LUA)
|
|
|
|
$(d)auto4_lua_dialog.o_FLAGS := $(CFLAGS_LUA)
|
|
|
|
$(d)auto4_lua_progresssink.o_FLAGS := $(CFLAGS_LUA)
|
2014-06-17 03:22:06 +02:00
|
|
|
|
2014-06-18 05:47:29 +02:00
|
|
|
$(src_OBJ): $(d)libresrc/bitmap.h $(d)libresrc/default_config.h
|
|
|
|
|
2014-06-17 03:22:06 +02:00
|
|
|
include $(d)libresrc/Makefile
|