openrave.org

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
config.h
Go to the documentation of this file.
1 
4 #ifndef OPENRAVE_DEFINITIONS_H
5 #define OPENRAVE_DEFINITIONS_H
6 
7 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_MSC_VER)
8  #define OPENRAVE_HELPER_DLL_IMPORT __declspec(dllimport)
9  #define OPENRAVE_HELPER_DLL_EXPORT __declspec(dllexport)
10  #define OPENRAVE_HELPER_DLL_LOCAL
11 #else
12  #if __GNUC__ >= 4
13  #define OPENRAVE_HELPER_DLL_IMPORT __attribute__ ((visibility("default")))
14  #define OPENRAVE_HELPER_DLL_EXPORT __attribute__ ((visibility("default")))
15  #define OPENRAVE_HELPER_DLL_LOCAL __attribute__ ((visibility("hidden")))
16  #else
17  #define OPENRAVE_HELPER_DLL_IMPORT
18  #define OPENRAVE_HELPER_DLL_EXPORT
19  #define OPENRAVE_HELPER_DLL_LOCAL
20  #endif
21 #endif
22 
23 // Now we use the generic helper definitions above to define OPENRAVE_API and OPENRAVE_LOCAL.
24 // OPENRAVE_API is used for the public API symbols. It either DLL imports or DLL exports (or does nothing for static build)
25 // OPENRAVE_LOCAL is used for non-api symbols.
26 #if defined(OPENRAVE_DLL) || defined(OPENRAVE_CORE_DLL) // defined if OpenRAVE is compiled as a DLL
27  #ifdef OPENRAVE_DLL_EXPORTS // defined if we are building the OpenRAVE DLL (instead of using it)
28  #define OPENRAVE_API OPENRAVE_HELPER_DLL_EXPORT
29  #else
30  #define OPENRAVE_API OPENRAVE_HELPER_DLL_IMPORT
31  #endif // OPENRAVE_DLL_EXPORTS
32  #define OPENRAVE_LOCAL OPENRAVE_HELPER_DLL_LOCAL
33 #else // OPENRAVE_DLL is not defined: this means OpenRAVE is a static lib.
34  #define OPENRAVE_API
35  #define OPENRAVE_LOCAL
36 #endif // OPENRAVE_DLL
37 
38 #define OPENRAVE_VERSION_MAJOR 0
39 #define OPENRAVE_VERSION_MINOR 9
40 #define OPENRAVE_VERSION_PATCH 0
41 #define OPENRAVE_VERSION_COMBINED(major, minor, patch) (((major) << 16) | ((minor) << 8) | (patch))
42 #define OPENRAVE_VERSION OPENRAVE_VERSION_COMBINED(OPENRAVE_VERSION_MAJOR, OPENRAVE_VERSION_MINOR, OPENRAVE_VERSION_PATCH)
43 #define OPENRAVE_VERSION_EXTRACT_MAJOR(version) (((version)>>16)&0xff)
44 #define OPENRAVE_VERSION_EXTRACT_MINOR(version) (((version)>>8)&0xff)
45 #define OPENRAVE_VERSION_EXTRACT_PATCH(version) (((version))&0xff)
46 #define OPENRAVE_VERSION_STRING "0.9.0"
47 #define OPENRAVE_VERSION_STRING_FORMAT(version) boost::str(boost::format("%s.%s.%s")%(OPENRAVE_VERSION_EXTRACT_MAJOR(version))%(OPENRAVE_VERSION_EXTRACT_MINOR(version))%(OPENRAVE_VERSION_EXTRACT_PATCH(version)))
48 
49 #define OPENRAVE_VERSION_GE(major1, minor1, patch1, major2, minor2, patch2) (OPENRAVE_VERSION_COMBINED(major1, minor1, patch1) >= OPENRAVE_VERSION_COMBINED(major2, minor2, patch2))
50 #define OPENRAVE_VERSION_MINIMUM(major, minor, patch) OPENRAVE_VERSION_GE(OPENRAVE_VERSION_MAJOR, OPENRAVE_VERSION_MINOR, OPENRAVE_VERSION_PATCH, major, minor, patch)
51 
52 // if 0, single precision
53 // if 1, double precision
54 #define OPENRAVE_PRECISION 1
55 
56 #define OPENRAVE_PLUGINS_INSTALL_DIR "/var/lib/jenkins/workspace/openrave_documentation/install/share/openrave-0.9/plugins"
57 #define OPENRAVE_DATA_INSTALL_DIR "/var/lib/jenkins/workspace/openrave_documentation/install/share/openrave-0.9"
58 #define OPENRAVE_PYTHON_INSTALL_DIR "/var/lib/jenkins/workspace/openrave_documentation/install/lib/python2.6/site-packages"
59 
60 // the python path that OpenRAVE was compiled with
61 #define OPENRAVE_PYTHON_EXECUTABLE "/usr/bin/python2.6"
62 
63 #endif