mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-09-09 12:08:21 +00:00
Added video decoder support. (#3756)
This commit is contained in:
committed by
GitHub
parent
9c2014f832
commit
d5ea625272
@@ -3,6 +3,57 @@
|
||||
-- License: https://github.com/bkaradzic/bgfx/blob/master/LICENSE
|
||||
--
|
||||
|
||||
group "tools/texturev"
|
||||
|
||||
project "l-smash"
|
||||
kind "StaticLib"
|
||||
|
||||
removeflags { "FatalWarnings" }
|
||||
|
||||
includedirs {
|
||||
path.join(MODULE_DIR, "3rdparty/l-smash"),
|
||||
}
|
||||
|
||||
files {
|
||||
path.join(MODULE_DIR, "3rdparty/l-smash/**.c"),
|
||||
path.join(MODULE_DIR, "3rdparty/l-smash/**.h"),
|
||||
}
|
||||
|
||||
configuration { "vs*" }
|
||||
buildoptions {
|
||||
"/wd4005", -- warning C4005: '_CRT_SECURE_NO_WARNINGS': macro redefinition
|
||||
"/wd4018", -- warning C4018: '<=': signed/unsigned mismatch
|
||||
"/wd4100", -- warning C4100: 'class': unreferenced parameter
|
||||
"/wd4116", -- warning C4116: unnamed type definition in parentheses
|
||||
"/wd4125", -- warning C4125: decimal digit terminates octal escape sequence
|
||||
"/wd4133", -- warning C4133: '=': incompatible types - from 'lsmash_brand_type *' to 'uint32_t *'
|
||||
"/wd4210", -- warning C4210: nonstandard extension used: function given file scope
|
||||
"/wd4244", -- warning C4244: 'initializing': conversion from 'uint64_t' to 'uint32_t', possible loss of data
|
||||
"/wd4245", -- warning C4245: '=': conversion from 'int' to 'uint32_t', signed/unsigned mismatch
|
||||
"/wd4267", -- warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
|
||||
"/wd4389", -- warning C4389: '!=': signed/unsigned mismatch
|
||||
"/wd4701", -- warning C4701: potentially uninitialized local variable 'src_movie_timescale' used
|
||||
}
|
||||
|
||||
configuration { "*-gcc or *-clang" }
|
||||
buildoptions {
|
||||
"-Wno-empty-body",
|
||||
"-Wno-implicit-fallthrough",
|
||||
"-Wno-missing-field-initializers",
|
||||
"-Wno-pragmas",
|
||||
"-Wno-sign-compare",
|
||||
"-Wno-type-limits",
|
||||
"-Wno-undef",
|
||||
"-Wno-unused-function",
|
||||
"-Wno-unused-parameter",
|
||||
}
|
||||
|
||||
configuration { "mingw*" }
|
||||
buildoptions {
|
||||
"-Wno-maybe-uninitialized",
|
||||
"-Wno-stringop-overflow",
|
||||
}
|
||||
|
||||
project "texturev"
|
||||
uuid (os.uuid("texturev") )
|
||||
kind "ConsoleApp"
|
||||
@@ -23,6 +74,7 @@ project "texturev"
|
||||
}
|
||||
|
||||
links {
|
||||
"l-smash",
|
||||
"example-common",
|
||||
"bimg_decode",
|
||||
"bimg",
|
||||
@@ -148,6 +200,9 @@ project "texturev"
|
||||
"-framework Metal",
|
||||
"-framework OpenGL",
|
||||
"-framework QuartzCore",
|
||||
"-weak_framework VideoToolbox",
|
||||
"-weak_framework CoreMedia",
|
||||
"-weak_framework CoreVideo",
|
||||
}
|
||||
|
||||
configuration { "ios*" }
|
||||
@@ -174,3 +229,5 @@ project "texturev"
|
||||
configuration {}
|
||||
|
||||
strip()
|
||||
|
||||
group "tools"
|
||||
|
||||
Reference in New Issue
Block a user