Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3D] windows link fix #635

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 7 additions & 19 deletions .github/workflows/vangers_macos_build.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
name: Vangers MacOS Build

on: [push, pull_request]
env:
MACOSX_DEPLOYMENT_TARGET: 11

env:
VANGE_RS_REF: adf17c6b563b2b236847a04b5f8df3023b1d1b5b

jobs:
build:
runs-on: macos-10.15
runs-on: macos-11
steps:
- uses: actions/checkout@v2
# - name: update repos
Expand All @@ -16,14 +18,7 @@ jobs:
# brew update
- name: install libs
run: |
brew install ninja yasm dylibbundler
- name: install our libs
run: |
brew reinstall -s ./formulas/libsndfile.rb
brew reinstall -s ./formulas/libogg.rb
brew reinstall -s ./formulas/libvorbis.rb
brew install -s ./formulas/sdl2.rb
brew install -s ./formulas/sdl2_net.rb
brew install ninja yasm dylibbundler sdl2 sdl2_net libvorbis libogg libsndfile

- name: install rustup toolchain
uses: actions-rs/toolchain@v1
Expand Down Expand Up @@ -67,7 +62,7 @@ jobs:
run: ./configure --enable-shared --prefix=/usr/local
--cc=clang
--arch=x86_64
--cpu=ivybridge
--cpu=westmere
--disable-everything
--enable-swscale
--enable-zlib
Expand All @@ -77,27 +72,20 @@ jobs:
--enable-protocol=file
--disable-d3d11va
--disable-dxva2
--disable-avx
--disable-doc --disable-ffplay --disable-ffprobe --disable-ffmpeg
--disable-static --disable-bzlib --disable-libopenjpeg --disable-iconv
working-directory: ffmpeg
env:
MACOSX_DEPLOYMENT_TARGET: 10.12
- name: ffmpeg -- build and install
run: |
make -j4
sudo make install
working-directory: ffmpeg
env:
MACOSX_DEPLOYMENT_TARGET: 10.12
- name: configure
run: mkdir build && cd build && cmake -G Ninja ..
env:
MACOSX_DEPLOYMENT_TARGET: 10.12
- name: make
run: ninja
working-directory: build
env:
MACOSX_DEPLOYMENT_TARGET: 10.12
- name: vangers -- prepare release folder
run: |
mkdir Vangers.app/Contents/Frameworks
Expand Down Expand Up @@ -133,4 +121,4 @@ jobs:
- uses: actions/upload-artifact@v2
with:
name: Vangers.app.tar
path: Vangers.app.tar
path: Vangers.app.tar
17 changes: 12 additions & 5 deletions .github/workflows/vangers_windows_32_build.yml1
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
msys2 -c 'ninja install'
working-directory: clunk/build
- name: ffmpeg -- download
run: git clone --depth 1 --branch n4.2.2 https://git.ffmpeg.org/ffmpeg.git ffmpeg
run: git clone --depth 1 --branch release/6.0 https://git.ffmpeg.org/ffmpeg.git ffmpeg
- name: ffmpeg -- configure
run: msys2 -c './configure --enable-shared --prefix=/mingw32
--disable-everything
Expand All @@ -47,7 +47,14 @@ jobs:
--disable-d3d11va
--disable-dxva2
--disable-doc --disable-ffplay --disable-ffprobe --disable-ffmpeg
--disable-static --disable-bzlib --disable-libopenjpeg --disable-iconv'
--disable-static --disable-bzlib --disable-libopenjpeg --disable-iconv
--disable-lto
--disable-avx
--disable-avx2
--disable-avx512
--disable-fma4
--disable-fma3
--disable-inline-asm'
working-directory: ffmpeg
- name: ffmpeg -- build and install
run: |
Expand Down Expand Up @@ -77,9 +84,9 @@ jobs:
msys2 -c 'mkdir -p vangers/bin'
msys2 -c 'cp /mingw32/bin/SDL2.dll vangers/bin/'
msys2 -c 'cp /mingw32/bin/SDL2_net.dll vangers/bin/'
msys2 -c 'cp /mingw32/bin/avcodec-58.dll vangers/bin/'
msys2 -c 'cp /mingw32/bin/avformat-58.dll vangers/bin/'
msys2 -c 'cp /mingw32/bin/avutil-56.dll vangers/bin/'
msys2 -c 'cp /mingw32/bin/avcodec-60.dll vangers/bin/'
msys2 -c 'cp /mingw32/bin/avformat-60.dll vangers/bin/'
msys2 -c 'cp /mingw32/bin/avutil-58.dll vangers/bin/'
msys2 -c 'cp /mingw32/bin/libogg-0.dll vangers/bin/'
msys2 -c 'cp /mingw32/bin/libvorbis-0.dll vangers/bin/'
msys2 -c 'cp /mingw32/bin/libvorbisfile-3.dll vangers/bin/'
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/vangers_windows_64_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
msys2 -c 'ninja install'
working-directory: clunk/build
- name: ffmpeg -- download
run: git clone --depth 1 --branch n4.2.2 https://git.ffmpeg.org/ffmpeg.git ffmpeg
run: git clone --depth 1 --branch release/6.0 https://git.ffmpeg.org/ffmpeg.git ffmpeg
- name: ffmpeg -- configure
run: msys2 -c './configure --enable-shared --prefix=/mingw64
--disable-everything
Expand Down Expand Up @@ -124,9 +124,9 @@ jobs:
msys2 -c 'mkdir -p vangers/bin'
msys2 -c 'cp /mingw64/bin/SDL2.dll vangers/bin/'
msys2 -c 'cp /mingw64/bin/SDL2_net.dll vangers/bin/'
msys2 -c 'cp /mingw64/bin/avcodec-58.dll vangers/bin/'
msys2 -c 'cp /mingw64/bin/avformat-58.dll vangers/bin/'
msys2 -c 'cp /mingw64/bin/avutil-56.dll vangers/bin/'
msys2 -c 'cp /mingw64/bin/avcodec-60.dll vangers/bin/'
msys2 -c 'cp /mingw64/bin/avformat-60.dll vangers/bin/'
msys2 -c 'cp /mingw64/bin/avutil-58.dll vangers/bin/'
msys2 -c 'cp /mingw64/bin/libogg-0.dll vangers/bin/'
msys2 -c 'cp /mingw64/bin/libvorbis-0.dll vangers/bin/'
msys2 -c 'cp /mingw64/bin/libvorbisfile-3.dll vangers/bin/'
Expand Down
3 changes: 3 additions & 0 deletions cmake/FindFFMPEG.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ FIND_LIBRARY(AVUTIL_LIBRARY
avutil
avutil-55
avutil-56
avutil-58
PATHS
/usr/local/lib
/usr/pkg/lib/ffmpeg3
Expand All @@ -101,6 +102,7 @@ FIND_LIBRARY(AVCODEC_LIBRARY
avcodec
avcodec-57
avcodec-58
avcodec-60
PATHS
/usr/local/lib
/usr/pkg/lib/ffmpeg3
Expand All @@ -121,6 +123,7 @@ FIND_LIBRARY(AVFORMAT_LIBRARY
avformat
avformat-57
avformat-58
avformat-60
PATHS
/usr/local/lib
/usr/pkg/lib/ffmpeg3
Expand Down
9 changes: 5 additions & 4 deletions lib/renderer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,11 @@ SET(RENDERER_LIBS
${RENDERER_LIBS}
userenv
bcrypt
d3d12
d3dcompiler
ws2_32
)
d3d12
d3dcompiler
ws2_32
ntdll
)
ENDIF(MINGW)

IF(APPLE)
Expand Down
Loading