Skip to content

Commit b83bd71

Browse files
committed
Merge commit '188671a92431c163b28f8d3af730adf46153ad1e' as 'third_party/Sameboy'
2 parents 8081312 + 188671a commit b83bd71

File tree

293 files changed

+57062
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

293 files changed

+57062
-0
lines changed

third_party/Sameboy/.gitattributes

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Always use LF line endings for shaders
2+
*.fsh text eol=lf
3+
*.metal text eol=lf
4+
5+
HexFiend/* linguist-vendored
6+
*.inc linguist-language=C
7+
Core/*.h linguist-language=C
8+
SDL/*.h linguist-language=C
9+
Windows/*.h linguist-language=C
10+
Cocoa/*.h linguist-language=Objective-C
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
Blargg's Test ROMs by Shay Green <[email protected]>
2+
3+
Acid2 tests by Matt Currie under MIT:
4+
5+
MIT License
6+
7+
Copyright (c) 2020 Matt Currie
8+
9+
Permission is hereby granted, free of charge, to any person obtaining a copy
10+
of this software and associated documentation files (the "Software"), to deal
11+
in the Software without restriction, including without limitation the rights
12+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13+
copies of the Software, and to permit persons to whom the Software is
14+
furnished to do so, subject to the following conditions:
15+
16+
The above copyright notice and this permission notice shall be included in all
17+
copies or substantial portions of the Software.
18+
19+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25+
SOFTWARE.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
case `echo $1 | cut -d '-' -f 1` in
2+
ubuntu)
3+
sudo apt-get -qq update
4+
sudo apt-get install -yq bison libpng-dev pkg-config libsdl2-dev
5+
(
6+
cd `mktemp -d`
7+
curl -L https://github.com/rednex/rgbds/archive/v0.4.0.zip > rgbds.zip
8+
unzip rgbds.zip
9+
cd rgbds-*
10+
make -sj
11+
sudo make install
12+
cd ..
13+
rm -rf *
14+
)
15+
;;
16+
macos)
17+
brew install rgbds sdl2
18+
;;
19+
*)
20+
echo "Unsupported OS"
21+
exit 1
22+
;;
23+
esac
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
set -e
2+
3+
./build/bin/tester/sameboy_tester --jobs 5 \
4+
--length 40 .github/actions/cgb_sound.gb \
5+
--length 10 .github/actions/cgb-acid2.gbc \
6+
--length 10 .github/actions/dmg-acid2.gb \
7+
--dmg --length 40 .github/actions/dmg_sound-2.gb \
8+
--dmg --length 20 .github/actions/oam_bug-2.gb
9+
10+
mv .github/actions/dmg{,-mode}-acid2.bmp
11+
12+
./build/bin/tester/sameboy_tester \
13+
--dmg --length 10 .github/actions/dmg-acid2.gb
14+
15+
set +e
16+
17+
FAILED_TESTS=`
18+
shasum .github/actions/*.bmp | grep -q -E -v \(\
19+
44ce0c7d49254df0637849c9155080ac7dc3ef3d\ \ .github/actions/cgb-acid2.bmp\|\
20+
dbcc438dcea13b5d1b80c5cd06bda2592cc5d9e0\ \ .github/actions/cgb_sound.bmp\|\
21+
0caadf9634e40247ae9c15ff71992e8f77bbf89e\ \ .github/actions/dmg-acid2.bmp\|\
22+
c50daed36c57a8170ff362042694786676350997\ \ .github/actions/dmg-mode-acid2.bmp\|\
23+
c9e944b7e01078bdeba1819bc2fa9372b111f52d\ \ .github/actions/dmg_sound-2.bmp\|\
24+
f0172cc91867d3343fbd113a2bb98100074be0de\ \ .github/actions/oam_bug-2.bmp\
25+
\)`
26+
27+
if [ -n "$FAILED_TESTS" ] ; then
28+
echo "Failed the following tests:"
29+
echo $FAILED_TESTS | tr " " "\n" | grep -q -o -E "[^/]+\.bmp" | sed s/.bmp// | sort
30+
exit 1
31+
fi
32+
33+
echo Passed all tests
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: "Bulidability and Sanity"
2+
on: push
3+
4+
jobs:
5+
sanity:
6+
strategy:
7+
fail-fast: false
8+
matrix:
9+
os: [macos-latest, ubuntu-latest, ubuntu-16.04]
10+
cc: [gcc, clang]
11+
include:
12+
- os: macos-latest
13+
cc: clang
14+
extra_target: cocoa
15+
exclude:
16+
- os: macos-latest
17+
cc: gcc
18+
runs-on: ${{ matrix.os }}
19+
steps:
20+
- uses: actions/checkout@v2
21+
- name: Install deps
22+
shell: bash
23+
run: |
24+
./.github/actions/install_deps.sh ${{ matrix.os }}
25+
- name: Build
26+
run: |
27+
${{ matrix.cc }} -v; (make -j sdl tester libretro ${{ matrix.extra_target }} CONF=release CC=${{ matrix.cc }} || (echo "==== Build Failed ==="; make sdl tester libretro ${{ matrix.extra_target }} CONF=release CC=${{ matrix.cc }}))
28+
- name: Sanity tests
29+
shell: bash
30+
run: |
31+
./.github/actions/sanity_tests.sh
32+
- name: Upload binaries
33+
uses: actions/upload-artifact@v1
34+
with:
35+
name: sameboy-canary-${{ matrix.os }}-${{ matrix.cc }}
36+
path: build/bin

third_party/Sameboy/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
build
479 Bytes
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
AGB EQU 1
2+
include "cgb_boot.asm"

0 commit comments

Comments
 (0)