Skip to content

Commit

Permalink
Merge branch 'release/2020.2.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
voluntas committed Feb 6, 2020
2 parents e05b3ff + b66f51c commit 0b42218
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 12 deletions.
7 changes: 7 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@

## develop

## 2020.2.1

**hotfix**

- [FIX] macOS で --use-sdl オプションを利用すると落ちていたのを修正する
- https://bugzilla.libsdl.org/show_bug.cgi?id=4617

## 2020.2

- [UPDATE] CLI11 を v1.9.0 にアップデートする
Expand Down
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,7 @@ if (USE_SDL2)
SDL2::SDL2main
)
else()
target_link_directories(momo PRIVATE ${SDL2_LIBDIR})
target_link_libraries(momo PRIVATE SDL2)
target_include_directories(momo PRIVATE "${SYSROOT}${SDL2_INCLUDE_DIRS}")
endif()
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
MOMO_VERSION=2020.2
MOMO_VERSION=2020.2.1
WEBRTC_BUILD_VERSION=80.3987.2.2
BOOST_VERSION=1.72.0
JSON_VERSION=3.7.3
Expand Down
18 changes: 8 additions & 10 deletions build/macos/install_deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,15 +90,13 @@ if [ ! -e $INSTALL_DIR/SDL2/lib/libSDL2.a ]; then
mkdir -p $BUILD_DIR/SDL2
../../script/setup_sdl2.sh $SDL2_VERSION $SOURCE_DIR/SDL2
pushd $BUILD_DIR/SDL2
CC=$INSTALL_DIR/llvm/clang/bin/clang \
CXX=$INSTALL_DIR/llvm/clang/bin/clang++ \
cmake \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_SHARED_LIBS=OFF \
-DCMAKE_INSTALL_PREFIX=$INSTALL_DIR/SDL2 \
$SOURCE_DIR/SDL2/source

cmake --build . -j$JOBS
cmake --build . --target install
# SDL2 の CMakeLists.txt は Metal をサポートしてくれてないので、configure でビルドする
# ref: https://bugzilla.libsdl.org/show_bug.cgi?id=4617
SYSROOT="`xcrun --sdk macosx --show-sdk-path`"
CC="$INSTALL_DIR/llvm/clang/bin/clang --sysroot=$SYSROOT" \
CXX="$INSTALL_DIR/llvm/clang/bin/clang++ --sysroot=$SYSROOT -nostdinc++" \
$SOURCE_DIR/SDL2/source/configure --disable-shared --prefix=$INSTALL_DIR/SDL2
make -j$JOBS
make install
popd
fi
2 changes: 1 addition & 1 deletion doc/BUILD_WINDOWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ build ディレクトリにある ./build.bat を起動することで Momo の

### 中間ファイルのクリーンアップ

ビルド中にできた中間ファイルを削除するには、次のようにターゲットを指定して ./build.bat -clean を実行することでクリーンアップできます
ビルド中にできた中間ファイルを削除するには、次のように -clean 引数を指定することでクリーンアップできます

```shell
.\build.bat -clean
Expand Down

0 comments on commit 0b42218

Please sign in to comment.