1 /*
2 * Separate the inkscape paths from the prefix code, as that is kind of
3 * a separate package (binreloc)
4 * http://autopackage.org/downloads.html
5 *
6 * Since the directories set up by autoconf end up in config.h, we can't
7 * _change_ them, since config.h isn't protected by a set of
8 * one-time-include directives and is repeatedly re-included by some
9 * chains of .h files. As a result, nothing should refer to those
10 * define'd directories, and instead should use only the paths defined here.
11 *
12 */
13 #ifndef _PATH_PREFIX_H_
14 #define _PATH_PREFIX_H_
16 #include "require-config.h" // INKSCAPE_DATADIR
17 #include "prefix.h"
19 #ifdef __cplusplus
20 extern "C" {
21 #endif /* __cplusplus */
23 #ifdef ENABLE_BINRELOC
24 # define INKSCAPE_APPICONDIR BR_DATADIR( "/pixmaps" )
25 # define INKSCAPE_EXTENSIONDIR BR_DATADIR( "/inkscape/extensions" )
26 # define INKSCAPE_GRADIENTSDIR BR_DATADIR( "/inkscape/gradients" )
27 # define INKSCAPE_PIXMAPDIR BR_DATADIR( "/inkscape/icons" )
28 # define INKSCAPE_MARKERSDIR BR_DATADIR( "/inkscape/markers" )
29 # define INKSCAPE_PALETTESDIR BR_DATADIR( "/inkscape/palettes" )
30 # define INKSCAPE_PATTERNSDIR BR_DATADIR( "/inkscape/patterns" )
31 # define INKSCAPE_SCREENSDIR BR_DATADIR( "/inkscape/screens" )
32 # define INKSCAPE_TUTORIALSDIR BR_DATADIR( "/inkscape/tutorials" )
33 # define INKSCAPE_PLUGINDIR BR_LIBDIR( "/inkscape/plugins" )
34 # define INKSCAPE_TEMPLATESDIR BR_DATADIR( "/inkscape/templates" )
35 # define INKSCAPE_UIDIR BR_DATADIR( "/inkscape/ui" )
36 #else
37 # ifdef WIN32
38 # define INKSCAPE_APPICONDIR "pixmaps"
39 # define INKSCAPE_EXTENSIONDIR "share\\extensions"
40 # define INKSCAPE_GRADIENTSDIR "share\\gradients"
41 # define INKSCAPE_PIXMAPDIR "share\\icons"
42 # define INKSCAPE_MARKERSDIR "share\\markers"
43 # define INKSCAPE_PALETTESDIR "share\\palettes"
44 # define INKSCAPE_PATTERNSDIR "share\\patterns"
45 # define INKSCAPE_SCREENSDIR "share\\screens"
46 # define INKSCAPE_TUTORIALSDIR "share\\tutorials"
47 # define INKSCAPE_PLUGINDIR "plugins"
48 # define INKSCAPE_TEMPLATESDIR "share\\templates"
49 # define INKSCAPE_UIDIR INKSCAPE_DATADIR "\\share\\ui"
50 # elif defined ENABLE_OSX_APP_LOCATIONS
51 # define INKSCAPE_APPICONDIR "Contents/Resources/pixmaps"
52 # define INKSCAPE_EXTENSIONDIR "Contents/Resources/extensions"
53 # define INKSCAPE_GRADIENTSDIR "Contents/Resources/gradients"
54 # define INKSCAPE_PIXMAPDIR "Contents/Resources/icons"
55 # define INKSCAPE_MARKERSDIR "Contents/Resources/markers"
56 # define INKSCAPE_PALETTESDIR "Contents/Resources/palettes"
57 # define INKSCAPE_PATTERNSDIR "Contents/Resources/patterns"
58 # define INKSCAPE_SCREENSDIR "Contents/Resources/screens"
59 # define INKSCAPE_TUTORIALSDIR "Contents/Resources/tutorials"
60 # define INKSCAPE_PLUGINDIR "Contents/Resources/plugins"
61 # define INKSCAPE_TEMPLATESDIR "Contents/Resources/templates"
62 # define INKSCAPE_UIDIR "Contents/Resources/ui"
63 # else
64 # define INKSCAPE_APPICONDIR INKSCAPE_DATADIR "/pixmaps"
65 # define INKSCAPE_EXTENSIONDIR INKSCAPE_DATADIR "/inkscape/extensions"
66 # define INKSCAPE_GRADIENTSDIR INKSCAPE_DATADIR "/inkscape/gradients"
67 # define INKSCAPE_PIXMAPDIR INKSCAPE_DATADIR "/inkscape/icons"
68 # define INKSCAPE_MARKERSDIR INKSCAPE_DATADIR "/inkscape/markers"
69 # define INKSCAPE_PALETTESDIR INKSCAPE_DATADIR "/inkscape/palettes"
70 # define INKSCAPE_PATTERNSDIR INKSCAPE_DATADIR "/inkscape/patterns"
71 # define INKSCAPE_SCREENSDIR INKSCAPE_DATADIR "/inkscape/screens"
72 # define INKSCAPE_TUTORIALSDIR INKSCAPE_DATADIR "/inkscape/tutorials"
73 # define INKSCAPE_PLUGINDIR INKSCAPE_LIBDIR "/inkscape/plugins"
74 # define INKSCAPE_TEMPLATESDIR INKSCAPE_DATADIR "/inkscape/templates"
75 # define INKSCAPE_UIDIR INKSCAPE_DATADIR "/inkscape/ui"
76 # endif
77 #endif
79 #ifdef __cplusplus
80 }
81 #endif /* __cplusplus */
83 #endif /* _PATH_PREFIX_H_ */