Add "elfzip" target to make which creates a zip of all elf files, as mapzip does...
[maemo-rb.git] / firmware / export / rbpaths.h
bloba15c5aeedd7c273148ad49df6e2dfd1330a8ba71
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2010 Thomas Martitz
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
20 ****************************************************************************/
22 #ifndef __PATHS_H__
23 #define __PATHS_H__
25 #include <stdbool.h>
26 #include "autoconf.h"
27 #include "string-extra.h"
30 /* name of directory where configuration, fonts and other data
31 * files are stored */
32 #ifdef __PCTOOL__
33 #undef ROCKBOX_DIR
34 #undef ROCKBOX_DIR_LEN
35 #undef WPS_DIR
36 #define ROCKBOX_DIR "."
37 #define ROCKBOX_DIR_LEN 1
38 #else
40 /* ROCKBOX_DIR is now defined in autoconf.h for flexible build types */
41 #ifndef ROCKBOX_DIR
42 #error ROCKBOX_DIR not defined (should be in autoconf.h)
43 #endif
44 #define ROCKBOX_DIR_LEN (sizeof(ROCKBOX_DIR)-1)
45 #endif /* def __PCTOOL__ */
47 #ifndef APPLICATION
49 /* make sure both are the same for native builds */
50 #undef ROCKBOX_LIBRARY_PATH
51 #define ROCKBOX_LIBRARY_PATH ROCKBOX_DIR
53 #define PLUGIN_DIR ROCKBOX_DIR "/rocks"
54 #define CODECS_DIR ROCKBOX_DIR "/codecs"
56 #define REC_BASE_DIR "/"
57 #define PLAYLIST_CATALOG_DEFAULT_DIR "/Playlists"
59 #define paths_init()
60 #else /* application */
62 #define PLUGIN_DIR ROCKBOX_LIBRARY_PATH "/rockbox/rocks"
63 #define CODECS_DIR ROCKBOX_LIBRARY_PATH "/rockbox/codecs"
65 #define REC_BASE_DIR ROCKBOX_DIR "/"
66 #define PLAYLIST_CATALOG_DEFAULT_DIR ROCKBOX_DIR "/Playlists"
68 extern void paths_init(void);
70 #endif /* APPLICATION */
72 #define LANG_DIR ROCKBOX_DIR "/langs"
74 #define PLUGIN_GAMES_DIR PLUGIN_DIR "/games"
75 #define PLUGIN_APPS_DIR PLUGIN_DIR "/apps"
76 #define PLUGIN_DEMOS_DIR PLUGIN_DIR "/demos"
77 #define VIEWERS_DIR PLUGIN_DIR "/viewers"
80 #define WPS_DIR ROCKBOX_DIR "/wps"
81 #define SBS_DIR WPS_DIR
82 #define THEME_DIR ROCKBOX_DIR "/themes"
83 #define FONT_DIR ROCKBOX_DIR "/fonts"
84 #define ICON_DIR ROCKBOX_DIR "/icons"
86 #define BACKDROP_DIR ROCKBOX_DIR "/backdrops"
87 #define EQS_DIR ROCKBOX_DIR "/eqs"
89 /* need to fix this once the application gets record/radio abilities */
90 #define RECPRESETS_DIR ROCKBOX_DIR "/recpresets"
91 #define FMPRESET_PATH ROCKBOX_DIR "/fmpresets"
93 #define DIRCACHE_FILE ROCKBOX_DIR "/dircache.dat"
94 #define CODEPAGE_DIR ROCKBOX_DIR "/codepages"
96 #define VIEWERS_CONFIG ROCKBOX_DIR "/viewers.config"
97 #define CONFIGFILE ROCKBOX_DIR "/config.cfg"
98 #define FIXEDSETTINGSFILE ROCKBOX_DIR "/fixed.cfg"
100 #define PLAYLIST_CONTROL_FILE ROCKBOX_DIR "/.playlist_control"
101 #define NVRAM_FILE ROCKBOX_DIR "/nvram.bin"
102 #define GLYPH_CACHE_FILE ROCKBOX_DIR "/.glyphcache"
103 #endif /* __PATHS_H__ */