[DEV] base test for mac dev
This commit is contained in:
parent
4ffe6c3427
commit
7ef816f50c
@ -141,31 +141,53 @@ void etk::InitDefaultFolder(const char * applName)
|
||||
TK_DBG_MODE("Find Basic running PATH : \"" << baseRunPath << "\"");
|
||||
|
||||
#ifndef __TARGET_OS__Android
|
||||
#ifdef __TARGET_OS__MacOs
|
||||
#ifdef MODE_RELEASE
|
||||
baseFolderData = "/usr/share/";
|
||||
#else
|
||||
if (!getcwd(cCurrentPath, FILENAME_MAX)) {
|
||||
baseFolderData = ".";
|
||||
} else {
|
||||
cCurrentPath[FILENAME_MAX - 1] = '\0';
|
||||
baseFolderData = cCurrentPath;
|
||||
}
|
||||
baseFolderData += "/out/MacOs/debug/staging/Resources/";
|
||||
#endif
|
||||
|
||||
#ifdef MODE_RELEASE
|
||||
baseFolderData = "/usr/share/";
|
||||
baseFolderDataUser = baseFolderHome;
|
||||
baseFolderDataUser += "/.local/share/";
|
||||
baseFolderDataUser += baseApplName;
|
||||
baseFolderDataUser += "/";
|
||||
|
||||
baseFolderCache = "/tmp/";
|
||||
baseFolderCache += baseApplName;
|
||||
baseFolderCache += "/";
|
||||
#else
|
||||
if (!getcwd(cCurrentPath, FILENAME_MAX)) {
|
||||
baseFolderData = ".";
|
||||
} else {
|
||||
cCurrentPath[FILENAME_MAX - 1] = '\0';
|
||||
baseFolderData = cCurrentPath;
|
||||
}
|
||||
baseFolderData += "/out/Linux/debug/staging/";
|
||||
#ifdef MODE_RELEASE
|
||||
baseFolderData = "/usr/share/";
|
||||
#else
|
||||
if (!getcwd(cCurrentPath, FILENAME_MAX)) {
|
||||
baseFolderData = ".";
|
||||
} else {
|
||||
cCurrentPath[FILENAME_MAX - 1] = '\0';
|
||||
baseFolderData = cCurrentPath;
|
||||
}
|
||||
baseFolderData += "/out/Linux/debug/staging/";
|
||||
baseFolderData += baseApplName;
|
||||
baseFolderData += "/usr/share/";
|
||||
#endif
|
||||
baseFolderData += baseApplName;
|
||||
baseFolderData += "/usr/share/";
|
||||
baseFolderData += "/";
|
||||
|
||||
baseFolderDataUser = baseFolderHome;
|
||||
baseFolderDataUser += "/.local/share/";
|
||||
baseFolderDataUser += baseApplName;
|
||||
baseFolderDataUser += "/";
|
||||
|
||||
baseFolderCache = "/tmp/";
|
||||
baseFolderCache += baseApplName;
|
||||
baseFolderCache += "/";
|
||||
#endif
|
||||
baseFolderData += baseApplName;
|
||||
baseFolderData += "/";
|
||||
|
||||
baseFolderDataUser = baseFolderHome;
|
||||
baseFolderDataUser += "/.local/share/";
|
||||
baseFolderDataUser += baseApplName;
|
||||
baseFolderDataUser += "/";
|
||||
|
||||
baseFolderCache = "/tmp/";
|
||||
baseFolderCache += baseApplName;
|
||||
baseFolderCache += "/";
|
||||
#endif
|
||||
#ifdef MODE_RELEASE
|
||||
if (strncmp("ewolApplNoName",applName, 256) != 0) {
|
||||
|
@ -15,7 +15,9 @@
|
||||
#include <string.h>
|
||||
#include <assert.h>
|
||||
|
||||
|
||||
#ifdef __TARGET_OS__MacOs
|
||||
#include <stdint.h>
|
||||
#else
|
||||
#ifndef __int8_t_defined
|
||||
# define __int8_t_defined
|
||||
typedef signed char int8_t;
|
||||
@ -35,6 +37,7 @@
|
||||
typedef unsigned long long int uint64_t;
|
||||
# endif
|
||||
#endif
|
||||
#endif
|
||||
typedef uint32_t uniChar_t;
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user