-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
487 additions
and
390 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,7 @@ | ||
cmake_minimum_required(VERSION 3.5) | ||
project(motion-filter) | ||
project(motion-effect) | ||
|
||
include(external/FindLibObs.cmake) | ||
find_package(LibObs REQUIRED) | ||
set(motion-filter_SOURCES | ||
src/helper.c | ||
src/motion-filter.c | ||
) | ||
|
||
set(motion-filter_HEADERS | ||
src/helper.h | ||
) | ||
|
||
include_directories( | ||
"${LIBOBS_INCLUDE_DIR}/../UI/obs-frontend-api") | ||
|
||
add_library(motion-filter MODULE | ||
${motion-filter_SOURCES} | ||
${motion-filter_HEADERS}) | ||
|
||
target_link_libraries(motion-filter | ||
libobs) | ||
|
||
if(UNIX AND NOT APPLE) | ||
|
||
if(ARCH EQUAL 64) | ||
set(ARCH_NAME "x86_64") | ||
else() | ||
set(ARCH_NAME "i686") | ||
endif() | ||
|
||
set_target_properties(motion-filter PROPERTIES PREFIX "") | ||
|
||
install(TARGETS motion-filter | ||
LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/obs-plugins) | ||
install(DIRECTORY locale/ | ||
DESTINATION "${CMAKE_INSTALL_PREFIX}/share/obs/obs-plugins/motion-filter/locale") | ||
endif() | ||
|
||
|
||
if(WIN32) | ||
set(OBS_FRONTEND_LIB "OBS_FRONTEND_LIB-NOTFOUND" CACHE FILEPATH "OBS frontend library") | ||
if(OBS_FRONTEND_LIB EQUAL "OBS_FRONTEND_LIB-NOTFOUND") | ||
message(FATAL_ERROR "OBS_FRONTEND_LIB NOTFOUND") | ||
endif() | ||
|
||
target_link_libraries(motion-filter | ||
"${OBS_FRONTEND_LIB}") | ||
|
||
endif() | ||
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/") | ||
add_subdirectory(src/motion-filter) | ||
add_subdirectory(src/motion-transition) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
Motion="動畫" | ||
Behavior="觸發方式" | ||
Behavior.OneWay="熱鍵 (單向動畫)" | ||
Behavior.RoundTrip="熱鍵 (往返動畫)" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Motion="Motion" | ||
Acceleration.X="Acceleration (x-axis)" | ||
Acceleration.Y="Acceleration (y-axis)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Motion="動畫" | ||
Acceleration.X="X軸加速度" | ||
Acceleration.Y="Y軸加速度" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
cmake_minimum_required(VERSION 3.5) | ||
project(motion-filter) | ||
|
||
include(${CMAKE_SOURCE_DIR}/external/FindLibObs.cmake) | ||
find_package(LibObs REQUIRED) | ||
set(motion-filter_SOURCES | ||
../helper.c | ||
motion-filter.c | ||
) | ||
|
||
set(motion-filter_HEADERS | ||
../helper.h | ||
) | ||
|
||
include_directories( | ||
"${LIBOBS_INCLUDE_DIR}/../UI/obs-frontend-api") | ||
|
||
add_library(motion-filter MODULE | ||
${motion-filter_SOURCES} | ||
${motion-filter_HEADERS}) | ||
|
||
target_link_libraries(motion-filter | ||
libobs) | ||
|
||
if(UNIX AND NOT APPLE) | ||
|
||
if(ARCH EQUAL 64) | ||
set(ARCH_NAME "x86_64") | ||
else() | ||
set(ARCH_NAME "i686") | ||
endif() | ||
|
||
set_target_properties(motion-filter PROPERTIES PREFIX "") | ||
|
||
install(TARGETS motion-filter | ||
LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/obs-plugins) | ||
install(DIRECTORY ${CMAKE_SOURCE_DIR}/data/motion-filter/ | ||
DESTINATION "${CMAKE_INSTALL_PREFIX}/share/obs/obs-plugins/motion-filter/") | ||
endif() | ||
|
||
|
||
if(WIN32) | ||
set(OBS_FRONTEND_LIB "OBS_FRONTEND_LIB-NOTFOUND" CACHE FILEPATH "OBS frontend library") | ||
if(OBS_FRONTEND_LIB EQUAL "OBS_FRONTEND_LIB-NOTFOUND") | ||
message(FATAL_ERROR "OBS_FRONTEND_LIB NOTFOUND") | ||
endif() | ||
|
||
target_link_libraries(motion-filter | ||
"${OBS_FRONTEND_LIB}") | ||
|
||
endif() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.