Fix missing shader cache path

This commit is contained in:
Leith Bade
2014-12-08 20:20:16 +11:00
parent 0487b0c6a3
commit d623c264f7
2 changed files with 14 additions and 0 deletions

View File

@@ -31,6 +31,7 @@
},
'sources': [
'../platform/android/cache_database_data.cpp',
'../platform/android/shader_cache_data.cpp',
'../platform/android/log_android.cpp',
'../platform/android/asset_request_baton_libzip.cpp',
'../platform/default/string_stdlib.cpp',

View File

@@ -0,0 +1,13 @@
#include <mbgl/platform/platform.hpp>
#include <mbgl/android/jni.hpp>
namespace mbgl {
namespace platform {
// Returns the path to the default shader cache on this system.
std::string defaultShaderCache() {
return mbgl::android::cachePath + "/mbgl-shader-cache-";
}
}
}