~danieljabailey/inkscape/arc_node_editor

1 by mental
moving trunk for module inkscape
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
 */
13341.1.190 by Liam P. White
Header cleanup: stop using Glib types where they aren't truly needed. Eases GThread deprecation errors.
13
#ifndef SEEN_PATH_PREFIX_H
14
#define SEEN_PATH_PREFIX_H
1 by mental
moving trunk for module inkscape
15
16
#include "require-config.h"  // INKSCAPE_DATADIR
17
#include "prefix.h"
18
13341.1.190 by Liam P. White
Header cleanup: stop using Glib types where they aren't truly needed. Eases GThread deprecation errors.
19
//#ifdef __cplusplus
20
//extern "C" {
21
//#endif /* __cplusplus */
1 by mental
moving trunk for module inkscape
22
23
#ifdef ENABLE_BINRELOC
24
#  define INKSCAPE_APPICONDIR     BR_DATADIR( "/pixmaps" )
10753 by tavmjong-free
Add possibility to check validity of attributes and usefulness of properties.
25
#  define INKSCAPE_ATTRRELDIR     BR_DATADIR( "/inkscape/attributes" )
5268 by ishmal
Change INKSCAPE_JAVADIR to INKSCAPE_BINDDIR so that we can have subdirs for each language supported
26
#  define INKSCAPE_BINDDIR        BR_DATADIR( "/inkscape/bind" )
2786 by buliabyak
allow easy access to our examples folder from Open dialog
27
#  define INKSCAPE_EXAMPLESDIR    BR_DATADIR( "/inkscape/examples" )
1 by mental
moving trunk for module inkscape
28
#  define INKSCAPE_EXTENSIONDIR   BR_DATADIR( "/inkscape/extensions" )
5522 by gouldtj
r19136@shi: ted | 2008-04-24 19:44:01 -0700
29
#  define INKSCAPE_FILTERDIR      BR_DATADIR( "/inkscape/filters" )
1 by mental
moving trunk for module inkscape
30
#  define INKSCAPE_GRADIENTSDIR   BR_DATADIR( "/inkscape/gradients" )
436 by mental
introduce uniform resource path API to replace copy-and-pasted hacks
31
#  define INKSCAPE_KEYSDIR        BR_DATADIR( "/inkscape/keys" )
1 by mental
moving trunk for module inkscape
32
#  define INKSCAPE_PIXMAPDIR      BR_DATADIR( "/inkscape/icons" )
33
#  define INKSCAPE_MARKERSDIR     BR_DATADIR( "/inkscape/markers" )
34
#  define INKSCAPE_PALETTESDIR    BR_DATADIR( "/inkscape/palettes" )
35
#  define INKSCAPE_PATTERNSDIR    BR_DATADIR( "/inkscape/patterns" )
36
#  define INKSCAPE_SCREENSDIR     BR_DATADIR( "/inkscape/screens" )
11782 by tavmjong-free
Add symbols dialog. See: http://wiki.inkscape.org/wiki/index.php/SymbolsDialog
37
#  define INKSCAPE_SYMBOLSDIR     BR_DATADIR( "/inkscape/symbols" )
14479 by insaner
window/task bar icon missing when installed in non-standard location
38
#  define INKSCAPE_THEMEDIR       BR_DATADIR( "/icons" )
1 by mental
moving trunk for module inkscape
39
#  define INKSCAPE_TUTORIALSDIR   BR_DATADIR( "/inkscape/tutorials" )
40
#  define INKSCAPE_TEMPLATESDIR   BR_DATADIR( "/inkscape/templates" )
41
#  define INKSCAPE_UIDIR          BR_DATADIR( "/inkscape/ui" )
588 by verbalshadow
Added beginnings of CREATE support in path-prefix.h
42
//CREATE V0.1 support
5033 by joncruz
Adding OS X path
43
#    define CREATE_GRADIENTSDIR   BR_DATADIR( "/create/gradients/gimp" )
588 by verbalshadow
Added beginnings of CREATE support in path-prefix.h
44
#    define CREATE_PALETTESDIR    BR_DATADIR( "/create/swatches" )
45
#    define CREATE_PATTERNSDIR    BR_DATADIR( "/create/patterns/vector" )
1 by mental
moving trunk for module inkscape
46
#else
47
#  ifdef WIN32
5762 by ishmal
Create a new macro in path-prefix.h, WIN32_DATADIR, that works similarly to BR_DATADIR. This should solve the "current directory" problems. This is a temporary fix.
48
#    define INKSCAPE_APPICONDIR   WIN32_DATADIR("pixmaps")
10755 by Johan Engelen
fix typo to repair build on windows
49
#    define INKSCAPE_ATTRRELDIR   WIN32_DATADIR("share\\attributes")
5762 by ishmal
Create a new macro in path-prefix.h, WIN32_DATADIR, that works similarly to BR_DATADIR. This should solve the "current directory" problems. This is a temporary fix.
50
#    define INKSCAPE_BINDDIR      WIN32_DATADIR("share\\bind")
51
#    define INKSCAPE_EXAMPLESDIR  WIN32_DATADIR("share\\examples")
52
#    define INKSCAPE_EXTENSIONDIR WIN32_DATADIR("share\\extensions")
53
#    define INKSCAPE_FILTERDIR    WIN32_DATADIR("share\\filters")
54
#    define INKSCAPE_GRADIENTSDIR WIN32_DATADIR("share\\gradients")
55
#    define INKSCAPE_KEYSDIR      WIN32_DATADIR("share\\keys")
56
#    define INKSCAPE_PIXMAPDIR    WIN32_DATADIR("share\\icons")
57
#    define INKSCAPE_MARKERSDIR   WIN32_DATADIR("share\\markers")
58
#    define INKSCAPE_PALETTESDIR  WIN32_DATADIR("share\\palettes")
59
#    define INKSCAPE_PATTERNSDIR  WIN32_DATADIR("share\\patterns")
60
#    define INKSCAPE_SCREENSDIR   WIN32_DATADIR("share\\screens")
11782 by tavmjong-free
Add symbols dialog. See: http://wiki.inkscape.org/wiki/index.php/SymbolsDialog
61
#    define INKSCAPE_SYMBOLSDIR   WIN32_DATADIR("share\\symbols")
5762 by ishmal
Create a new macro in path-prefix.h, WIN32_DATADIR, that works similarly to BR_DATADIR. This should solve the "current directory" problems. This is a temporary fix.
62
#    define INKSCAPE_TUTORIALSDIR WIN32_DATADIR("share\\tutorials")
63
#    define INKSCAPE_TEMPLATESDIR WIN32_DATADIR("share\\templates")
64
#    define INKSCAPE_UIDIR        WIN32_DATADIR("share\\ui")
588 by verbalshadow
Added beginnings of CREATE support in path-prefix.h
65
//CREATE V0.1  WIN32 support
5762 by ishmal
Create a new macro in path-prefix.h, WIN32_DATADIR, that works similarly to BR_DATADIR. This should solve the "current directory" problems. This is a temporary fix.
66
#    define CREATE_GRADIENTSDIR   WIN32_DATADIR("create\\gradients\\gimp")
67
#    define CREATE_PALETTESDIR    WIN32_DATADIR("create\\swatches")
68
#    define CREATE_PATTERNSDIR    WIN32_DATADIR("create\\patterns\\vector")
1 by mental
moving trunk for module inkscape
69
#  elif defined ENABLE_OSX_APP_LOCATIONS
13506.1.26 by ~suv
Reorg Resources folder: move inkscape's shared resources into Resources/share/inkscape
70
#    define INKSCAPE_APPICONDIR   "Contents/Resources/share/pixmaps"
71
#    define INKSCAPE_ATTRRELDIR   "Contents/Resources/share/inkscape/attributes"
72
#    define INKSCAPE_BINDDIR      "Contents/Resources/share/inkscape/bind"
73
#    define INKSCAPE_EXAMPLESDIR  "Contents/Resources/share/inkscape/examples"
74
#    define INKSCAPE_EXTENSIONDIR "Contents/Resources/share/inkscape/extensions"
75
#    define INKSCAPE_FILTERDIR    "Contents/Resources/share/inkscape/filters"
76
#    define INKSCAPE_GRADIENTSDIR "Contents/Resources/share/inkscape/gradients"
77
#    define INKSCAPE_KEYSDIR      "Contents/Resources/share/inkscape/keys"
78
#    define INKSCAPE_PIXMAPDIR    "Contents/Resources/share/inkscape/icons"
79
#    define INKSCAPE_MARKERSDIR   "Contents/Resources/share/inkscape/markers"
80
#    define INKSCAPE_PALETTESDIR  "Contents/Resources/share/inkscape/palettes"
81
#    define INKSCAPE_PATTERNSDIR  "Contents/Resources/share/inkscape/patterns"
82
#    define INKSCAPE_SCREENSDIR   "Contents/Resources/share/inkscape/screens"
83
#    define INKSCAPE_SYMBOLSDIR   "Contents/Resources/share/inkscape/symbols"
84
#    define INKSCAPE_TUTORIALSDIR "Contents/Resources/share/inkscape/tutorials"
85
#    define INKSCAPE_TEMPLATESDIR "Contents/Resources/share/inkscape/templates"
86
#    define INKSCAPE_UIDIR        "Contents/Resources/share/inkscape/ui"
588 by verbalshadow
Added beginnings of CREATE support in path-prefix.h
87
//CREATE V0.1 support
1011 by mjwybrow
* src/path-prefix.h: Add missing CREATE_* directory locations
88
#    define CREATE_GRADIENTSDIR  "/Library/Application Support/create/gradients/gimp"
89
#    define CREATE_PALETTESDIR   "/Library/Application Support/create/swatches"
90
#    define CREATE_PATTERNSDIR   "/Library/Application Support/create/patterns/vector"
1 by mental
moving trunk for module inkscape
91
#  else
92
#    define INKSCAPE_APPICONDIR   INKSCAPE_DATADIR "/pixmaps"
10753 by tavmjong-free
Add possibility to check validity of attributes and usefulness of properties.
93
#    define INKSCAPE_ATTRRELDIR   INKSCAPE_DATADIR "/inkscape/attributes"
5268 by ishmal
Change INKSCAPE_JAVADIR to INKSCAPE_BINDDIR so that we can have subdirs for each language supported
94
#    define INKSCAPE_BINDDIR      INKSCAPE_DATADIR "/inkscape/bind"
2786 by buliabyak
allow easy access to our examples folder from Open dialog
95
#    define INKSCAPE_EXAMPLESDIR  INKSCAPE_DATADIR "/inkscape/examples"
1 by mental
moving trunk for module inkscape
96
#    define INKSCAPE_EXTENSIONDIR INKSCAPE_DATADIR "/inkscape/extensions"
5522 by gouldtj
r19136@shi: ted | 2008-04-24 19:44:01 -0700
97
#    define INKSCAPE_FILTERDIR    INKSCAPE_DATADIR "/inkscape/filters"
1 by mental
moving trunk for module inkscape
98
#    define INKSCAPE_GRADIENTSDIR INKSCAPE_DATADIR "/inkscape/gradients"
436 by mental
introduce uniform resource path API to replace copy-and-pasted hacks
99
#    define INKSCAPE_KEYSDIR      INKSCAPE_DATADIR "/inkscape/keys"
1 by mental
moving trunk for module inkscape
100
#    define INKSCAPE_PIXMAPDIR    INKSCAPE_DATADIR "/inkscape/icons"
101
#    define INKSCAPE_MARKERSDIR   INKSCAPE_DATADIR "/inkscape/markers"
102
#    define INKSCAPE_PALETTESDIR  INKSCAPE_DATADIR "/inkscape/palettes"
103
#    define INKSCAPE_PATTERNSDIR  INKSCAPE_DATADIR "/inkscape/patterns"
104
#    define INKSCAPE_SCREENSDIR   INKSCAPE_DATADIR "/inkscape/screens"
11782 by tavmjong-free
Add symbols dialog. See: http://wiki.inkscape.org/wiki/index.php/SymbolsDialog
105
#    define INKSCAPE_SYMBOLSDIR   INKSCAPE_DATADIR "/inkscape/symbols"
14479 by insaner
window/task bar icon missing when installed in non-standard location
106
#    define INKSCAPE_THEMEDIR     INKSCAPE_DATADIR "/icons"
1 by mental
moving trunk for module inkscape
107
#    define INKSCAPE_TUTORIALSDIR INKSCAPE_DATADIR "/inkscape/tutorials"
108
#    define INKSCAPE_TEMPLATESDIR INKSCAPE_DATADIR "/inkscape/templates"
109
#    define INKSCAPE_UIDIR        INKSCAPE_DATADIR "/inkscape/ui"
588 by verbalshadow
Added beginnings of CREATE support in path-prefix.h
110
//CREATE V0.1 support
111
#    define CREATE_GRADIENTSDIR INKSCAPE_DATADIR "/create/gradients/gimp"
112
#    define CREATE_PALETTESDIR  INKSCAPE_DATADIR "/create/swatches"
113
#    define CREATE_PATTERNSDIR  INKSCAPE_DATADIR "/create/patterns/vector"
114
#	 endif
1 by mental
moving trunk for module inkscape
115
#endif
116
13341.1.190 by Liam P. White
Header cleanup: stop using Glib types where they aren't truly needed. Eases GThread deprecation errors.
117
//#ifdef __cplusplus
118
//}
119
//#endif /* __cplusplus */
1 by mental
moving trunk for module inkscape
120
121
#endif /* _PATH_PREFIX_H_ */