Fix android build using hardcoded path for data instead of using the one fetched by android api on init.
Fix android missing version informationpull/1535/head
parent
47abe25fe7
commit
b37bff72f1
|
@ -74,5 +74,10 @@
|
||||||
#define VERSION_EXTRA_STRING CMAKE_VERSION_EXTRA_STRING
|
#define VERSION_EXTRA_STRING CMAKE_VERSION_EXTRA_STRING
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __ANDROID__
|
||||||
|
#include "android_version.h"
|
||||||
|
#define VERSION_STRING CMAKE_VERSION_STRING
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -480,7 +480,7 @@ void initializePaths()
|
||||||
bindir + DIR_DELIM + ".." + DIR_DELIM + "share" + DIR_DELIM + PROJECT_NAME);
|
bindir + DIR_DELIM + ".." + DIR_DELIM + "share" + DIR_DELIM + PROJECT_NAME);
|
||||||
trylist.push_back(bindir + DIR_DELIM + "..");
|
trylist.push_back(bindir + DIR_DELIM + "..");
|
||||||
#ifdef __ANDROID__
|
#ifdef __ANDROID__
|
||||||
trylist.push_back(DIR_DELIM "sdcard" DIR_DELIM PROJECT_NAME);
|
trylist.push_back(path_user);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
for(std::list<std::string>::const_iterator i = trylist.begin();
|
for(std::list<std::string>::const_iterator i = trylist.begin();
|
||||||
|
@ -502,8 +502,6 @@ void initializePaths()
|
||||||
}
|
}
|
||||||
#ifndef __ANDROID__
|
#ifndef __ANDROID__
|
||||||
path_user = std::string(getenv("HOME")) + DIR_DELIM + "." + PROJECT_NAME;
|
path_user = std::string(getenv("HOME")) + DIR_DELIM + "." + PROJECT_NAME;
|
||||||
#else
|
|
||||||
path_user = std::string(DIR_DELIM "sdcard" DIR_DELIM PROJECT_NAME DIR_DELIM);
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue