-
Notifications
You must be signed in to change notification settings - Fork 65
/
Linux64x86w32BitConfigUsrLib.class.st
208 lines (171 loc) · 6.06 KB
/
Linux64x86w32BitConfigUsrLib.class.st
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
"
A Linux64x86w32BitConfigUsrLib is an Abstract base class that provides common information for my subclasses.
I am not meant to be built.
I am a configuration for linux64x86 where the 32 bit compatibility libraries reside in /usr/lib (example: Slackware64 14.1)
Some linux platforms (such as Ubuntu). store their 32 bit compat libs in /usr/lib32. For those, use subclasses of Linux64x86w32BitConfigUsrLib32
I configure a VM according to my name's form: [Operating System] [WordSize] [Processor Language][VM MemoryManager][BuildType]Conf[Foo]
SqueakLinux64x86w32CompatBuilder
configureABuildFor: #ONE OF MY SUBCLASSES NAME HERE withBuildType: #build;
enableMessageTracking: true;
generateByTemplate.
HelpBrowser openOn: CMakeVMMakerSqueakHelp
"
Class {
#name : #Linux64x86w32BitConfigUsrLib,
#superclass : #SqueakUnixConfig,
#category : #'CMakeVMMakerSqueak-Linux64X86-32BitCompatibility'
}
{ #category : #cmake }
Linux64x86w32BitConfigUsrLib >> availableBuildTypes [
^SqueakCMakeVMMakerAbstractBuilder default noBuildTypes
"
subclasses should use
^super allBuildTypes copyWithoutAll: #( #assertWithHeartbeatTimer #debugWithHeartbeatTimer debugMultiThreadedFFI.....etc)) "
]
{ #category : #'cmake buildType redirects' }
Linux64x86w32BitConfigUsrLib >> coreSourcesBuild [
"files to include from src/vm dir"
self flag:'tty revisit this. This should return a subset of the available files there'.
^ #(
'cogit.c'
'gcc3x-cointerp.c'
)
]
{ #category : #'cmake buildType redirects' }
Linux64x86w32BitConfigUsrLib >> coreSourcesBuildMultiThreaded [
"files to include from src/vm dir"
^ #(
'cogit.c'
'cointerpmt.c'
)
]
{ #category : #plugins }
Linux64x86w32BitConfigUsrLib >> defaultExternalPlugins [
^ #(
B3DAcceleratorPlugin
ThreadedIA32FFIPlugin "SqueakFFIPrims"
"UUIDPlugin"
"UnixOSProcessPlugin ?? "
JPEGReaderPlugin
JPEGReadWriter2Plugin
RePlugin
InternetConfigPlugin
)
"debug"
]
{ #category : #plugins }
Linux64x86w32BitConfigUsrLib >> defaultInternalPlugins [
" took from unixbuild/bld/plugins.int"
^ #(
ADPCMCodecPlugin
AsynchFilePlugin
BalloonEnginePlugin "B2DPlugin"
BitBltSimulation "BitBltPlugin"
BMPReadWriterPlugin
CroquetPlugin
DeflatePlugin "ZipPlugin"
DropPlugin
DSAPlugin "DSAPrims"
FFTPlugin
FileCopyPlugin
FilePlugin
FloatArrayPlugin
FloatMathPlugin
JoystickTabletPlugin
KlattSynthesizerPlugin "Klatt"
LargeIntegersPlugin "LargeIntegers"
Matrix2x3Plugin
MIDIPlugin
MiscPrimitivePlugin
Mpeg3Plugin
SecurityPlugin
SerialPlugin
SocketPlugin
SoundCodecPlugin "SoundCodecPrims"
SoundGenerationPlugin
SoundPlugin
StarSqueakPlugin
SurfacePlugin
LocalePlugin
)
]
{ #category : #cmake }
Linux64x86w32BitConfigUsrLib >> dirBuildPlatform [
^self dirLinux64x86w32BitCompatibility
]
{ #category : #cmake }
Linux64x86w32BitConfigUsrLib >> excludeFromBuild [
"over-ride to exclude yourself from a build or not"
^true
]
{ #category : #cmake }
Linux64x86w32BitConfigUsrLib >> executableName [
"AbstractBaseClass configurations are not meant to be executable"
^ self vmIShouldNotBeHereExecutableName
]
{ #category : #compiling }
Linux64x86w32BitConfigUsrLib >> externalLibraries [
^#(
'-L/usr/lib'
'-L/usr/lib/X11'
'uuid' ""
'ssl' ""
'crypto' ""
'm' "C math library"
'dl' "dynamic linking library"
'pthread' "POSIX threads library"
'SM' "session management library for X11"
'ICE' "ICE is the Inter Client Exchange protocol, part of X11"
'GL' "libGL implements the GLX interface as well as the main OpenGL API entrypoints"
'X11'
'nsl' "network services library"
)
]
{ #category : #'cmake buildType redirects' }
Linux64x86w32BitConfigUsrLib >> externalPluginsBuild [
^ externalPlugins ifNil: [ externalPlugins := self defaultExternalPlugins ]
]
{ #category : #'cmake buildType redirects' }
Linux64x86w32BitConfigUsrLib >> extraPluginSettingsBuild: aMaker [
aMaker isExternal
ifTrue:[aMaker templates addLast:((CMakeSet new) variable:'LIBRARY_OUTPUT_PATH' value:'${outputDir}')].
aMaker templates addLast:((CMakeSet new) variable:'linkFlags' quotedValue:'${linkFlags} -m32').
" maker isExternal ifTrue: [
maker set: 'LIBRARY_OUTPUT_PATH' to: '${outputDir}'
].
maker set: #linkFlags toString: '${linkFlags} -m32'"
]
{ #category : #'cmake buildType redirects' }
Linux64x86w32BitConfigUsrLib >> internalPluginsBuild [
^ internalPlugins ifNil: [ internalPlugins := self defaultInternalPlugins ]
]
{ #category : #'cmake buildType redirects' }
Linux64x86w32BitConfigUsrLib >> linkerFlagsBuild [
^#( '-Wl'
'-z'
'now'
)
]
{ #category : #'cmake buildType redirects' }
Linux64x86w32BitConfigUsrLib >> preferredIncludesBuild [
(enabledebugmessages)
ifTrue:[
templates
addLast: ((CMakeMessage new) message: (self class name), ' preferredIncludesBuild' )
].
templates
addLast: ((CMakeIncludeDirectories new) dirs: (OrderedCollection with: '${targetPlatform}/plugins/B3DAcceleratorPlugin')).
(enabledebugmessages)
ifTrue:[
templates
addLast: ((CMakeMessage new) message: 'CMAKE_INCLUDE_PATH = ${CMAKE_INCLUDE_PATH}' );
addLast: ((CMakeMessage new) message: 'CMAKE_SYSTEM_INCLUDE_PATH = ${CMAKE_SYSTEM_INCLUDE_PATH}' );
addLast: ((CMakeMessage new) message: 'CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES = ${CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES}' );
addLast: ((CMakeMessage new) message: 'CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES = ${CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES}' );
addLast: ((CMakeMessage new) message: 'CMAKE_FIND_ROOT_PATH_MODE_INCLUDE = ${CMAKE_FIND_ROOT_PATH_MODE_INCLUDE}' );
addLast: ((CMakeMessage new) message: 'CMAKE_FIND_ROOT_PATH_MODE_INCLUDE = ${CMAKE_INCLUDE_CURRENT_DIR}' );
addLast: ((CMakeMessage new) message: 'CMAKE_INCLUDE_CURRENT_DIR_IN_INTERFACE = ${CMAKE_INCLUDE_CURRENT_DIR_IN_INTERFACE}' );
addLast: ((CMakeMessage new) message: 'CMAKE_INCLUDE_DIRECTORIES_BEFORE = ${CMAKE_INCLUDE_DIRECTORIES_BEFORE}' );
addLast: ((CMakeMessage new) message: 'CMAKE_INCLUDE_DIRECTORIES_PROJECT_BEFORE = ${CMAKE_INCLUDE_DIRECTORIES_PROJECT_BEFORE}' )
].
]