created macro to compile pyside modules.

Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
          Hugo Parente Lima <hugo.pl@gmail.com>
This commit is contained in:
Renato Filho 2010-08-19 17:48:08 -03:00
commit 465649d73e
21 changed files with 442 additions and 529 deletions

View file

@ -23,7 +23,8 @@ target_link_libraries(pyside
set_target_properties(pyside PROPERTIES
VERSION ${BINDING_API_VERSION}
SOVERSION "${BINDING_API_MAJOR_VERSION}.${BINDING_API_MINOR_VERSION}")
SOVERSION "${BINDING_API_MAJOR_VERSION}.${BINDING_API_MINOR_VERSION}"
DEFINE_SYMBOL PYSIDE_EXPORTS)
#
# install stuff

View file

@ -36,10 +36,14 @@
#define PYSIDEMACROS_H
#if defined _WIN32 || defined __CYGWIN__
#if PYSIDE_BUILD
#if PYSIDE_EXPORTS
#define PYSIDE_API __declspec(dllexport)
#else
#define PYSIDE_API __declspec(dllimport)
#if defined __MINGW32__
#define PYSIDE_API
#else
#define PYSIDE_API __declspec(dllimport)
#endif
#endif
#else
#if __GNUC__ >= 4