From a98088877fc638ce9f068aaaa5fa4c7f883a1a87 Mon Sep 17 00:00:00 2001 From: Hugo Lima Date: Thu, 12 Nov 2009 17:38:09 -0200 Subject: APIExtractor is a huge amount of legacy code inherited from QtScriptGenerator, but QtScriptGenerator itself isn't a library, this explains why libapiextractor does not care about things that every library SHOULD care, symbol visibility and binary compatibility. This commit adds symbol visibility rules to libapiextractor as the first step to make libapiextractor aware of binary compatibility. This is also needed if we want to be able to compile and use libapiextractor under Windows. Note: Not all symbols were made public, just the symbols needed by shiboken, boostpython and doc generators, because IMHO libapiextractor needs some love and a API review. More symbols could be added later if needed. Reviewed by Renato Araujo --- typesystem.h | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'typesystem.h') diff --git a/typesystem.h b/typesystem.h index 589196208..dc8344f6e 100644 --- a/typesystem.h +++ b/typesystem.h @@ -29,6 +29,7 @@ #include #include #include +#include "apiextractormacros.h" class Indentor; @@ -46,7 +47,7 @@ extern QString stringsJavaLang; extern QString strings_jchar; extern QString strings_jobject; -struct Include +struct APIEXTRACTOR_API Include { enum IncludeType { IncludePath, @@ -144,7 +145,7 @@ struct ArgumentOwner int index; }; -class CodeSnipFragment +class APIEXTRACTOR_API CodeSnipFragment { private: const QString m_code; @@ -161,7 +162,7 @@ public: QString code() const; }; -class CodeSnipAbstract +class APIEXTRACTOR_API CodeSnipAbstract { public: QString code() const; @@ -231,7 +232,7 @@ private: }; -class CodeSnip : public CodeSnipAbstract +class APIEXTRACTOR_API CodeSnip : public CodeSnipAbstract { public: enum Position { @@ -449,7 +450,7 @@ typedef QList FieldModificationList; * This info will be used later to create a fake AbstractMetaFunction which * will be inserted into the right AbstractMetaClass. */ -struct AddedFunction +struct APIEXTRACTOR_API AddedFunction { /// Function access types. enum Access { @@ -582,7 +583,7 @@ private: typedef QList DocModificationList; -class TypeEntry +class APIEXTRACTOR_API TypeEntry { public: enum Type { @@ -1010,7 +1011,7 @@ private: }; -class PrimitiveTypeEntry : public TypeEntry +class APIEXTRACTOR_API PrimitiveTypeEntry : public TypeEntry { public: PrimitiveTypeEntry(const QString &name) @@ -1316,7 +1317,7 @@ private: }; -class ComplexTypeEntry : public TypeEntry +class APIEXTRACTOR_API ComplexTypeEntry : public TypeEntry { public: enum TypeFlag { @@ -1842,7 +1843,7 @@ struct TypeRejection QString enum_name; }; -class TypeDatabase +class APIEXTRACTOR_API TypeDatabase { TypeDatabase(); TypeDatabase(const TypeDatabase&); -- cgit v1.2.3