Skip to content

Commit 0a53645

Browse files
authored
Feature/mac build (Synesthesias#142)
* macOS arm版でのビルドに対応中 * updated libfbxsdk for linux
1 parent 0dbb677 commit 0a53645

File tree

8 files changed

+28
-12
lines changed

8 files changed

+28
-12
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:808b7ae3809625d4f8715d80cf10226f407ad16c4e9ec3503711dd1544f124eb
3-
size 62623336
2+
oid sha256:5d532ce30de9ce00792be8bdcdf4f5d9238d2e96caf1875b70b9c714ee7f4b2f
3+
size 62630904
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:20f9ba225db93a4ecaa1f73d4df82a7b8448ad60f864b4fe09397422e8c36c12
3-
size 27811442
2+
oid sha256:238f4ca1f39001a1cb68e498b17f7aeaf44a84b3242b4fe10232162aa75b491c
3+
size 27770862
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:e463d0e487bc735a7e240dbea53780bae0fc879daf2547fc803ee9affc8e3bf7
3-
size 81701754
2+
oid sha256:ef70efc5ce92cfd1bcb568d9a2f9364c48d3242ea043c8cf8127a3f75a4e1baf
3+
size 81710998
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:dceefc818bb7b916b158c66e5e79995bdad99f52014179cdc4b36b84d7793e49
3-
size 37870132
2+
oid sha256:8bdb93725d18da547836e60f9dc13b796ad3b7e050cbdb100ef360d6acd405e7
3+
size 37876638
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:b3a5fc53af1b804532be275e90860258a4be6e3b2a51cc7ea7ef6c1e0149e76b
3-
size 62791512
2+
oid sha256:3cf3d05c7be295468bb6a8814bf03da6072ddbdfa249212da011d14465dfdfc6
3+
size 124037992
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:784a91ad3acb0d78e1e82c5e5df93b9a5754c5dcf089936db9bfa054b286f25c
3-
size 24584160
2+
oid sha256:303f438d1b4ac6d5d3412c74589865b600b98314273666fbbad1f00e986af071
3+
size 46362224

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ if(WIN32) # CMake文法上の WIN32
4848
add_definitions(-D WIN32) # C言語の #define キーワードとしての WIN32
4949
endif()
5050

51+
set(CMAKE_OSX_ARCHITECTURES "arm64;x86_64" CACHE STRING "" FORCE)
52+
5153
project("libplateau")
5254

5355
set(LIBPLATEAU_BINARY_DIR ${libplateau_BINARY_DIR}/bin)

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ OSごとのビルド方法を記載する。
2929
- C++ の libplateau_c をビルドすると DLL ができる。
3030
- その後 C# の LibPLATEAU.NET をビルドすると自動で上述のDLLがコピーされ、C#側で利用可能になる。
3131
- C++とC#のビルド設定を合わせる必要がある。(C++でRelease 設定でビルドしたなら C# も Release、Debug なら C# も Debug。これを間違うと古いDLLがコピーされてしまう。)
32+
- ユニットテストの実行時、dllがないという旨のエラーが出る場合、C++ビルド結果の out/build/x64-Debug or x64-Release にある
33+
libplateau が C#のバイナリのディレクトリにコピーされているか確認してください。
34+
コピーコマンドは CSharpPLATEAU.Test.csproj に記載されており、C#のリビルド時に実行されるはずです。
35+
このコマンドが正しく動作するか確認してください。
3236

3337
### 3つのOS向けにまとめてビルド
3438
- Github Actions で```Upload Dlls``` というワークフローを手動実行すると、
@@ -79,6 +83,16 @@ dotnet build -c Release
7983
dotnet test -c Release
8084
```
8185

86+
### MacOSでの手動ビルド
87+
#### C++ビルドに必要なもの
88+
- PowerShell をMacにインストールする必要があります。 brew でインストールしてください。
89+
- cmakeのビルドディレクトリを次のように設定します。
90+
- Debug構成時は out/build/x64-Debug
91+
- Release(RelWithDebInfo)構成時は out/build/x64-Release
92+
#### C#ビルドに必要なもの
93+
- dotnet Core 3.1 を利用します。
94+
- IDEにRiderを利用している場合、デフォルトで dotnet core 7 になっているので 3.1 をインストールしてそちらを利用するように設定を変えます。
95+
8296
## サンプル
8397
### log_skipped_elements
8498
パース出来なかった要素をすべて列挙してくれる。

0 commit comments

Comments
 (0)