Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
stitchEm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Franco (nextime) Lanza
stitchEm
Commits
af34864c
Commit
af34864c
authored
May 03, 2020
by
jeremad
Committed by
jeremad
May 04, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore(test): refactor options to disable the compilation of unit tests
parent
9a632037
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
upload.yml
.github/workflows/upload.yml
+2
-2
CMakeLists.txt
IO/CMakeLists.txt
+4
-2
CMakeLists.txt
lib/CMakeLists.txt
+1
-1
No files found.
.github/workflows/upload.yml
View file @
af34864c
...
@@ -13,7 +13,7 @@ jobs:
...
@@ -13,7 +13,7 @@ jobs:
steps
:
steps
:
-
uses
:
actions/checkout@v1
-
uses
:
actions/checkout@v1
-
name
:
CMake
-
name
:
CMake
run
:
mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Release -DRTMP_NVENC=OFF -DGPU_BACKEND_CUDA=ON -DGPU_BACKEND_OPENCL=OFF -D
LIB
_TESTS=OFF -DBUILD_APPS_TESTS=OFF -G Ninja ..
run
:
mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Release -DRTMP_NVENC=OFF -DGPU_BACKEND_CUDA=ON -DGPU_BACKEND_OPENCL=OFF -D
BUILD_LIB_TESTS=OFF -DBUILD_IO
_TESTS=OFF -DBUILD_APPS_TESTS=OFF -G Ninja ..
-
name
:
Build
-
name
:
Build
run
:
cd build && ninja
run
:
cd build && ninja
-
name
:
Upload CUDA build
-
name
:
Upload CUDA build
...
@@ -28,7 +28,7 @@ jobs:
...
@@ -28,7 +28,7 @@ jobs:
steps
:
steps
:
-
uses
:
actions/checkout@v1
-
uses
:
actions/checkout@v1
-
name
:
CMake
-
name
:
CMake
run
:
mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Release -DGPU_BACKEND_CUDA=OFF -DGPU_BACKEND_OPENCL=ON -DDISABLE_OPENCL_SPIR=ON -D
LIB
_TESTS=OFF -DBUILD_APPS_TESTS=OFF -G Ninja ..
run
:
mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Release -DGPU_BACKEND_CUDA=OFF -DGPU_BACKEND_OPENCL=ON -DDISABLE_OPENCL_SPIR=ON -D
BUILD_LIB_TESTS=OFF -DBUILD_IO
_TESTS=OFF -DBUILD_APPS_TESTS=OFF -G Ninja ..
-
name
:
Build
-
name
:
Build
run
:
cd build && ninja
run
:
cd build && ninja
-
name
:
Upload OpenCL build
-
name
:
Upload OpenCL build
...
...
IO/CMakeLists.txt
View file @
af34864c
...
@@ -5,6 +5,8 @@ if(NOT VIDEOSTITCH_CMAKE)
...
@@ -5,6 +5,8 @@ if(NOT VIDEOSTITCH_CMAKE)
message
(
FATAL_ERROR
"Please configure CMake from the root folder!"
)
message
(
FATAL_ERROR
"Please configure CMake from the root folder!"
)
endif
(
NOT VIDEOSTITCH_CMAKE
)
endif
(
NOT VIDEOSTITCH_CMAKE
)
option
(
BUILD_IO_TESTS
"Build plugins unit tests"
ON
)
# ----------------------------------------------------------------------------
# ----------------------------------------------------------------------------
# Helper macro to create a list of all I/O plugins
# Helper macro to create a list of all I/O plugins
# ----------------------------------------------------------------------------
# ----------------------------------------------------------------------------
...
@@ -64,9 +66,9 @@ option(DISABLE_JPEG "Create JPEG I/O plugin" ${ANDROID})
...
@@ -64,9 +66,9 @@ option(DISABLE_JPEG "Create JPEG I/O plugin" ${ANDROID})
option
(
DISABLE_TIFF
"Create TIFF Output plugin"
${
ANDROID
}
)
option
(
DISABLE_TIFF
"Create TIFF Output plugin"
${
ANDROID
}
)
option
(
DISABLE_MP4
"Create MP4 Input plugin"
${
NANDROID
}
)
option
(
DISABLE_MP4
"Create MP4 Input plugin"
${
NANDROID
}
)
if
(
${
GPU_BACKEND_DEFAULT
}
STREQUAL CUDA OR NOT WINDOWS
)
if
(
BUILD_IO_TESTS
AND
(
${
GPU_BACKEND_DEFAULT
}
STREQUAL CUDA OR NOT WINDOWS
)
)
add_subdirectory
(
src/test
)
add_subdirectory
(
src/test
)
endif
(
${
GPU_BACKEND_DEFAULT
}
STREQUAL CUDA OR NOT WINDOWS
)
endif
()
add_subdirectory
(
src/common
)
add_subdirectory
(
src/common
)
add_subdirectory
(
src/av
)
add_subdirectory
(
src/av
)
...
...
lib/CMakeLists.txt
View file @
af34864c
...
@@ -11,7 +11,7 @@ if((VS_LIB_UNIT_TEST EQUAL VS_LIB_STATIC) AND (NOT BUILD_STATIC_LIB))
...
@@ -11,7 +11,7 @@ if((VS_LIB_UNIT_TEST EQUAL VS_LIB_STATIC) AND (NOT BUILD_STATIC_LIB))
message
(
FATAL_ERROR
"Static libvideostitch (BUILD_STATIC_LIB) needed for unit tests"
)
message
(
FATAL_ERROR
"Static libvideostitch (BUILD_STATIC_LIB) needed for unit tests"
)
endif
()
endif
()
option
(
LIB_TESTS
"Build libvideostitch unit tests"
ON
)
option
(
BUILD_
LIB_TESTS
"Build libvideostitch unit tests"
ON
)
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
# Python bindings
# Python bindings
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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