|
@@ -10,6 +10,9 @@ end
|
|
|
-- 基础库
|
|
-- 基础库
|
|
|
target("av_base")
|
|
target("av_base")
|
|
|
set_kind("static")
|
|
set_kind("static")
|
|
|
|
|
+ if is_plat("windows") then
|
|
|
|
|
+ add_defines("UNICODE", "_UNICODE")
|
|
|
|
|
+ end
|
|
|
add_files("code/base/*.cpp")
|
|
add_files("code/base/*.cpp")
|
|
|
add_headerfiles("code/base/*.h")
|
|
add_headerfiles("code/base/*.h")
|
|
|
add_av_common_config()
|
|
add_av_common_config()
|
|
@@ -27,6 +30,9 @@ target("av_base")
|
|
|
-- 编解码库
|
|
-- 编解码库
|
|
|
target("av_codec")
|
|
target("av_codec")
|
|
|
set_kind("static")
|
|
set_kind("static")
|
|
|
|
|
+ if is_plat("windows") then
|
|
|
|
|
+ add_defines("UNICODE", "_UNICODE")
|
|
|
|
|
+ end
|
|
|
add_files("code/codec/*.cpp")
|
|
add_files("code/codec/*.cpp")
|
|
|
add_headerfiles("code/codec/*.h")
|
|
add_headerfiles("code/codec/*.h")
|
|
|
add_av_common_config()
|
|
add_av_common_config()
|
|
@@ -38,6 +44,9 @@ target("av_codec")
|
|
|
-- 捕获库
|
|
-- 捕获库
|
|
|
target("av_capture")
|
|
target("av_capture")
|
|
|
set_kind("static")
|
|
set_kind("static")
|
|
|
|
|
+ if is_plat("windows") then
|
|
|
|
|
+ add_defines("UNICODE", "_UNICODE")
|
|
|
|
|
+ end
|
|
|
add_files("code/capture/*.cpp")
|
|
add_files("code/capture/*.cpp")
|
|
|
add_headerfiles("code/capture/*.h")
|
|
add_headerfiles("code/capture/*.h")
|
|
|
add_av_common_config()
|
|
add_av_common_config()
|
|
@@ -49,6 +58,9 @@ target("av_capture")
|
|
|
-- 混流库
|
|
-- 混流库
|
|
|
target("av_muxer")
|
|
target("av_muxer")
|
|
|
set_kind("static")
|
|
set_kind("static")
|
|
|
|
|
+ if is_plat("windows") then
|
|
|
|
|
+ add_defines("UNICODE", "_UNICODE")
|
|
|
|
|
+ end
|
|
|
add_files("code/muxer/*.cpp")
|
|
add_files("code/muxer/*.cpp")
|
|
|
add_headerfiles("code/muxer/*.h")
|
|
add_headerfiles("code/muxer/*.h")
|
|
|
add_av_common_config()
|
|
add_av_common_config()
|
|
@@ -60,6 +72,9 @@ target("av_muxer")
|
|
|
-- 工具库
|
|
-- 工具库
|
|
|
target("av_utils")
|
|
target("av_utils")
|
|
|
set_kind("static")
|
|
set_kind("static")
|
|
|
|
|
+ if is_plat("windows") then
|
|
|
|
|
+ add_defines("UNICODE", "_UNICODE")
|
|
|
|
|
+ end
|
|
|
add_files("code/utils/*.cpp")
|
|
add_files("code/utils/*.cpp")
|
|
|
add_headerfiles("code/utils/*.h")
|
|
add_headerfiles("code/utils/*.h")
|
|
|
add_av_common_config()
|
|
add_av_common_config()
|
|
@@ -71,6 +86,9 @@ target("av_utils")
|
|
|
-- 完整的AV框架库 - 主项目依赖的统一接口
|
|
-- 完整的AV框架库 - 主项目依赖的统一接口
|
|
|
target("av_framework")
|
|
target("av_framework")
|
|
|
set_kind("static")
|
|
set_kind("static")
|
|
|
|
|
+ if is_plat("windows") then
|
|
|
|
|
+ add_defines("UNICODE", "_UNICODE")
|
|
|
|
|
+ end
|
|
|
add_deps("av_base", "av_codec", "av_capture", "av_muxer", "av_utils")
|
|
add_deps("av_base", "av_codec", "av_capture", "av_muxer", "av_utils")
|
|
|
add_av_common_config()
|
|
add_av_common_config()
|
|
|
|
|
|
|
@@ -80,6 +98,9 @@ target("av_framework")
|
|
|
-- 播放器库
|
|
-- 播放器库
|
|
|
target("av_player")
|
|
target("av_player")
|
|
|
set_kind("static")
|
|
set_kind("static")
|
|
|
|
|
+ if is_plat("windows") then
|
|
|
|
|
+ add_defines("UNICODE", "_UNICODE")
|
|
|
|
|
+ end
|
|
|
add_files("code/player/*.cpp")
|
|
add_files("code/player/*.cpp")
|
|
|
add_headerfiles("code/player/*.h")
|
|
add_headerfiles("code/player/*.h")
|
|
|
add_av_common_config()
|
|
add_av_common_config()
|
|
@@ -94,6 +115,9 @@ target("av_player")
|
|
|
-- 录制器库
|
|
-- 录制器库
|
|
|
target("av_recorder")
|
|
target("av_recorder")
|
|
|
set_kind("static")
|
|
set_kind("static")
|
|
|
|
|
+ if is_plat("windows") then
|
|
|
|
|
+ add_defines("UNICODE", "_UNICODE")
|
|
|
|
|
+ end
|
|
|
add_files("code/recorder/*.cpp")
|
|
add_files("code/recorder/*.cpp")
|
|
|
add_headerfiles("code/recorder/*.h")
|
|
add_headerfiles("code/recorder/*.h")
|
|
|
add_av_common_config()
|
|
add_av_common_config()
|
|
@@ -108,6 +132,9 @@ target("av_recorder")
|
|
|
-- 基础测试程序
|
|
-- 基础测试程序
|
|
|
target("test_basic")
|
|
target("test_basic")
|
|
|
set_kind("binary")
|
|
set_kind("binary")
|
|
|
|
|
+ if is_plat("windows") then
|
|
|
|
|
+ add_defines("UNICODE", "_UNICODE")
|
|
|
|
|
+ end
|
|
|
add_files("test_basic.cpp")
|
|
add_files("test_basic.cpp")
|
|
|
add_deps("av_base")
|
|
add_deps("av_base")
|
|
|
add_common_config()
|
|
add_common_config()
|
|
@@ -118,6 +145,9 @@ target("test_basic")
|
|
|
-- 编解码测试程序
|
|
-- 编解码测试程序
|
|
|
target("test_codec")
|
|
target("test_codec")
|
|
|
set_kind("binary")
|
|
set_kind("binary")
|
|
|
|
|
+ if is_plat("windows") then
|
|
|
|
|
+ add_defines("UNICODE", "_UNICODE")
|
|
|
|
|
+ end
|
|
|
add_files("test_codec.cpp")
|
|
add_files("test_codec.cpp")
|
|
|
add_deps("av_codec")
|
|
add_deps("av_codec")
|
|
|
add_common_config()
|
|
add_common_config()
|
|
@@ -128,6 +158,9 @@ target("test_codec")
|
|
|
-- 解码器测试程序
|
|
-- 解码器测试程序
|
|
|
target("test_decoder")
|
|
target("test_decoder")
|
|
|
set_kind("binary")
|
|
set_kind("binary")
|
|
|
|
|
+ if is_plat("windows") then
|
|
|
|
|
+ add_defines("UNICODE", "_UNICODE")
|
|
|
|
|
+ end
|
|
|
add_files("test_decoder.cpp")
|
|
add_files("test_decoder.cpp")
|
|
|
add_deps("av_codec")
|
|
add_deps("av_codec")
|
|
|
add_common_config()
|
|
add_common_config()
|
|
@@ -139,6 +172,9 @@ target("test_decoder")
|
|
|
-- 音频编码器测试程序
|
|
-- 音频编码器测试程序
|
|
|
target("test_audio_encoder")
|
|
target("test_audio_encoder")
|
|
|
set_kind("binary")
|
|
set_kind("binary")
|
|
|
|
|
+ if is_plat("windows") then
|
|
|
|
|
+ add_defines("UNICODE", "_UNICODE")
|
|
|
|
|
+ end
|
|
|
add_files("test_audio_encoder.cpp")
|
|
add_files("test_audio_encoder.cpp")
|
|
|
add_deps("av_codec")
|
|
add_deps("av_codec")
|
|
|
add_common_config()
|
|
add_common_config()
|
|
@@ -150,6 +186,9 @@ target("test_audio_encoder")
|
|
|
-- 窗口采集测试程序
|
|
-- 窗口采集测试程序
|
|
|
target("test_window_capture")
|
|
target("test_window_capture")
|
|
|
set_kind("binary")
|
|
set_kind("binary")
|
|
|
|
|
+ if is_plat("windows") then
|
|
|
|
|
+ add_defines("UNICODE", "_UNICODE")
|
|
|
|
|
+ end
|
|
|
add_files("test_window_capture.cpp")
|
|
add_files("test_window_capture.cpp")
|
|
|
add_deps("av_capture")
|
|
add_deps("av_capture")
|
|
|
add_common_config()
|
|
add_common_config()
|
|
@@ -160,6 +199,9 @@ target("test_window_capture")
|
|
|
-- 工具类测试程序
|
|
-- 工具类测试程序
|
|
|
target("test_utils")
|
|
target("test_utils")
|
|
|
set_kind("binary")
|
|
set_kind("binary")
|
|
|
|
|
+ if is_plat("windows") then
|
|
|
|
|
+ add_defines("UNICODE", "_UNICODE")
|
|
|
|
|
+ end
|
|
|
add_files("test_utils.cpp")
|
|
add_files("test_utils.cpp")
|
|
|
add_deps("av_utils")
|
|
add_deps("av_utils")
|
|
|
add_common_config()
|
|
add_common_config()
|
|
@@ -170,6 +212,9 @@ target("test_utils")
|
|
|
-- 混流器测试程序
|
|
-- 混流器测试程序
|
|
|
target("test_muxer")
|
|
target("test_muxer")
|
|
|
set_kind("binary")
|
|
set_kind("binary")
|
|
|
|
|
+ if is_plat("windows") then
|
|
|
|
|
+ add_defines("UNICODE", "_UNICODE")
|
|
|
|
|
+ end
|
|
|
add_files("test_muxer.cpp")
|
|
add_files("test_muxer.cpp")
|
|
|
add_deps("av_muxer")
|
|
add_deps("av_muxer")
|
|
|
add_common_config()
|
|
add_common_config()
|
|
@@ -180,6 +225,9 @@ target("test_muxer")
|
|
|
-- 音频调试测试程序
|
|
-- 音频调试测试程序
|
|
|
target("test_audio_debug")
|
|
target("test_audio_debug")
|
|
|
set_kind("binary")
|
|
set_kind("binary")
|
|
|
|
|
+ if is_plat("windows") then
|
|
|
|
|
+ add_defines("UNICODE", "_UNICODE")
|
|
|
|
|
+ end
|
|
|
add_files("test_audio_debug.cpp")
|
|
add_files("test_audio_debug.cpp")
|
|
|
add_deps("av_base", "av_codec", "av_utils")
|
|
add_deps("av_base", "av_codec", "av_utils")
|
|
|
add_files("code/player/player_core_v2.cpp")
|
|
add_files("code/player/player_core_v2.cpp")
|
|
@@ -197,6 +245,9 @@ target("test_audio_debug")
|
|
|
-- 带UI的播放器测试程序
|
|
-- 带UI的播放器测试程序
|
|
|
target("test_player_with_ui")
|
|
target("test_player_with_ui")
|
|
|
add_rules("qt.widgetapp")
|
|
add_rules("qt.widgetapp")
|
|
|
|
|
+ if is_plat("windows") then
|
|
|
|
|
+ add_defines("UNICODE", "_UNICODE")
|
|
|
|
|
+ end
|
|
|
add_common_config()
|
|
add_common_config()
|
|
|
add_files("test_player_with_ui.cpp", {rules = "qt.moc"})
|
|
add_files("test_player_with_ui.cpp", {rules = "qt.moc"})
|
|
|
add_deps("av_base", "av_codec", "av_utils")
|
|
add_deps("av_base", "av_codec", "av_utils")
|
|
@@ -213,6 +264,9 @@ target("test_player_with_ui")
|
|
|
target("test_seek_pause_fixed")
|
|
target("test_seek_pause_fixed")
|
|
|
set_kind("binary")
|
|
set_kind("binary")
|
|
|
add_rules("qt.widgetapp")
|
|
add_rules("qt.widgetapp")
|
|
|
|
|
+ if is_plat("windows") then
|
|
|
|
|
+ add_defines("UNICODE", "_UNICODE")
|
|
|
|
|
+ end
|
|
|
add_files("test_seek_pause_fixed.cpp")
|
|
add_files("test_seek_pause_fixed.cpp")
|
|
|
add_deps("av_base", "av_codec", "av_utils")
|
|
add_deps("av_base", "av_codec", "av_utils")
|
|
|
add_common_config()
|
|
add_common_config()
|