[fix] use lowercase for nvcodec folder name

This commit is contained in:
dijunkun
2025-05-06 18:32:52 +08:00
parent 1a34c6bc1d
commit 34fb3fda92
20 changed files with 157 additions and 253 deletions

View File

@@ -25,8 +25,6 @@ if is_os("windows") then
add_defines("_WEBSOCKETPP_CPP11_INTERNAL_")
add_cxflags("/WX")
elseif is_os("linux") then
add_requires("glib", {system = true})
add_packages("glib")
add_cxflags("-fPIC", "-Wno-unused-variable")
add_syslinks("pthread")
elseif is_os("macosx") then
@@ -173,7 +171,7 @@ target("media")
"src/media/nvcodec",
"thirdparty/nvcodec/interface", {public = true})
add_includedirs(path.join(os.getenv("CUDA_PATH"), "include"), {public = true})
elseif is_os(("linux")) then
elseif is_os("linux") then
add_files("src/media/video/encode/*.cpp",
"src/media/video/decode/*.cpp",
"src/media/video/encode/nvcodec/*.cpp",
@@ -244,7 +242,7 @@ target("projectx")
"ws2_32", "Bcrypt", "windowsapp", "User32", "Strmiids", "Mfuuid",
"Secur32", "Bcrypt")
add_links("cuda", "nvencodeapi", "nvcuvid")
elseif is_os(("linux")) then
elseif is_os("linux") then
add_linkdirs("thirdparty/nvcodec/lib/x64")
add_linkdirs(path.join(os.getenv("CUDA_PATH"), "lib/x64"))
add_links("cuda", "nvidia-encode", "nvcuvid")
@@ -310,4 +308,4 @@ target("projectx")
-- add_files("tests/opus/OpusEncoderImpl.cpp",
-- "tests/opus/OpusDecoderImpl.cpp",
-- "tests/opus/main.cpp")
-- add_includedirs("tests/opus")
-- add_includedirs("tests/opus")