-
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.
Change-Id: I479fee683bb01320ffe1b6f5cc7137b70b77566f Signed-off-by: Romain Forlot <[email protected]>
- Loading branch information
Romain Forlot
committed
Jan 2, 2018
0 parents
commit 52a4a20
Showing
25 changed files
with
1,656 additions
and
0 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,17 @@ | ||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. |
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,47 @@ | ||
OpenEmbedded/Yocto software layer for video game system emulators | ||
============================================================ | ||
|
||
This layer provides video game system emulators recipes for | ||
use with OpenEmbedded and/or Yocto. | ||
|
||
|
||
Dependencies | ||
============ | ||
|
||
This layer depends on: | ||
|
||
URI: git://git.openembedded.org/openembedded-core | ||
layers: meta | ||
branch: master | ||
|
||
URI: git://git.openembedded.org/meta-openembedded | ||
layers: meta-oe | ||
branch: master | ||
|
||
|
||
Patches | ||
======= | ||
|
||
Please submit any patches against the meta-game-emulators layer | ||
to the maintainer. | ||
|
||
Maintainer: Romain Forlot <[email protected]> | ||
|
||
|
||
Adding the meta-game-emulators layer to your build | ||
================================================= | ||
|
||
In order to use this layer, you need to make the build system aware of | ||
it. | ||
|
||
Assuming the meta-game-emulators layer exists at the top-level of your | ||
yocto build tree, you can add it to the build system by adding the | ||
location of the meta-game-emulators layer to bblayers.conf, along with any | ||
other layers needed. e.g.: | ||
|
||
BBLAYERS ?= " \ | ||
/path/to/yocto/meta \ | ||
/path/to/yocto/meta-yocto \ | ||
/path/to/yocto/meta-yocto-bsp \ | ||
/path/to/yocto/meta-libretro \ | ||
" |
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,8 @@ | ||
If you want to colaborate, create a recipe to compile a new libretro core e | ||
mulator. | ||
|
||
A good list of emulators is available here: | ||
https://github.com/libretro/ | ||
|
||
Please let me know if you are working on a recipe for a new emulator, | ||
sending an e-mail to [email protected] |
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,14 @@ | ||
# Distribution definition for: poky-emulators | ||
# | ||
# Copyright (c) 2014, Embedded Labworks. | ||
# All rights reserved. | ||
# | ||
# This file is released under the MIT license as described in | ||
# COPYING.MIT. | ||
# | ||
|
||
require conf/distro/poky.conf | ||
|
||
DISTRO = "poky-emulators" | ||
|
||
DISTRO_FEATURES_append = " directfb opengl x11 alsa" |
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,14 @@ | ||
# We have a conf and classes directory, add to BBPATH | ||
BBPATH .= ":${LAYERDIR}" | ||
|
||
# We have recipes-* directories, add to BBFILES | ||
BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \ | ||
${LAYERDIR}/recipes-*/*/*.bbappend" | ||
|
||
BBFILE_COLLECTIONS += "meta-libretro" | ||
BBFILE_PATTERN_meta-libretro = "^${LAYERDIR}/" | ||
BBFILE_PRIORITY_meta-libretro = "6" | ||
|
||
LAYERVERSION_meta-libretro = "1" | ||
LAYERDEPENDS_meta-libretro = "core openembedded-layer" | ||
|
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,13 @@ | ||
diff --git a/configure.in b/configure.in | ||
index b901d8c33b1d..71ed4e40b352 100644 | ||
--- a/configure.in | ||
+++ b/configure.in | ||
@@ -115,7 +115,7 @@ HaveSDLImage() | ||
{ | ||
SDLIMAGE="yes" | ||
SDL_LIBS="$SDL_LIBS -lSDL_image" | ||
- CPPFLAGS="$CPPFLAGS `sdl-config --cflags`" | ||
+ CPPFLAGS="$CPPFLAGS `pkg-config sdl --cflags`" | ||
} | ||
|
||
ForceSDLImage() |
81 changes: 81 additions & 0 deletions
81
recipes-graphics/guichan/guichan/fixes-crash-no-focushandler-set.patch
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,81 @@ | ||
From 1a727941539e7ed4376dc8194cb4988961c86340 Mon Sep 17 00:00:00 2001 | ||
From: Arnaud Loonstra <[email protected]> | ||
Date: Sun, 18 Jan 2015 14:55:36 +0100 | ||
Subject: [PATCH 1/1] fixes for causing a crash with uae4all: No focushandler | ||
set (did you add the widget to the gui?). see reference: | ||
http://www.raspberrypi.org/forums/viewtopic.php?p=653405#p653405 | ||
|
||
--- | ||
src/widget.cpp | 12 +++++++----- | ||
src/widgets/tabbedarea.cpp | 4 ++++ | ||
2 files changed, 11 insertions(+), 5 deletions(-) | ||
|
||
diff --git a/src/widget.cpp b/src/widget.cpp | ||
index 7dfc7e10d5b1..97978a7ace1e 100644 | ||
--- a/src/widget.cpp | ||
+++ b/src/widget.cpp | ||
@@ -269,7 +269,7 @@ namespace gcn | ||
{ | ||
if (mFocusHandler == NULL) | ||
{ | ||
- throw GCN_EXCEPTION("No focushandler set (did you add the widget to the gui?)."); | ||
+ throw GCN_EXCEPTION("No focushandler set (requestFocus: did you add the widget to the gui?)."); | ||
} | ||
|
||
if (isFocusable()) | ||
@@ -558,7 +558,7 @@ namespace gcn | ||
{ | ||
if (mFocusHandler == NULL) | ||
{ | ||
- throw GCN_EXCEPTION("No focushandler set (did you add the widget to the gui?)."); | ||
+ throw GCN_EXCEPTION("No focushandler set (requestModalFocus: did you add the widget to the gui?)."); | ||
} | ||
|
||
mFocusHandler->requestModalFocus(this); | ||
@@ -568,7 +568,7 @@ namespace gcn | ||
{ | ||
if (mFocusHandler == NULL) | ||
{ | ||
- throw GCN_EXCEPTION("No focushandler set (did you add the widget to the gui?)."); | ||
+ throw GCN_EXCEPTION("No focushandler set (requestModalMouseInputFocus: did you add the widget to the gui?)."); | ||
} | ||
|
||
mFocusHandler->requestModalMouseInputFocus(this); | ||
@@ -598,7 +598,8 @@ namespace gcn | ||
{ | ||
if (mFocusHandler == NULL) | ||
{ | ||
- throw GCN_EXCEPTION("No focushandler set (did you add the widget to the gui?)."); | ||
+ return false; | ||
+ //throw GCN_EXCEPTION("No focushandler set (isModalFocused: did you add the widget to the gui?)."); | ||
} | ||
|
||
if (getParent() != NULL) | ||
@@ -614,7 +615,8 @@ namespace gcn | ||
{ | ||
if (mFocusHandler == NULL) | ||
{ | ||
- throw GCN_EXCEPTION("No focushandler set (did you add the widget to the gui?)."); | ||
+ return false; | ||
+ //throw GCN_EXCEPTION("No focushandler set (isModalMouseInputFocused: did you add the widget to the gui?)."); | ||
} | ||
|
||
if (getParent() != NULL) | ||
diff --git a/src/widgets/tabbedarea.cpp b/src/widgets/tabbedarea.cpp | ||
index e07d14c4d718..5ed9d39ba41c 100644 | ||
--- a/src/widgets/tabbedarea.cpp | ||
+++ b/src/widgets/tabbedarea.cpp | ||
@@ -317,6 +317,10 @@ namespace gcn | ||
|
||
void TabbedArea::logic() | ||
{ | ||
+ for (unsigned int i = 0; i < mTabs.size(); i++) | ||
+ { | ||
+ mTabs[i].second->logic(); | ||
+ } | ||
} | ||
|
||
void TabbedArea::adjustSize() | ||
-- | ||
1.9.1 | ||
|
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,20 @@ | ||
SUMMARY = "Guichan is a C++ GUI library designed for games." | ||
HOMEPAGE = "http://guichan.sourceforge.net" | ||
SECTION = "libs" | ||
|
||
LICENSE = "BSD-3-Clause" | ||
LIC_FILES_CHKSUM = "file://COPYING;md5=42944e670bc8ebf3eed9929739cc39db" | ||
|
||
SRC_URI = "git://gitorious.org/guichan/mainline.git;protocol=https \ | ||
file://configure_sdl.patch \ | ||
file://fixes-crash-no-focushandler-set.patch" | ||
|
||
SRCREV = "fc9e3a0f76fbab229af457f0f113159425c27fcf" | ||
|
||
S = "${WORKDIR}/git" | ||
|
||
DEPENDS = "libsdl libsdl-gfx" | ||
|
||
EXTRA_OECONF += "--enable-force-sdl" | ||
|
||
inherit autotools pkgconfig |
Oops, something went wrong.