Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Raspberry Pi: Working on a native OpenGL ES 2.0 build
- Loading branch information
Showing
13 changed files
with
238 additions
and
100 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
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 @@ | ||
# Raspberry Pi (no X11) | ||
include (PlatformGenericUnix) | ||
|
||
set (RASPBERRYPI YES) | ||
set (DE_PLATFORM_SUFFIX raspi) | ||
set (DE_AMETHYST_PLATFORM UNIX) | ||
|
||
set (DE_BASE_DIR "" CACHE STRING "Base directory path (defaults to {prefix}/${DE_INSTALL_DATA_DIR})") | ||
set (DE_LIBRARY_DIR "" CACHE STRING "Plugin directory path (defaults to {prefix}/${DE_INSTALL_PLUGIN_DIR})") | ||
|
||
add_definitions ( | ||
-DDE_RASPBERRYPI | ||
-D__USE_BSD | ||
-D_GNU_SOURCE=1 | ||
-DDE_PLATFORM_ID="source" | ||
) | ||
|
||
if (CMAKE_COMPILER_IS_GNUCXX) | ||
set (cxxOpts | ||
-Wno-psabi | ||
) | ||
foreach (cxxOpt ${cxxOpts}) | ||
append_unique (CMAKE_CXX_FLAGS ${cxxOpt}) | ||
endforeach (cxxOpt) | ||
|
||
# The tree FRE optimization causes crashes with GCC 6 (Yakkety). | ||
append_unique (CMAKE_CXX_FLAGS_RELEASE -fno-tree-fre) | ||
append_unique (CMAKE_CXX_FLAGS_RELWITHDEBINFO -fno-tree-fre) | ||
append_unique (CMAKE_CXX_FLAGS_MINSIZEREL -fno-tree-fre) | ||
endif () | ||
|
||
# All symbols are hidden by default. | ||
append_unique (CMAKE_C_FLAGS "-fvisibility=hidden") | ||
append_unique (CMAKE_CXX_FLAGS "-fvisibility=hidden") | ||
|
||
# Broadcom Videocore IV OpenGL ES library. | ||
if (NOT TARGET bcm) | ||
add_library (bcm INTERFACE) | ||
target_link_libraries (bcm INTERFACE | ||
-L/opt/vc/lib | ||
/opt/vc/lib/libGLESv2_static.a | ||
brcmEGL | ||
brcmGLESv2 | ||
vcos | ||
m | ||
) | ||
endif () |
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
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
2 changes: 1 addition & 1 deletion
2
...y/libs/gui/src/dialogs/filedialog_x11.cpp → ...bs/gui/src/dialogs/filedialog_generic.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
Oops, something went wrong.