gdk.pp 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. {
  2. GDK - The GIMP Drawing Kit
  3. Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
  4. This library is free software; you can redistribute it and/or
  5. modify it under the terms of the GNU Library General Public
  6. License as published by the Free Software Foundation; either
  7. version 2 of the License, or (at your option) any later version.
  8. This library 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 GNU
  11. Library General Public License for more details.
  12. You should have received a copy of the GNU Library General Public
  13. License along with this library; if not, write to the
  14. Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  15. Boston, MA 02111-1301, USA.
  16. **********************************************************************}
  17. {$IFNDEF FPC_DOTTEDUNITS}
  18. unit gdk;
  19. {$ENDIF FPC_DOTTEDUNITS}
  20. interface
  21. {$mode objfpc} { needed for array of const }
  22. { Always use smartlinking for win32, this solves some undefined functions
  23. in the development gtk versions which change often (PFV) }
  24. {$ifdef win32}
  25. {$ifndef NO_SMART_LINK}
  26. {$smartlink on}
  27. {$endif}
  28. {$endif}
  29. {$IFDEF FPC_DOTTEDUNITS}
  30. uses
  31. Api.Gtk1.Glib;
  32. {$ELSE FPC_DOTTEDUNITS}
  33. uses
  34. glib;
  35. {$ENDIF FPC_DOTTEDUNITS}
  36. {$ifdef win32}
  37. const
  38. gdkdll='libgdk-0';
  39. {$define gtkwin}
  40. {$packrecords C}
  41. {$else}
  42. {$ifdef os2}
  43. const
  44. gdkdll='gdk12';
  45. {$linklib gdk12}
  46. {$define gtkos2}
  47. {$packrecords C}
  48. {$else}
  49. const
  50. {$ifdef FreeBSD}
  51. gdkdll='gdk-12';
  52. {$linklib gdk-12}
  53. {$else}
  54. {$ifdef darwin}
  55. {$define gtkdarwin}
  56. gdkdll='gdk-1.2.0';
  57. {$linklib gdk-1.2.0}
  58. {$else}
  59. gdkdll='gdk';
  60. {$linklib gdk}
  61. {$endif}
  62. {$endif}
  63. {$linklib c}
  64. {$linklib X11}
  65. {$packrecords C}
  66. {$endif}
  67. {$endif}
  68. {$define gdk_include_files}
  69. {$define read_interface}
  70. {$undef read_implementation}
  71. {$i gdktypes.pp}
  72. {$i gdkkeysyms.pp}
  73. {$i gdkprivate.pp}
  74. {$i gdkrgb.pp}
  75. {$i gdkx.pp}
  76. {$i gdkmain.pp}
  77. implementation
  78. {$undef read_interface}
  79. {$define read_implementation}
  80. {$i gdktypes.pp}
  81. {$i gdkkeysyms.pp}
  82. {$i gdkprivate.pp}
  83. {$i gdkrgb.pp}
  84. {$i gdkx.pp}
  85. {$i gdkmain.pp}
  86. end.