mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-21 18:57:16 +08:00
app module support for simlator, first version
This commit is contained in:
@@ -6,6 +6,8 @@ src = Glob('*.c')
|
||||
# remove no need file.
|
||||
if GetDepend('RT_USING_DFS_WINSHAREDIR') == False:
|
||||
SrcRemove(src, 'dfs_win32.c')
|
||||
if GetDepend('RT_USING_MODULE') == False:
|
||||
SrcRemove(src, ['module_win32.c'])
|
||||
CPPPATH = [cwd, str(Dir('#'))]
|
||||
|
||||
group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH)
|
||||
|
||||
@@ -148,6 +148,14 @@ static char *winpath_dirdup(char *des, const char *src)
|
||||
return path;
|
||||
}
|
||||
|
||||
/* This function can convert the path in rt-thread/dfs to the path in windows */
|
||||
char * dfs_win32_dirdup(char * path)
|
||||
{
|
||||
char * file_path;
|
||||
file_path = winpath_dirdup(WIN32_DIRDISK_ROOT, path);
|
||||
return file_path;
|
||||
}
|
||||
|
||||
static int dfs_win32_open(struct dfs_fd *file)
|
||||
{
|
||||
int fd;
|
||||
|
||||
Reference in New Issue
Block a user