Skip to content

Commit aa27a5c

Browse files
committed
Update scripts to add export declarations
1 parent 9bd744a commit aa27a5c

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

create-class

+4
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,13 @@ cat << !EOF > ${CLASSNAME}.h
6666
#define _${CLASSNAME}_h_INCLUDE
6767
6868
#import <Foundation/${SUPERCLASS}.h>
69+
#import <GNUstepBase/GSVersionMacros.h>
6970
7071
#if defined(__cplusplus)
7172
extern "C" {
7273
#endif
7374
75+
GS_EXPORT_CLASS
7476
@interface ${CLASSNAME} : ${SUPERCLASS}
7577
7678
@end
@@ -114,11 +116,13 @@ cat << !EOF > ${CLASSNAME}.h
114116
#define _${CLASSNAME}_h_INCLUDE
115117
116118
#import "${SUPERCLASS}.h"
119+
#import <GNUstepBase/GSVersionMacros.h>
117120
118121
#if defined(__cplusplus)
119122
extern "C" {
120123
#endif
121124
125+
GS_EXPORT_CLASS
122126
@interface ${CLASSNAME} : ${SUPERCLASS}
123127
124128
@end

create-gui-template

+4
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,15 @@ cat << !EOF > ${CLASSNAME}.h
6868
#define _${CLASSNAME}_h_GNUSTEP_GUI_INCLUDE
6969
7070
#import <Foundation/${SUPERCLASS}.h>
71+
#import <AppKit/AppKitDefines.h>
7172
7273
#if OS_API_VERSION(MAC_OS_X_VERSION_${VERSION}, GS_API_LATEST)
7374
7475
#if defined(__cplusplus)
7576
extern "C" {
7677
#endif
7778
79+
APPKIT_EXPORT_CLASS
7880
@interface ${CLASSNAME} : ${SUPERCLASS}
7981
8082
@end
@@ -120,13 +122,15 @@ cat << !EOF > ${CLASSNAME}.h
120122
#define _${CLASSNAME}_h_GNUSTEP_GUI_INCLUDE
121123
122124
#import <AppKit/${SUPERCLASS}.h>
125+
#import <AppKit/AppKitDefines.h>
123126
124127
#if OS_API_VERSION(MAC_OS_X_VERSION_${VERSION}, GS_API_LATEST)
125128
126129
#if defined(__cplusplus)
127130
extern "C" {
128131
#endif
129132
133+
APPKIT_EXPORT_CLASS
130134
@interface ${CLASSNAME} : ${SUPERCLASS}
131135
132136
@end

0 commit comments

Comments
 (0)