forked from bkaradzic/bgfx.cmake
-
Notifications
You must be signed in to change notification settings - Fork 0
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 bkaradzic#4 from e-erdal/master
Make fork even with submodules
- Loading branch information
Showing
13 changed files
with
135 additions
and
178 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 |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# https://github.com/openblack/bgfx.cmake/blob/master/.github/workflows/ci.yml | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
job: | ||
name: ${{ matrix.os }} ${{ matrix.cc }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- os: windows-latest | ||
- os: ubuntu-latest | ||
cc: gcc | ||
cxx: g++ | ||
- os: ubuntu-latest | ||
cc: clang | ||
cxx: clang++ | ||
- os: macos-latest | ||
env: | ||
# Indicates the CMake build directory where project files and binaries are being produced. | ||
CMAKE_BUILD_DIR: ${{ github.workspace }}/build/ | ||
|
||
CC: ${{ matrix.cc }} | ||
CXX: ${{ matrix.cxx }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: recursive | ||
- name: Install Linux dependencies | ||
run: | | ||
sudo apt install -y libgl1-mesa-dev | ||
if: matrix.os == 'ubuntu-latest' | ||
|
||
# Setup the build machine with the most recent versions of CMake and Ninja. Both are cached if not already: on subsequent runs both will be quickly restored from GitHub cache service. | ||
- uses: lukka/get-cmake@latest | ||
|
||
# On Windows runners, let's ensure to have the Developer Command Prompt environment setup correctly. As used here the Developer Command Prompt created is targeting x64 and using the default the Windows SDK. | ||
- uses: ilammy/msvc-dev-cmd@v1 | ||
|
||
# Run CMake to generate Ninja project files | ||
- name: Generate project files | ||
run: | | ||
cmake -B "${{ env.CMAKE_BUILD_DIR }}" -GNinja -DCMAKE_BUILD_TYPE=Release | ||
# Build the whole project with Ninja (which is spawn by CMake). | ||
- name: Build | ||
run: | | ||
cmake --build "${{ env.CMAKE_BUILD_DIR }}" |
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,54 @@ | ||
# https://github.com/openblack/bgfx.cmake/blob/master/.github/workflows/release.yml | ||
|
||
name: Release | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
job: | ||
name: ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- os: windows-latest | ||
- os: ubuntu-latest | ||
|
||
env: | ||
# Indicates the CMake build directory where project files and binaries are being produced. | ||
CMAKE_BUILD_DIR: ${{ github.workspace }}/build/ | ||
CMAKE_INSTALL_DIR: ${{ github.workspace }}/install/ | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: recursive | ||
- name: Install Linux dependencies | ||
run: | | ||
sudo apt install -y libgl1-mesa-dev | ||
if: matrix.os == 'ubuntu-latest' | ||
|
||
# Setup the build machine with the most recent versions of CMake and Ninja. Both are cached if not already: on subsequent runs both will be quickly restored from GitHub cache service. | ||
- uses: lukka/get-cmake@latest | ||
|
||
# On Windows runners, let's ensure to have the Developer Command Prompt environment setup correctly. As used here the Developer Command Prompt created is targeting x64 and using the default the Windows SDK. | ||
- uses: ilammy/msvc-dev-cmd@v1 | ||
|
||
# Run CMake to generate project files | ||
- name: Generate project files | ||
run: | | ||
cmake -B "${{ env.CMAKE_BUILD_DIR }}" -DCMAKE_INSTALL_PREFIX="${{ env.CMAKE_INSTALL_DIR }}" -DCMAKE_DEBUG_POSTFIX=d -DBGFX_BUILD_EXAMPLES=OFF -DBGFX_BUILD_TOOLS=ON -DBGFX_INSTALL=ON | ||
# Build the install targets | ||
- name: Build | ||
run: | | ||
cmake --build "${{ env.CMAKE_BUILD_DIR }}" --target install --config Debug | ||
cmake --build "${{ env.CMAKE_BUILD_DIR }}" --target install --config Release | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: ${{ matrix.os }} | ||
path: ${{ github.workspace }}/install/ |
This file was deleted.
Oops, something went wrong.
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
Submodule bgfx
updated
2437 files
Submodule bimg
updated
29 files
+1 −1 | .travis.yml | |
+0 −1 | 3rdparty/astc/astc_codec_internals.h | |
+1 −0 | 3rdparty/astc/astc_lib.cpp | |
+8 −8 | 3rdparty/astc/mathlib.cpp | |
+14 −14 | 3rdparty/astc/vectypes.h | |
+2 −2 | 3rdparty/nvtt/nvcore/nvcore.h | |
+2 −0 | 3rdparty/nvtt/nvcore/posh.h | |
+1 −1 | 3rdparty/nvtt/nvtt.cpp | |
+160 −54 | 3rdparty/stb/stb_image.h | |
+41 −17 | 3rdparty/stb/stb_image_write.h | |
+1 −1 | LICENSE | |
+2 −2 | README.md | |
+1 −1 | include/bimg/bimg.h | |
+1 −1 | include/bimg/decode.h | |
+1 −1 | include/bimg/encode.h | |
+21 −39 | makefile | |
+1 −1 | scripts/bimg.lua | |
+1 −1 | scripts/bimg_decode.lua | |
+14 −1 | scripts/bimg_encode.lua | |
+1 −1 | scripts/genie.lua | |
+2 −2 | scripts/texturec.lua | |
+1 −1 | src/bimg_p.h | |
+1 −1 | src/config.h | |
+5 −5 | src/image.cpp | |
+6 −4 | src/image_cubemap_filter.cpp | |
+56 −20 | src/image_decode.cpp | |
+1 −1 | src/image_encode.cpp | |
+1 −1 | src/image_gnf.cpp | |
+11 −12 | tools/texturec/texturec.cpp |
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
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,4 @@ | ||
#include "@BGFX_DIR@/src/shader.cpp" | ||
#include "@BGFX_DIR@/src/shader_dx9bc.cpp" | ||
#include "@BGFX_DIR@/src/shader_dxbc.cpp" | ||
#include "@BGFX_DIR@/src/shader_spirv.cpp" |
This file was deleted.
Oops, something went wrong.