1 #ifndef BUILD_CONFIGURATION_GROUP
2 #define BUILD_CONFIGURATION_GROUP
5 // Name : build configuration
6 // Author : Chris Koeritz
8 // Copyright (c) 1995-$now By Author. This program is free software; you can
9 // redistribute it and/or modify it under the terms of the GNU General Public
10 // License as published by the Free Software Foundation:
11 // http://www.gnu.org/licenses/gpl.html
12 // or under the terms of the GNU Library license:
13 // http://www.gnu.org/licenses/lgpl.html
14 // at your preference. Those licenses describe your legal rights to this
15 // software, and no other rights or warranties apply.
16 // Please send updates for this code to: fred@gruntose.com -- Thanks, fred.
19 /*! @file build_configuration.h
20 @brief Contains definitions that control how libraries and programs are built.
22 These definitions can be used for declaring classes and functions that need
23 to be called from a DLL or that need to be compiled into a DLL. The import
24 style is used to declare that the item is being pulled out of a DLL. The
25 export style is used to declare that the item is being included in a DLL for
26 use by other functions.
29 #include <basis/definitions.h>
31 // Here is an example of a dynamic library header to be used by a particular library
32 // (presumably the gurpta library):
34 #ifndef GURPTA_DYNAMIC_LIBRARY_HEADER
35 #define GURPTA_DYNAMIC_LIBRARY_HEADER
36 // define BUILD_GURPTA when you are creating the dynamic library and
37 // define DYNAMIC_HOOPLE when you are importing code from the dynamic library.
38 #include <basis/build_configuration.h>
39 #if defined(BUILD_GURPTA)
40 #define GURPTA_LIBRARY HOOPLE_DYNAMIC_EXPORT
41 #elif defined(DYNAMIC_HOOPLE)
42 #define GURPTA_LIBRARY HOOPLE_DYNAMIC_IMPORT
44 #define GURPTA_LIBRARY
46 #endif // outer guard.
50 #define HOOPLE_DYNAMIC_EXPORT __declspec(dllexport)
51 #define HOOPLE_DYNAMIC_IMPORT __declspec(dllimport)
53 // no known requirements for these tags, so set them to nothing.
54 #define HOOPLE_DYNAMIC_EXPORT
55 #define HOOPLE_DYNAMIC_IMPORT
58 #endif // outer guard.