~ubuntu-branches/ubuntu/utopic/inkscape/utopic-proposed

« back to all changes in this revision

Viewing changes to inkscape-0.47pre1/src/path-prefix.h

  • Committer: Bazaar Package Importer
  • Author(s): Bryce Harrington
  • Date: 2009-07-02 17:09:45 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20090702170945-nn6d6zswovbwju1t
Tags: 0.47~pre1-0ubuntu1
* New upstream release.
  - Don't constrain maximization on small resolution devices (pre0)
    (LP: #348842)
  - Fixes segfault on startup (pre0)
    (LP: #391149)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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_
 
15
 
 
16
#include "require-config.h"  // INKSCAPE_DATADIR
 
17
#include "prefix.h"
 
18
 
 
19
#ifdef __cplusplus
 
20
extern "C" {
 
21
#endif /* __cplusplus */
 
22
 
 
23
#ifdef ENABLE_BINRELOC
 
24
#  define INKSCAPE_APPICONDIR     BR_DATADIR( "/pixmaps" )
 
25
#  define INKSCAPE_BINDDIR        BR_DATADIR( "/inkscape/bind" )
 
26
#  define INKSCAPE_EXAMPLESDIR    BR_DATADIR( "/inkscape/examples" )
 
27
#  define INKSCAPE_EXTENSIONDIR   BR_DATADIR( "/inkscape/extensions" )
 
28
#  define INKSCAPE_FILTERDIR      BR_DATADIR( "/inkscape/filters" )
 
29
#  define INKSCAPE_GRADIENTSDIR   BR_DATADIR( "/inkscape/gradients" )
 
30
#  define INKSCAPE_KEYSDIR        BR_DATADIR( "/inkscape/keys" )
 
31
#  define INKSCAPE_PIXMAPDIR      BR_DATADIR( "/inkscape/icons" )
 
32
#  define INKSCAPE_MARKERSDIR     BR_DATADIR( "/inkscape/markers" )
 
33
#  define INKSCAPE_PALETTESDIR    BR_DATADIR( "/inkscape/palettes" )
 
34
#  define INKSCAPE_PATTERNSDIR    BR_DATADIR( "/inkscape/patterns" )
 
35
#  define INKSCAPE_SCREENSDIR     BR_DATADIR( "/inkscape/screens" )
 
36
#  define INKSCAPE_TUTORIALSDIR   BR_DATADIR( "/inkscape/tutorials" )
 
37
#  define INKSCAPE_TEMPLATESDIR   BR_DATADIR( "/inkscape/templates" )
 
38
#  define INKSCAPE_UIDIR          BR_DATADIR( "/inkscape/ui" )
 
39
//CREATE V0.1 support
 
40
#    define CREATE_GRADIENTSDIR   BR_DATADIR( "/create/gradients/gimp" )
 
41
#    define CREATE_PALETTESDIR    BR_DATADIR( "/create/swatches" )
 
42
#    define CREATE_PATTERNSDIR    BR_DATADIR( "/create/patterns/vector" )
 
43
#else
 
44
#  ifdef WIN32
 
45
#    define INKSCAPE_APPICONDIR   WIN32_DATADIR("pixmaps")
 
46
#    define INKSCAPE_BINDDIR      WIN32_DATADIR("share\\bind")
 
47
#    define INKSCAPE_EXAMPLESDIR  WIN32_DATADIR("share\\examples")
 
48
#    define INKSCAPE_EXTENSIONDIR WIN32_DATADIR("share\\extensions")
 
49
#    define INKSCAPE_FILTERDIR    WIN32_DATADIR("share\\filters")
 
50
#    define INKSCAPE_GRADIENTSDIR WIN32_DATADIR("share\\gradients")
 
51
#    define INKSCAPE_KEYSDIR      WIN32_DATADIR("share\\keys")
 
52
#    define INKSCAPE_PIXMAPDIR    WIN32_DATADIR("share\\icons")
 
53
#    define INKSCAPE_MARKERSDIR   WIN32_DATADIR("share\\markers")
 
54
#    define INKSCAPE_PALETTESDIR  WIN32_DATADIR("share\\palettes")
 
55
#    define INKSCAPE_PATTERNSDIR  WIN32_DATADIR("share\\patterns")
 
56
#    define INKSCAPE_SCREENSDIR   WIN32_DATADIR("share\\screens")
 
57
#    define INKSCAPE_TUTORIALSDIR WIN32_DATADIR("share\\tutorials")
 
58
#    define INKSCAPE_TEMPLATESDIR WIN32_DATADIR("share\\templates")
 
59
#    define INKSCAPE_UIDIR        WIN32_DATADIR("share\\ui")
 
60
//CREATE V0.1  WIN32 support
 
61
#    define CREATE_GRADIENTSDIR   WIN32_DATADIR("create\\gradients\\gimp")
 
62
#    define CREATE_PALETTESDIR    WIN32_DATADIR("create\\swatches")
 
63
#    define CREATE_PATTERNSDIR    WIN32_DATADIR("create\\patterns\\vector")
 
64
#  elif defined ENABLE_OSX_APP_LOCATIONS
 
65
#    define INKSCAPE_APPICONDIR   "Contents/Resources/pixmaps"
 
66
#    define INKSCAPE_BINDDIR      "Contents/Resources/bind"
 
67
#    define INKSCAPE_EXAMPLESDIR  "Contents/Resources/examples"
 
68
#    define INKSCAPE_EXTENSIONDIR "Contents/Resources/extensions"
 
69
#    define INKSCAPE_FILTERDIR    "Contents/Resources/filters"
 
70
#    define INKSCAPE_GRADIENTSDIR "Contents/Resources/gradients"
 
71
#    define INKSCAPE_KEYSDIR      "Contents/Resources/keys"
 
72
#    define INKSCAPE_PIXMAPDIR    "Contents/Resources/icons"
 
73
#    define INKSCAPE_MARKERSDIR   "Contents/Resources/markers"
 
74
#    define INKSCAPE_PALETTESDIR  "Contents/Resources/palettes"
 
75
#    define INKSCAPE_PATTERNSDIR  "Contents/Resources/patterns"
 
76
#    define INKSCAPE_SCREENSDIR   "Contents/Resources/screens"
 
77
#    define INKSCAPE_TUTORIALSDIR "Contents/Resources/tutorials"
 
78
#    define INKSCAPE_TEMPLATESDIR "Contents/Resources/templates"
 
79
#    define INKSCAPE_UIDIR        "Contents/Resources/ui"
 
80
//CREATE V0.1 support
 
81
#    define CREATE_GRADIENTSDIR  "/Library/Application Support/create/gradients/gimp"
 
82
#    define CREATE_PALETTESDIR   "/Library/Application Support/create/swatches"
 
83
#    define CREATE_PATTERNSDIR   "/Library/Application Support/create/patterns/vector"
 
84
#  else
 
85
#    define INKSCAPE_APPICONDIR   INKSCAPE_DATADIR "/pixmaps"
 
86
#    define INKSCAPE_BINDDIR      INKSCAPE_DATADIR "/inkscape/bind"
 
87
#    define INKSCAPE_EXAMPLESDIR  INKSCAPE_DATADIR "/inkscape/examples"
 
88
#    define INKSCAPE_EXTENSIONDIR INKSCAPE_DATADIR "/inkscape/extensions"
 
89
#    define INKSCAPE_FILTERDIR    INKSCAPE_DATADIR "/inkscape/filters"
 
90
#    define INKSCAPE_GRADIENTSDIR INKSCAPE_DATADIR "/inkscape/gradients"
 
91
#    define INKSCAPE_KEYSDIR      INKSCAPE_DATADIR "/inkscape/keys"
 
92
#    define INKSCAPE_PIXMAPDIR    INKSCAPE_DATADIR "/inkscape/icons"
 
93
#    define INKSCAPE_MARKERSDIR   INKSCAPE_DATADIR "/inkscape/markers"
 
94
#    define INKSCAPE_PALETTESDIR  INKSCAPE_DATADIR "/inkscape/palettes"
 
95
#    define INKSCAPE_PATTERNSDIR  INKSCAPE_DATADIR "/inkscape/patterns"
 
96
#    define INKSCAPE_SCREENSDIR   INKSCAPE_DATADIR "/inkscape/screens"
 
97
#    define INKSCAPE_TUTORIALSDIR INKSCAPE_DATADIR "/inkscape/tutorials"
 
98
#    define INKSCAPE_TEMPLATESDIR INKSCAPE_DATADIR "/inkscape/templates"
 
99
#    define INKSCAPE_UIDIR        INKSCAPE_DATADIR "/inkscape/ui"
 
100
//CREATE V0.1 support
 
101
#    define CREATE_GRADIENTSDIR INKSCAPE_DATADIR "/create/gradients/gimp"
 
102
#    define CREATE_PALETTESDIR  INKSCAPE_DATADIR "/create/swatches"
 
103
#    define CREATE_PATTERNSDIR  INKSCAPE_DATADIR "/create/patterns/vector"
 
104
#        endif
 
105
#endif
 
106
 
 
107
#ifdef __cplusplus
 
108
}
 
109
#endif /* __cplusplus */
 
110
 
 
111
#endif /* _PATH_PREFIX_H_ */