2017-11-15 17:25:11 +01:00
|
|
|
libaegisub_src = [
|
|
|
|
'ass/dialogue_parser.cpp',
|
|
|
|
'ass/time.cpp',
|
|
|
|
'ass/uuencode.cpp',
|
|
|
|
|
|
|
|
'audio/provider_convert.cpp',
|
|
|
|
'audio/provider.cpp',
|
|
|
|
'audio/provider_dummy.cpp',
|
|
|
|
'audio/provider_hd.cpp',
|
|
|
|
'audio/provider_lock.cpp',
|
|
|
|
'audio/provider_pcm.cpp',
|
|
|
|
'audio/provider_ram.cpp',
|
|
|
|
|
|
|
|
'common/calltip_provider.cpp',
|
|
|
|
'common/character_count.cpp',
|
|
|
|
'common/charset_6937.cpp',
|
|
|
|
'common/charset_conv.cpp',
|
|
|
|
'common/charset.cpp',
|
|
|
|
'common/color.cpp',
|
|
|
|
'common/file_mapping.cpp',
|
|
|
|
'common/format.cpp',
|
|
|
|
'common/fs.cpp',
|
|
|
|
'common/hotkey.cpp',
|
|
|
|
'common/io.cpp',
|
|
|
|
'common/json.cpp',
|
|
|
|
'common/kana_table.cpp',
|
|
|
|
'common/karaoke_matcher.cpp',
|
|
|
|
'common/keyframe.cpp',
|
|
|
|
'common/line_iterator.cpp',
|
|
|
|
'common/log.cpp',
|
|
|
|
'common/mru.cpp',
|
|
|
|
'common/option.cpp',
|
|
|
|
'common/option_value.cpp',
|
|
|
|
'common/parser.cpp',
|
|
|
|
'common/path.cpp',
|
|
|
|
'common/thesaurus.cpp',
|
|
|
|
'common/util.cpp',
|
|
|
|
'common/vfr.cpp',
|
|
|
|
'common/ycbcr_conv.cpp',
|
|
|
|
'common/cajun/elements.cpp',
|
|
|
|
'common/cajun/reader.cpp',
|
|
|
|
'common/cajun/writer.cpp',
|
|
|
|
|
|
|
|
'lua/modules.cpp',
|
|
|
|
'lua/script_reader.cpp',
|
|
|
|
'lua/utils.cpp',
|
|
|
|
'lua/modules/lfs.cpp',
|
|
|
|
'lua/modules/re.cpp',
|
|
|
|
'lua/modules/unicode.cpp',
|
|
|
|
'lua/modules/lpeg.c',
|
|
|
|
]
|
|
|
|
|
|
|
|
if host_machine.system() == 'darwin'
|
|
|
|
libaegisub_src += [
|
|
|
|
'osx/dispatch.mm',
|
|
|
|
'osx/spellchecker.mm',
|
|
|
|
'osx/util.mm',
|
|
|
|
]
|
|
|
|
else
|
|
|
|
libaegisub_src += 'common/dispatch.cpp'
|
2019-10-06 02:44:54 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
if host_machine.system() == 'windows'
|
|
|
|
libaegisub_src += [
|
|
|
|
'windows/access.cpp',
|
|
|
|
'windows/charset_conv_win.cpp',
|
|
|
|
'windows/fs.cpp',
|
|
|
|
'windows/log_win.cpp',
|
|
|
|
'windows/path_win.cpp',
|
|
|
|
'windows/util_win.cpp',
|
|
|
|
]
|
|
|
|
else
|
|
|
|
libaegisub_src += [
|
|
|
|
'unix/access.cpp',
|
|
|
|
'unix/fs.cpp',
|
|
|
|
'unix/log.cpp',
|
|
|
|
'unix/path.cpp',
|
|
|
|
'unix/util.cpp',
|
|
|
|
]
|
2017-11-15 17:25:11 +01:00
|
|
|
endif
|
|
|
|
|
2019-07-21 20:40:21 +02:00
|
|
|
libaegisub_cpp_pch = ['include/lagi_pre.h']
|
2019-10-27 02:18:06 +01:00
|
|
|
libaegisub_c_pch = ['include/lagi_pre_c.h']
|
2019-07-21 20:40:21 +02:00
|
|
|
|
2017-11-15 17:25:11 +01:00
|
|
|
libaegisub_inc = include_directories('include')
|
|
|
|
|
|
|
|
libaegisub = static_library('aegisub', libaegisub_src, acconf,
|
2019-07-21 20:40:21 +02:00
|
|
|
include_directories: [libaegisub_inc, deps_inc],
|
|
|
|
cpp_pch: libaegisub_cpp_pch,
|
2019-10-27 02:18:06 +01:00
|
|
|
c_pch: libaegisub_c_pch,
|
2019-01-30 22:58:31 +01:00
|
|
|
dependencies: deps)
|