Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Kenneth Andersson
HM
Commits
f672feae
Commit
f672feae
authored
Oct 06, 2019
by
Karl Sharman
Browse files
Merge branch 'high_bitdepth_build' into 'master'
add option to compile high bit depth variant See merge request jct-vc/HM!16
parents
45cc9d1b
71ea8d4b
Changes
12
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
f672feae
...
...
@@ -30,6 +30,7 @@ endif()
set
(
EXTENSION_360_VIDEO OFF CACHE BOOL
"If EXTENSION_360_VIDEO is on, 360Lib will be added"
)
set
(
SET_ENABLE_TRACING OFF CACHE BOOL
"Set ENABLE_TRACING as a compiler flag"
)
set
(
ENABLE_TRACING OFF CACHE BOOL
"If SET_ENABLE_TRACING is on, it will be set to this value"
)
set
(
HIGH_BITDEPTH OFF CACHE BOOL
"Build libraries and applications with high bit depth support"
)
if
(
CMAKE_COMPILER_IS_GNUCC
)
set
(
BUILD_STATIC OFF CACHE BOOL
"Build static executables"
)
...
...
Makefile
View file @
f672feae
...
...
@@ -78,6 +78,10 @@ ifneq ($(address-sanitizer),)
CMAKE_OPTIONS
+=
-DUSE_ADDRESS_SANITIZER
=
ON
endif
ifneq
($(high-bitdepth),)
CMAKE_OPTIONS
+=
-DHIGH_BITDEPTH
=
ON
endif
ifneq
($(verbose),)
CMAKE_OPTIONS
+=
-DCMAKE_VERBOSE_MAKEFILE
=
ON
endif
...
...
source/App/TAppDecoder/CMakeLists.txt
View file @
f672feae
...
...
@@ -25,6 +25,10 @@ endif()
add_executable
(
${
EXE_NAME
}
${
SRC_FILES
}
${
INC_FILES
}
${
NATVIS_FILES
}
)
include_directories
(
${
CMAKE_CURRENT_BINARY_DIR
}
)
if
(
HIGH_BITDEPTH
)
target_compile_definitions
(
${
EXE_NAME
}
PUBLIC RExt__HIGH_BIT_DEPTH_SUPPORT=1
)
endif
()
if
(
SET_ENABLE_TRACING
)
if
(
ENABLE_TRACING
)
target_compile_definitions
(
${
EXE_NAME
}
PUBLIC ENABLE_TRACING=1
)
...
...
source/App/TAppDecoderAnalyser/CMakeLists.txt
View file @
f672feae
...
...
@@ -27,6 +27,10 @@ include_directories(${CMAKE_CURRENT_BINARY_DIR})
target_compile_definitions
(
${
EXE_NAME
}
PUBLIC RExt__DECODER_DEBUG_BIT_STATISTICS=1
)
target_compile_definitions
(
${
EXE_NAME
}
PUBLIC RExt__DECODER_DEBUG_TOOL_STATISTICS=1
)
if
(
HIGH_BITDEPTH
)
target_compile_definitions
(
${
EXE_NAME
}
PUBLIC RExt__HIGH_BIT_DEPTH_SUPPORT=1
)
endif
()
if
(
SET_ENABLE_TRACING
)
if
(
ENABLE_TRACING
)
target_compile_definitions
(
${
EXE_NAME
}
PUBLIC ENABLE_TRACING=1
)
...
...
source/App/TAppEncoder/CMakeLists.txt
View file @
f672feae
...
...
@@ -27,6 +27,10 @@ endif()
add_executable
(
${
EXE_NAME
}
${
SRC_FILES
}
${
INC_FILES
}
${
NATVIS_FILES
}
)
include_directories
(
${
CMAKE_CURRENT_BINARY_DIR
}
)
if
(
HIGH_BITDEPTH
)
target_compile_definitions
(
${
EXE_NAME
}
PUBLIC RExt__HIGH_BIT_DEPTH_SUPPORT=1
)
endif
()
if
(
SET_ENABLE_TRACING
)
if
(
ENABLE_TRACING
)
target_compile_definitions
(
${
EXE_NAME
}
PUBLIC ENABLE_TRACING=1
)
...
...
source/App/TAppMCTSExtractor/CMakeLists.txt
View file @
f672feae
...
...
@@ -25,6 +25,10 @@ endif()
add_executable
(
${
EXE_NAME
}
${
SRC_FILES
}
${
INC_FILES
}
${
NATVIS_FILES
}
)
include_directories
(
${
CMAKE_CURRENT_BINARY_DIR
}
)
if
(
HIGH_BITDEPTH
)
target_compile_definitions
(
${
EXE_NAME
}
PUBLIC RExt__HIGH_BIT_DEPTH_SUPPORT=1
)
endif
()
if
(
SET_ENABLE_TRACING
)
if
(
ENABLE_TRACING
)
target_compile_definitions
(
${
EXE_NAME
}
PUBLIC ENABLE_TRACING=1
)
...
...
source/Lib/TLibCommon/CMakeLists.txt
View file @
f672feae
...
...
@@ -47,6 +47,10 @@ set( INC_FILES ${BASE_INC_FILES} ${X86_INC_FILES} ${MD5_INC_FILES} )
# library
add_library
(
${
LIB_NAME
}
STATIC
${
SRC_FILES
}
${
INC_FILES
}
${
NATVIS_FILES
}
)
if
(
HIGH_BITDEPTH
)
target_compile_definitions
(
${
LIB_NAME
}
PUBLIC RExt__HIGH_BIT_DEPTH_SUPPORT=1
)
endif
()
if
(
EXTENSION_360_VIDEO
)
target_compile_definitions
(
${
LIB_NAME
}
PUBLIC EXTENSION_360_VIDEO=1
)
endif
()
...
...
source/Lib/TLibCommonAnalyser/CMakeLists.txt
View file @
f672feae
...
...
@@ -49,6 +49,10 @@ add_library( ${LIB_NAME} STATIC ${SRC_FILES} ${INC_FILES} ${NATVIS_FILES} )
target_compile_definitions
(
${
LIB_NAME
}
PUBLIC RExt__DECODER_DEBUG_BIT_STATISTICS=1
)
target_compile_definitions
(
${
LIB_NAME
}
PUBLIC RExt__DECODER_DEBUG_TOOL_STATISTICS=1
)
if
(
HIGH_BITDEPTH
)
target_compile_definitions
(
${
LIB_NAME
}
PUBLIC RExt__HIGH_BIT_DEPTH_SUPPORT=1
)
endif
()
if
(
EXTENSION_360_VIDEO
)
target_compile_definitions
(
${
LIB_NAME
}
PUBLIC EXTENSION_360_VIDEO=1
)
endif
()
...
...
source/Lib/TLibDecoder/CMakeLists.txt
View file @
f672feae
...
...
@@ -16,6 +16,10 @@ endif()
add_library
(
${
LIB_NAME
}
STATIC
${
SRC_FILES
}
${
INC_FILES
}
${
NATVIS_FILES
}
)
target_compile_definitions
(
${
LIB_NAME
}
PUBLIC
)
if
(
HIGH_BITDEPTH
)
target_compile_definitions
(
${
LIB_NAME
}
PUBLIC RExt__HIGH_BIT_DEPTH_SUPPORT=1
)
endif
()
if
(
EXTENSION_360_VIDEO
)
target_compile_definitions
(
${
LIB_NAME
}
PUBLIC EXTENSION_360_VIDEO=1
)
endif
()
...
...
source/Lib/TLibDecoderAnalyser/CMakeLists.txt
View file @
f672feae
...
...
@@ -17,6 +17,10 @@ add_library( ${LIB_NAME} STATIC ${SRC_FILES} ${INC_FILES} ${NATVIS_FILES} )
target_compile_definitions
(
${
LIB_NAME
}
PUBLIC RExt__DECODER_DEBUG_BIT_STATISTICS=1
)
target_compile_definitions
(
${
LIB_NAME
}
PUBLIC RExt__DECODER_DEBUG_TOOL_STATISTICS=1
)
if
(
HIGH_BITDEPTH
)
target_compile_definitions
(
${
LIB_NAME
}
PUBLIC RExt__HIGH_BIT_DEPTH_SUPPORT=1
)
endif
()
if
(
EXTENSION_360_VIDEO
)
target_compile_definitions
(
${
LIB_NAME
}
PUBLIC EXTENSION_360_VIDEO=1
)
endif
()
...
...
source/Lib/TLibEncoder/CMakeLists.txt
View file @
f672feae
...
...
@@ -16,6 +16,10 @@ endif()
add_library
(
${
LIB_NAME
}
STATIC
${
SRC_FILES
}
${
INC_FILES
}
${
NATVIS_FILES
}
)
target_compile_definitions
(
${
LIB_NAME
}
PUBLIC
)
if
(
HIGH_BITDEPTH
)
target_compile_definitions
(
${
LIB_NAME
}
PUBLIC RExt__HIGH_BIT_DEPTH_SUPPORT=1
)
endif
()
if
(
EXTENSION_360_VIDEO
)
target_compile_definitions
(
${
LIB_NAME
}
PUBLIC EXTENSION_360_VIDEO=1
)
endif
()
...
...
source/Lib/Utilities/CMakeLists.txt
View file @
f672feae
...
...
@@ -16,6 +16,10 @@ endif()
add_library
(
${
LIB_NAME
}
STATIC
${
SRC_FILES
}
${
INC_FILES
}
${
NATVIS_FILES
}
)
target_compile_definitions
(
${
LIB_NAME
}
PUBLIC
)
if
(
HIGH_BITDEPTH
)
target_compile_definitions
(
${
LIB_NAME
}
PUBLIC RExt__HIGH_BIT_DEPTH_SUPPORT=1
)
endif
()
if
(
EXTENSION_360_VIDEO
)
target_compile_definitions
(
${
LIB_NAME
}
PUBLIC EXTENSION_360_VIDEO=1
)
endif
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment