1 /* 2 * gtkD is free software; you can redistribute it and/or modify 3 * it under the terms of the GNU Lesser General Public License 4 * as published by the Free Software Foundation; either version 3 5 * of the License, or (at your option) any later version, with 6 * some exceptions, please read the COPYING file. 7 * 8 * gtkD is distributed in the hope that it will be useful, 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 * GNU Lesser General Public License for more details. 12 * 13 * You should have received a copy of the GNU Lesser General Public License 14 * along with gtkD; if not, write to the Free Software 15 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA 16 * 17 * paths.d -- list of libraries that will be dynamically linked with gtkD 18 * 19 * Added: John Reimer -- 2004-12-20 20 * Updated: 2005-02-21 changed names; added version(linux) 21 * Updated: 2005-05-05 updated Linux support 22 * Updated: 2008-02-16 Tango support 23 */ 24 25 module gtkc.paths; 26 27 //version(Tango) private alias char[] string; 28 version(Tango) import gtkc.glibtypes; 29 30 /* 31 * Define the Libraries that gtkD will be using. 32 * This is a growable list, as long as the programmer 33 * also adds to the importLibs list. 34 */ 35 36 enum LIBRARY 37 { 38 ATK, 39 CAIRO, 40 GDK, 41 GDKPIXBUF, 42 GLIB, 43 GMODULE, 44 GOBJECT, 45 GIO, 46 GTHREAD, 47 GTK, 48 PANGO, 49 PANGOCAIRO, 50 GLGDK, 51 GLGTK, 52 GDA, 53 GSV, 54 GSV1, 55 GSTREAMER, 56 GSTINTERFACES, 57 VTE, 58 } 59 60 version (Windows) 61 { 62 const string[LIBRARY.max+1] importLibs = 63 [ 64 LIBRARY.ATK: "libatk-1.0-0.dll", 65 LIBRARY.CAIRO: "libcairo-2.dll", 66 LIBRARY.GDK: "libgdk-3-0.dll", 67 LIBRARY.GDKPIXBUF: "libgdk_pixbuf-2.0-0.dll", 68 LIBRARY.GLIB: "libglib-2.0-0.dll", 69 LIBRARY.GMODULE: "libgmodule-2.0-0.dll", 70 LIBRARY.GOBJECT: "libgobject-2.0-0.dll", 71 LIBRARY.GIO: "libgio-2.0-0.dll", 72 LIBRARY.GTHREAD: "libgthread-2.0-0.dll", 73 LIBRARY.GTK: "libgtk-3-0.dll", 74 LIBRARY.PANGO: "libpango-1.0-0.dll", 75 LIBRARY.PANGOCAIRO: "libpangocairo-1.0-0.dll", 76 LIBRARY.GLGDK: "libgdkglext-3.0-0.dll", 77 LIBRARY.GLGTK: "libgtkglext-3.0-0.dll", 78 LIBRARY.GDA: "libgda-4.0-4.dll", 79 LIBRARY.GSV: "libgtksourceview-3.0-0.dll", 80 LIBRARY.GSV1: "libgtksourceview-3.0-1.dll", 81 LIBRARY.GSTREAMER: "libgstreamer-1.0.dll", 82 LIBRARY.GSTINTERFACES: "libgstvideo-1.0.dll", 83 LIBRARY.VTE: "libvte2_90.dll", 84 ]; 85 } 86 else version(darwin) 87 { 88 const string DIRECTORY = "/opt/local/lib/"; 89 90 const string[LIBRARY.max+1] importLibs = 91 [ 92 LIBRARY.ATK: DIRECTORY~"libatk-1.0.dylib", 93 LIBRARY.CAIRO: DIRECTORY~"libcairo.dylib", 94 LIBRARY.GDK: DIRECTORY~"libgdk-3.0.dylib", 95 LIBRARY.GDKPIXBUF: DIRECTORY~"libgdk_pixbuf-2.0.dylib", 96 LIBRARY.GLIB: DIRECTORY~"libglib-2.0.dylib", 97 LIBRARY.GMODULE: DIRECTORY~"libgmodule-2.0.dylib", 98 LIBRARY.GOBJECT: DIRECTORY~"libgobject-2.0.dylib", 99 LIBRARY.GIO: DIRECTORY~"libgio-2.0.dylib", 100 LIBRARY.GTHREAD: DIRECTORY~"libgthread-2.0.dylib", 101 LIBRARY.GTK: DIRECTORY~"libgtk-3.0.dylib", 102 LIBRARY.PANGO: DIRECTORY~"libpango-1.0.dylib", 103 LIBRARY.PANGOCAIRO: DIRECTORY~"libpangocairo-1.0.dylib", 104 LIBRARY.GLGDK: DIRECTORY~"libgdkglext-3.0.dylib", 105 LIBRARY.GLGTK: DIRECTORY~"libgtkglext-3.0.dylib", 106 LIBRARY.GDA: DIRECTORY~"libgda-2.dylib", 107 LIBRARY.GSV: DIRECTORY~"libgtksourceview-3.0.dylib", 108 LIBRARY.GSV1: DIRECTORY~"libgtksourceview-3.0.dylib", 109 LIBRARY.GSTREAMER: DIRECTORY~"libgstreamer-1.0.dylib", 110 LIBRARY.GSTINTERFACES: DIRECTORY~"libgstvideo-1.0.dylib", 111 LIBRARY.VTE: DIRECTORY~"libvte2_90.dylib" 112 ]; 113 } 114 else 115 { 116 const string[LIBRARY.max+1] importLibs = 117 [ 118 LIBRARY.ATK: "libatk-1.0.so.0", 119 LIBRARY.CAIRO: "libcairo.so.2", 120 LIBRARY.GDK: "libgdk-3.so.0", 121 LIBRARY.GDKPIXBUF: "libgdk_pixbuf-2.0.so.0", 122 LIBRARY.GLIB: "libglib-2.0.so.0", 123 LIBRARY.GMODULE: "libgmodule-2.0.so.0", 124 LIBRARY.GOBJECT: "libgobject-2.0.so.0", 125 LIBRARY.GIO: "libgio-2.0.so.0", 126 LIBRARY.GTHREAD: "libgthread-2.0.so.0", 127 LIBRARY.GTK: "libgtk-3.so.0", 128 LIBRARY.PANGO: "libpango-1.0.so.0", 129 LIBRARY.PANGOCAIRO: "libpangocairo-1.0.so.0", 130 LIBRARY.GLGDK: "libgdkglext-3.0.so.0", 131 LIBRARY.GLGTK: "libgtkglext-3.0.so.0", 132 LIBRARY.GDA: "libgda-4.0.so.4", 133 LIBRARY.GSV: "libgtksourceview-3.0.so.0", 134 LIBRARY.GSV1: "libgtksourceview-3.0.so.1", 135 LIBRARY.GSTREAMER: "libgstreamer-1.0.so.0", 136 LIBRARY.GSTINTERFACES: "libgstvideo-1.0.so.0", 137 LIBRARY.VTE: "libvte2_90.so", 138 ]; 139 }