1
0
Fork 0
This commit is contained in:
namedkitten 2020-05-07 22:53:15 +01:00
parent b11ef75c5a
commit a3774eae02
2 changed files with 15 additions and 1 deletions

View file

@ -33,11 +33,18 @@ pkg_check_modules(MPV REQUIRED mpv)
pkg_check_modules(X11 x11)
pkg_check_modules(Xext xext)
option(PINEPHONE "make pinephone settings h" OFF)
if(PINEPHONE)
add_definitions(-DPINEPHONE)
endif()
option(USE_EXTERNAL_SPDLOG "use external spdlog" OFF)
if(USE_EXTERNAL_SPDLOG)
include_directories(${EXTERNAL_SPDLOG_PATH}/include)
include_directories(${EXTERNAL_SPDLOG_PATH})
include_directories(/app)
else()
execute_process(
COMMAND git clone --depth 1 https://github.com/gabime/spdlog.git

View file

@ -82,11 +82,18 @@ int main(int argc, char* argv[])
bool ranFirstTimeSetup = settings.value("Setup/ranSetup", false).toBool();
#ifdef __linux__
bool pinephone;
#ifdef PINEPHONE
pinephone = true;
#else
pinephone = false;
#endif
// WARNING, THIS IS A BIG HACK
// this is only to make it so KittehPlayer works first try on pinephone.
// TODO: launch a opengl window or use offscreen to see if GL_ARB_framebuffer_object
// can be found
if (!(settings.value("Backend/disableSunxiCheck", false).toBool() || ranFirstTimeSetup)) {
if (!(settings.value("Backend/disableSunxiCheck", false).toBool() || ranFirstTimeSetup || pinephone)) {
FILE* fd = popen("grep sun[x8]i /proc/modules", "r");
char buf[16];
if (fread(buf, 1, sizeof(buf), fd) > 0) {