-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from Live2D/develop
Update to Cubism 4 SDK for Native R1
- Loading branch information
Showing
31 changed files
with
509 additions
and
355 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
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,5 @@ | ||
.vs/ | ||
.vscode/ | ||
.idea/ | ||
*.iml | ||
.DS_Store |
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,103 +1,31 @@ | ||
cmake_minimum_required(VERSION 3.15) | ||
|
||
# includeパスの追加 | ||
include_directories(src) | ||
include_directories(../Core/include) | ||
|
||
# 各プラットフォーム共通ファイル | ||
set(commonfiles | ||
|
||
src/Effect/CubismBreath.cpp | ||
src/Effect/CubismEyeBlink.cpp | ||
src/Effect/CubismPose.cpp | ||
|
||
src/Id/CubismId.cpp | ||
src/Id/CubismIdManager.cpp | ||
|
||
src/Math/CubismMath.cpp | ||
src/Math/CubismMatrix44.cpp | ||
src/Math/CubismModelMatrix.cpp | ||
src/Math/CubismTargetPoint.cpp | ||
src/Math/CubismVector2.cpp | ||
src/Math/CubismViewMatrix.cpp | ||
|
||
src/Model/CubismModel.cpp | ||
src/Model/CubismModelUserData.cpp | ||
src/Model/CubismModelUserDataJson.cpp | ||
src/Model/CubismUserModel.cpp | ||
src/Model/CubismMoc.cpp | ||
|
||
src/Motion/CubismExpressionMotion.cpp | ||
src/Motion/CubismMotion.cpp | ||
src/Motion/CubismMotionJson.cpp | ||
src/Motion/CubismMotionManager.cpp | ||
src/Motion/CubismMotionQueueEntry.cpp | ||
src/Motion/CubismMotionQueueManager.cpp | ||
src/Motion/ACubismMotion.cpp | ||
|
||
src/Physics/CubismPhysicsJson.cpp | ||
src/Physics/CubismPhysics.cpp | ||
|
||
src/Rendering/CubismRenderer.cpp | ||
|
||
src/Type/csmRectF.cpp | ||
src/Type/csmString.cpp | ||
|
||
src/Utils/CubismDebug.cpp | ||
src/Utils/CubismJson.cpp | ||
src/Utils/CubismString.cpp | ||
|
||
src/CubismDefaultParameterId.cpp | ||
src/CubismFramework.cpp | ||
src/CubismModelSettingJson.cpp | ||
src/CubismCdiJson.cpp) | ||
|
||
if(${FRAMEWORK_SOURCE} MATCHES "D3D9") | ||
# ここにプロジェクトに追加するソースファイルを追加 DirectX9 | ||
|
||
# アプリケーション側で設定したgl系のincludeパスをセットする | ||
include_directories(${FRAMEWORK_DX9_INCLUDE_PATH}) | ||
|
||
set(Framework | ||
|
||
${commonfiles} | ||
|
||
src/Rendering/D3D9/CubismRenderer_D3D9.cpp | ||
src/Rendering/D3D9/CubismRenderState_D3D9.cpp | ||
src/Rendering/D3D9/CubismShader_D3D9.cpp | ||
src/Rendering/D3D9/CubismOffscreenSurface_D3D9.cpp) | ||
|
||
elseif(${FRAMEWORK_SOURCE} MATCHES "D3D11") | ||
# ここにプロジェクトに追加するソースファイルを追加 DirectX11 | ||
|
||
# アプリケーション側で設定したgl系のincludeパスをセットする | ||
include_directories(${FRAMEWORK_DX11_INCLUDE_PATH}) | ||
|
||
set(Framework | ||
|
||
${commonfiles} | ||
|
||
src/Rendering/D3D11/CubismOffscreenSurface_D3D11.cpp | ||
src/Rendering/D3D11/CubismRenderer_D3D11.cpp | ||
src/Rendering/D3D11/CubismRenderState_D3D11.cpp | ||
src/Rendering/D3D11/CubismShader_D3D11.cpp) | ||
else() | ||
# ここにプロジェクトに追加するソースファイルを追加 OpenGL | ||
|
||
# アプリケーション側で設定したgl系のincludeパスをセットする | ||
include_directories(${FRAMEWORK_GLFW_PATH}) | ||
include_directories(${FRAMEWORK_GLEW_PATH}) | ||
|
||
# プリプロセッサ定義の追加 | ||
add_definitions(${FRAMEWORK_DEFINITIOINS}) | ||
|
||
set(Framework | ||
|
||
${commonfiles} | ||
|
||
src/Rendering/OpenGL/CubismRenderer_OpenGLES2.cpp | ||
src/Rendering/OpenGL/CubismOffscreenSurface_OpenGLES2.cpp) | ||
endif() | ||
|
||
# staticライブラリとして追加 | ||
add_library (Framework STATIC ${Framework}) | ||
cmake_minimum_required(VERSION 3.10) | ||
|
||
set(LIB_NAME Framework) | ||
|
||
# Force static library. | ||
add_library(${LIB_NAME} STATIC) | ||
|
||
add_subdirectory(src) | ||
|
||
# Add include path. | ||
target_include_directories(${LIB_NAME} | ||
PUBLIC | ||
${CMAKE_CURRENT_SOURCE_DIR}/src | ||
PRIVATE | ||
${RENDER_INCLUDE_PATH} | ||
) | ||
|
||
# Deprecated functions | ||
# The following expressions are written for compatibility | ||
# and will be removed in a future release. | ||
|
||
# Add core include. | ||
target_include_directories(${LIB_NAME} | ||
PRIVATE | ||
${CMAKE_CURRENT_SOURCE_DIR}/../Core/include | ||
) | ||
# Add definitions. | ||
target_compile_definitions(${LIB_NAME} | ||
PRIVATE | ||
${FRAMEWORK_DEFINITIOINS} | ||
) |
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,39 @@ | ||
## Definitions | ||
|
||
### Live2D Cubism Components | ||
|
||
Cubism Native Framework is included in Live2D Cubism Components. | ||
|
||
Cubism Native Framework は Live2D Cubism Components に含まれます。 | ||
|
||
|
||
## Cubism SDK Release License | ||
|
||
*All business* users must obtain a Cubism SDK Release License. "Business" means an entity with the annual gross revenue more than ten million (10,000,000) JPY for the most recent fiscal year. | ||
|
||
* [Cubism SDK Release License](https://www.live2d.com/en/download/cubism-sdk/release-license/) | ||
|
||
直近会計年度の売上高が 1000 万円以上の事業者様がご利用になる場合は、Cubism SDK リリースライセンス(出版許諾契約)に同意していただく必要がございます。 | ||
|
||
* [Cubism SDK リリースライセンス](https://www.live2d.com/ja/download/cubism-sdk/release-license/) | ||
|
||
|
||
## Live2D Open Software License | ||
|
||
Live2D Cubism Components is available under Live2D Open Software License. | ||
|
||
* [Live2D Open Software License Agreement](https://www.live2d.com/eula/live2d-open-software-license-agreement_en.html) | ||
* [Live2D Open Software 使用許諾契約書](https://www.live2d.com/eula/live2d-open-software-license-agreement_jp.html) | ||
|
||
|
||
## Live2D Proprietary Software License | ||
|
||
Live2D Cubism Core is available under Live2D Proprietary Software License. | ||
|
||
* [Live2D Proprietary Software License Agreement](https://www.live2d.com/eula/live2d-proprietary-software-license-agreement_en.html) | ||
* [Live2D Proprietary Software 使用許諾契約書](https://www.live2d.com/eula/live2d-proprietary-software-license-agreement_jp.html) | ||
|
||
|
||
--- | ||
|
||
Please contact us from [here](https://www.live2d.jp/contact/) for more license information. |
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,26 @@ | ||
target_sources(${LIB_NAME} | ||
PRIVATE | ||
${CMAKE_CURRENT_SOURCE_DIR}/CubismCdiJson.cpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/CubismCdiJson.hpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/CubismDefaultParameterId.cpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/CubismDefaultParameterId.hpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/CubismFramework.cpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/CubismFramework.hpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/CubismFrameworkConfig.hpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/CubismModelSettingJson.cpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/CubismModelSettingJson.hpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/ICubismAllocator.hpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/ICubismModelSetting.hpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/Live2DCubismCore.hpp | ||
) | ||
|
||
# Add sub directories. | ||
add_subdirectory(Effect) | ||
add_subdirectory(Id) | ||
add_subdirectory(Math) | ||
add_subdirectory(Model) | ||
add_subdirectory(Motion) | ||
add_subdirectory(Physics) | ||
add_subdirectory(Rendering) | ||
add_subdirectory(Type) | ||
add_subdirectory(Utils) |
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,9 @@ | ||
target_sources(${LIB_NAME} | ||
PRIVATE | ||
${CMAKE_CURRENT_SOURCE_DIR}/CubismBreath.cpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/CubismBreath.hpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/CubismEyeBlink.cpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/CubismEyeBlink.hpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/CubismPose.cpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/CubismPose.hpp | ||
) |
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,7 @@ | ||
target_sources(${LIB_NAME} | ||
PRIVATE | ||
${CMAKE_CURRENT_SOURCE_DIR}/CubismId.cpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/CubismId.hpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/CubismIdManager.cpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/CubismIdManager.hpp | ||
) |
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,15 @@ | ||
target_sources(${LIB_NAME} | ||
PRIVATE | ||
${CMAKE_CURRENT_SOURCE_DIR}/CubismMath.cpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/CubismMath.hpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/CubismMatrix44.cpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/CubismMatrix44.hpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/CubismModelMatrix.cpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/CubismModelMatrix.hpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/CubismTargetPoint.cpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/CubismTargetPoint.hpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/CubismVector2.cpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/CubismVector2.hpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/CubismViewMatrix.cpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/CubismViewMatrix.hpp | ||
) |
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,13 @@ | ||
target_sources(${LIB_NAME} | ||
PRIVATE | ||
${CMAKE_CURRENT_SOURCE_DIR}/CubismMoc.cpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/CubismMoc.hpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/CubismModel.cpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/CubismModel.hpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/CubismModelUserData.cpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/CubismModelUserData.hpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/CubismModelUserDataJson.cpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/CubismModelUserDataJson.hpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/CubismUserModel.cpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/CubismUserModel.hpp | ||
) |
Oops, something went wrong.