-
Notifications
You must be signed in to change notification settings - Fork 39
/
mono-basic.make
298 lines (274 loc) · 19.1 KB
/
mono-basic.make
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
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
VBRUNTIME_BASE=$(SRCDIR)/mono-basic/vbruntime/Microsoft.VisualBasic
WINFORMS_FORMS=$(SRCDIR)/winforms/src/Microsoft.VisualBasic.Forms/src
VBRUNTIME_SRCS= \
$(VBRUNTIME_BASE)/AssemblyInfo.vb \
$(VBRUNTIME_BASE)/Helper.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic/Hashtable.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic/ArrayList.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.ApplicationServices/ApplicationBase.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.ApplicationServices/AssemblyInfo.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.ApplicationServices/BuiltInRole.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.ApplicationServices/BuiltInRoleConverter.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.ApplicationServices/CantStartSingleInstanceException.vb \
$(WINFORMS_FORMS)/Microsoft/VisualBasic/ApplicationServices/ConsoleApplicationBase.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.ApplicationServices/WebUser.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.ApplicationServices/UnhandledExceptionEventArgs.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.ApplicationServices/NoStartupFormException.vb \
$(WINFORMS_FORMS)/Microsoft/VisualBasic/ApplicationServices/SingleInstanceHelpers.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.ApplicationServices/StartupEventArgs.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.ApplicationServices/StartupNextInstanceEventArgs.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.ApplicationServices/User.vb \
$(WINFORMS_FORMS)/Microsoft/VisualBasic/ApplicationServices/WindowsFormsApplicationBase.vb \
$(WINFORMS_FORMS)/Microsoft/VisualBasic/ApplicationServices/WindowsFormsApplicationBase.WinFormsAppContext.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.CompilerServices/BooleanType.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.CompilerServices/ByteType.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.CompilerServices/CharArrayType.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.CompilerServices/CharType.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.CompilerServices/Conversions.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.CompilerServices/OptionCompareAttribute.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.CompilerServices/NewLateBinding.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.CompilerServices/ObjectFlowControl.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.CompilerServices/LikeOperator.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.CompilerServices/InternalErrorException.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.CompilerServices/ExceptionUtils.vb \
$(WINFORMS_FORMS)/Microsoft/VisualBasic/CompilerServices/ExceptionUtils.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.CompilerServices/DesignerGeneratedAttribute.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.CompilerServices/OptionTextAttribute.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.CompilerServices/TypeCombinations.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.CompilerServices/VBErrors.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.CompilerServices/Versioned.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.CompilerServices/DateType.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.CompilerServices/DecimalType.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.CompilerServices/DoubleType.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.CompilerServices/FlowControl.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.CompilerServices/HostServices.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.CompilerServices/IncompleteInitialization.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.CompilerServices/IntegerType.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.CompilerServices/IVbHost.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.CompilerServices/LateBinder.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.CompilerServices/LateBinding.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.CompilerServices/LongType.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.CompilerServices/ObjectType.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.CompilerServices/Operators.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.CompilerServices/ProjectData.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.CompilerServices/ShortType.vb \
$(WINFORMS_FORMS)/Microsoft/VisualBasic/CompilerServices/SR.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.CompilerServices/SingleType.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.CompilerServices/StandardModuleAttribute.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.CompilerServices/StaticLocalInitFlag.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.CompilerServices/StringType.vb \
$(WINFORMS_FORMS)/Microsoft/VisualBasic/CompilerServices/Utils.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.CompilerServices/Utils.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.Devices/Audio.jvm.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.Devices/Audio.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.Devices/Clock.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.Devices/Computer.jvm.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.Devices/Computer.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.Devices/ComputerInfo.jvm.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.Devices/ComputerInfo.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.Devices/Keyboard.jvm.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.Devices/Keyboard.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.Devices/Mouse.jvm.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.Devices/Mouse.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.Devices/MyWebClient.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.Devices/Network.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.Devices/NetworkAvailableEventArgs.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.Devices/NetworkAvailableEventHandler.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.Devices/MyProgressDialog.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.Devices/Ports.jvm.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.Devices/Ports.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.Devices/ServerComputer.jvm.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.Devices/ServerComputer.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.FileIO/DeleteDirectoryOption.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.FileIO/FieldType.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.FileIO/FileSystem.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.FileIO/FileSystemOperation.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.FileIO/FileSystemOperationUI.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.FileIO/FileSystemOperationUIQuestion.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.FileIO/MalformedLineException.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.FileIO/RecycleOption.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.FileIO/SearchOption.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.FileIO/SpecialDirectories.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.FileIO/TextFieldParser.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.FileIO/UICancelOption.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.FileIO/UIOption.vb \
$(WINFORMS_FORMS)/Microsoft/VisualBasic/Helpers/NativeMethods.vb \
$(WINFORMS_FORMS)/Microsoft/VisualBasic/Helpers/NativeTypes.vb \
$(WINFORMS_FORMS)/Microsoft/VisualBasic/Helpers/SafeNativeMethods.vb \
$(WINFORMS_FORMS)/Microsoft/VisualBasic/Helpers/UnsafeNativeMethods.vb \
$(WINFORMS_FORMS)/Microsoft/VisualBasic/Helpers/VBInputBox.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.Logging/AspLog.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.Logging/DiskSpaceExhaustedOption.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.Logging/FileLogTraceListener.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.Logging/Log.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.Logging/LogFileCreationScheduleOption.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.Logging/LogFileLocation.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.MyServices.Internal/ContextValue.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.MyServices/ClipboardProxy.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.MyServices/FileSystemProxy.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.MyServices/RegistryProxy.jvm.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.MyServices/RegistryProxy.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.MyServices/SpecialDirectoriesProxy.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.OSSpecific/LinuxDriver.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.OSSpecific/OSDriver.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic.OSSpecific/Win32Driver.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic/AppWinStyle.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic/CallType.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic/Collection.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic/ComClassAttribute.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic/CompareMethod.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic/Constants.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic/ControlChars.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic/Conversion.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic/AudioPlayMode.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic/FileData.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic/Globals.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic/SpcInfo.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic/TabInfo.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic/VBFixedStringAttribute.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic/VBFixedArrayAttribute.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic/MyGroupCollectionAttribute.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic/DateAndTime.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic/DateFormat.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic/DateInterval.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic/DueDate.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic/ErrObject.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic/FileAttribute.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic/FileSystem.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic/Financial.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic/FirstDayOfWeek.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic/FirstWeekOfYear.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic/HideModuleNameAttribute.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic/Information.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic/Interaction.vb \
$(WINFORMS_FORMS)/Microsoft/VisualBasic/Interaction.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic/MsgBoxResult.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic/MsgBoxStyle.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic/OpenAccess.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic/OpenMode.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic/OpenShare.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic/Strings.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic/TriState.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic/VariantType.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic/VBMath.vb \
$(VBRUNTIME_BASE)/Microsoft.VisualBasic/VbStrConv.vb \
$(VBRUNTIME_BASE)/MonoTODOAttribute.vb
VBRUNTIME_RESOURCES= \
$(BUILDDIR)/Microsoft.VisualBasic/strings.resources
$(BUILDDIR)/Microsoft.VisualBasic/.dir: mono-basic.make
mkdir -p $(BUILDDIR)/Microsoft.VisualBasic
touch $@
$(BUILDDIR)/Microsoft.VisualBasic/strings.txt: $(VBRUNTIME_BASE)/strings.txt $(VBRUNTIME_BASE)/strings-only2.txt $(BUILDDIR)/Microsoft.VisualBasic/.dir
cat $(VBRUNTIME_BASE)/strings.txt $(VBRUNTIME_BASE)/strings-only2.txt > $@
$(BUILDDIR)/Microsoft.VisualBasic/strings.resources: $(BUILDDIR)/mono-unix/.installed $(BUILDDIR)/Microsoft.VisualBasic/strings.txt
$(MONO_ENV) resgen2 $(BUILDDIR)/Microsoft.VisualBasic/strings.txt $@
$(BUILDDIR)/Microsoft.VisualBasic.dll: $(BUILDDIR)/mono-unix/.installed $(VBRUNTIME_SRCS) $(VBRUNTIME_RESOURCES) $(VBRUNTIME_BASE)/msfinal.pub $(VBRUNTIME_BASE)/mono.snk
$(MONO_ENV) vbc -target:library -debug+ -out:$@ -define:NET_VER=4.5 $(foreach res,$(VBRUNTIME_RESOURCES),-res:$(res)) -r:System.dll -r:mscorlib.dll -r:System.Windows.Forms.dll -r:System.Core.dll -r:System.Data.dll -r:System.Drawing.dll -r:System.Web.dll -r:System.Xml.dll -vbruntime- -define:_MYTYPE="Empty" -define:DONTSIGN=True -delaysign+ -keyfile:$(VBRUNTIME_BASE)/msfinal.pub -optionstrict+ -optioninfer+ -imports:System,System.Collections,System.Data,System.Diagnostics,System.Collections.Generic,System.Threading.Tasks -noconfig $(VBRUNTIME_SRCS)
$(MONO_ENV) sn -R $@ $(VBRUNTIME_BASE)/mono.snk
IMAGEDIR_BUILD_TARGETS += $(BUILDDIR)/Microsoft.VisualBasic.dll
Microsoft.VisualBasic.dll: $(BUILDDIR)/Microsoft.VisualBasic.dll
$(MONO_ENV) gacutil -i $(BUILDDIR)/Microsoft.VisualBasic.dll -root $(IMAGEDIR)/lib
.PHONY: Microsoft.VisualBasic.dll
imagedir-targets: Microsoft.VisualBasic.dll
MONO_BASIC_COMPAT_SRCS=$(shell $(SRCDIR)/tools/git-updated-files $(SRCDIR)/
$(SRCDIR)/mono-basic-compat/.built: $(BUILDDIR)/Microsoft.VisualBasic.dll $(shell $(SRCDIR)/tools/git-updated-files $(SRCDIR)/mono-basic-compat)
+$(MONO_ENV) $(MAKE) -C $(@D) VBC='vbc -libpath:$(SRCDIR)/mono/mcs/class/lib/net_4_x/ -libpath:$(BUILDDIR_ABS) -vbruntime:$(BUILDDIR_ABS)/Microsoft.VisualBasic.dll'
touch $@
IMAGEDIR_BUILD_TARGETS += $(SRCDIR)/mono-basic-compat/.built
Microsoft.VisualBasic.Compatibility.dll: $(SRCDIR)/mono-basic-compat/.built
$(MONO_ENV) gacutil -i $(SRCDIR)/mono-basic-compat/Microsoft.VisualBasic.Compatibility.dll -root $(IMAGEDIR)/lib
.PHONY: Microsoft.VisualBasic.Compatibility.dll
imagedir-targets: Microsoft.VisualBasic.Compatibility.dll
clean-build-mono-basic:
rm -rf $(BUILDDIR)/Microsoft.VisualBasic
rm -f $(BUILDDIR)/Microsoft.VisualBasic.dll
.PHONY: clean-build-mono-basic
clean-build: clean-build-mono-basic
VBRUNTIME_TEST_VB_SRCS= \
Microsoft.VisualBasic.CompilerServices/BooleanTypeTest.vb \
Microsoft.VisualBasic.CompilerServices/ByteTypeTest.vb \
Microsoft.VisualBasic.CompilerServices/ConversionsTests.vb \
Microsoft.VisualBasic.CompilerServices/DateTypeTest.vb \
Microsoft.VisualBasic.CompilerServices/DecimalTypeTest.vb \
Microsoft.VisualBasic.CompilerServices/DoubleTypeTest.vb \
Microsoft.VisualBasic.CompilerServices/IntegerTypeTest.vb \
Microsoft.VisualBasic.CompilerServices/LateBindingTests.vb \
Microsoft.VisualBasic.CompilerServices/LateBindingTests2.vb \
Microsoft.VisualBasic.CompilerServices/LateBindingTests3.vb \
Microsoft.VisualBasic.CompilerServices/LateBindingTests4.vb \
Microsoft.VisualBasic.CompilerServices/LateBindingTests5.vb \
Microsoft.VisualBasic.CompilerServices/LateBindingTests6.vb \
Microsoft.VisualBasic.CompilerServices/LongTypeTest.vb \
Microsoft.VisualBasic.CompilerServices/OperatorsTests.vb \
Microsoft.VisualBasic.CompilerServices/ShortTypeTest.vb \
Microsoft.VisualBasic.CompilerServices/SingleTypeTest.vb \
Microsoft.VisualBasic.Devices/ComputerInfoTests.vb \
Microsoft.VisualBasic.Devices/ComputerTests.vb \
Microsoft.VisualBasic.Devices/ClockTests.vb \
Microsoft.VisualBasic.Devices/AudioTests.vb \
Microsoft.VisualBasic.Devices/KeyboardTests.vb \
Microsoft.VisualBasic.Devices/MouseTests.vb \
Microsoft.VisualBasic.Devices/NetworkTests.vb \
Microsoft.VisualBasic.Devices/NetworkAvailableEventArgsTests.vb \
Microsoft.VisualBasic.Devices/PortsTests.vb \
Microsoft.VisualBasic.Devices/ServerComputerTests.vb \
Microsoft.VisualBasic.FileIO/FileSystemTest.vb \
Microsoft.VisualBasic/ErrObjectTests.vb \
Microsoft.VisualBasic/ExceptionFilteringTests.vb \
Microsoft.VisualBasic/GlobalsTests.vb \
Microsoft.VisualBasic/Helper.vb \
Microsoft.VisualBasic/InformationTests.vb \
Microsoft.VisualBasic/InteractionTests.vb \
Microsoft.VisualBasic/StringsTest.vb \
Microsoft.VisualBasic/VBFixedArrayAttributeTest.vb \
Microsoft.VisualBasic/VBFixedStringAttributeTest.vb
# disabled due to compilation errors:
# Microsoft.VisualBasic/FileSystemTestGenerated.vb \
# Microsoft.VisualBasic/FileSystemTests.vb \
# Microsoft.VisualBasic/FileSystemTests2.vb \
VBRUNTIME_TEST_CS_SRCS= \
Microsoft.VisualBasic.CompilerServices/BooleanTypeTest.cs \
Microsoft.VisualBasic.CompilerServices/DecimalTypeTest.cs \
Microsoft.VisualBasic.CompilerServices/DoubleTypeTest.cs \
Microsoft.VisualBasic.CompilerServices/IntegerTypeTest.cs \
Microsoft.VisualBasic.CompilerServices/LongTypeTest.cs \
Microsoft.VisualBasic.CompilerServices/ShortTypeTest.cs \
Microsoft.VisualBasic.CompilerServices/SingleTypeTest.cs \
Microsoft.VisualBasic.CompilerServices/StringTypeTest.cs \
Microsoft.VisualBasic.CompilerServices/UtilsTest.cs \
Microsoft.VisualBasic.FileIO/MalformedLineExceptionTest.cs \
Microsoft.VisualBasic.FileIO/SpecialDirectoriesTest.cs \
Microsoft.VisualBasic.FileIO/TextFieldParserTest.cs \
Microsoft.VisualBasic.Logging/FileLogTraceListener.cs \
Microsoft.VisualBasic.Logging/LogTest.cs \
Microsoft.VisualBasic.Logging/AspLogTest.cs \
Microsoft.VisualBasic.MyServices.Internal/ContextValueTest.cs \
Microsoft.VisualBasic.MyServices/ClipboardProxyTest.cs \
Microsoft.VisualBasic.MyServices/FileSystemProxyTest.cs \
Microsoft.VisualBasic.MyServices/RegistryProxyTest.cs \
Microsoft.VisualBasic.MyServices/SpecialDirectoriesProxyTest.cs \
Microsoft.VisualBasic/CollectionTests.cs \
Microsoft.VisualBasic/ConversionTests.cs \
Microsoft.VisualBasic/DateAndTimeTests.cs \
Microsoft.VisualBasic/ErrObjectTests.cs \
Microsoft.VisualBasic/FinancialTests.cs \
Microsoft.VisualBasic/InformationTests.cs \
Microsoft.VisualBasic/StringsTest.cs \
Microsoft.VisualBasic/VBMathTests.cs \
Microsoft.VisualBasic/Helper.cs
$(BUILDDIR)/net_4_x_Microsoft.VisualBasic_test.dll: $(BUILDDIR)/nunitlite.dll $(BUILDDIR)/Microsoft.VisualBasic.dll $(patsubst %, $(SRCDIR)/mono-basic/vbruntime/Test/%, $(VBRUNTIME_TEST_VB_SRCS))
cd $(SRCDIR_ABS)/mono-basic/vbruntime/Test && $(MONO_ENV) vbc $(VBRUNTIME_TEST_VB_SRCS) -libpath:../../class/lib/net_4_5/ -libpath:$(BUILDDIR_ABS) -vbruntime:$(BUILDDIR_ABS)/Microsoft.VisualBasic.dll -r:nunitlite.dll -imports:System,System.Collections,Microsoft.VisualBasic,NUnit.Framework -optionstrict- -target:library -out:$(BUILDDIR_ABS)/net_4_x_Microsoft.VisualBasic_test.dll
$(TESTS_OUTDIR)/tests-clr/net_4_x_Microsoft.VisualBasic_test.dll: $(BUILDDIR)/net_4_x_Microsoft.VisualBasic_test.dll tests-clr
$(MONO_ENV) MONO_PATH=$(SRCDIR)/mono-basic/class/lib/net_4_5 mono $(TESTS_OUTDIR)/tests-clr/nunit-lite-console.exe $< -explore:$(TESTS_OUTDIR)/tests-clr/net_4_x_Microsoft.VisualBasic_test.dll.testlist && test -f $(TESTS_OUTDIR)/tests-clr/net_4_x_Microsoft.VisualBasic_test.dll.testlist
cp $< $@
$(BUILDDIR)/net_4_x_Microsoft.VisualBasic_CS_test.dll: $(BUILDDIR)/nunitlite.dll $(BUILDDIR)/Microsoft.VisualBasic.dll $(patsubst %, $(SRCDIR)/mono-basic/vbruntime/Test/%, $(VBRUNTIME_TEST_CS_SRCS))
cd $(SRCDIR_ABS)/mono-basic/vbruntime/Test && $(MONO_ENV) csc $(VBRUNTIME_TEST_CS_SRCS) -lib:../../class/lib/net_4_5/ -lib:$(BUILDDIR_ABS) -r:Microsoft.VisualBasic.dll -r:nunitlite.dll -target:library -out:$(BUILDDIR_ABS)/net_4_x_Microsoft.VisualBasic_CS_test.dll
$(TESTS_OUTDIR)/tests-clr/net_4_x_Microsoft.VisualBasic_CS_test.dll: $(BUILDDIR)/net_4_x_Microsoft.VisualBasic_CS_test.dll tests-clr
$(MONO_ENV) MONO_PATH=$(SRCDIR)/mono-basic/class/lib/net_4_5 mono $(TESTS_OUTDIR)/tests-clr/nunit-lite-console.exe $< -explore:$(TESTS_OUTDIR)/tests-clr/net_4_x_Microsoft.VisualBasic_CS_test.dll.testlist && test -f $(TESTS_OUTDIR)/tests-clr/net_4_x_Microsoft.VisualBasic_CS_test.dll.testlist
cp $< $@
tests: $(TESTS_OUTDIR)/tests-clr/net_4_x_Microsoft.VisualBasic_test.dll $(TESTS_OUTDIR)/tests-clr/net_4_x_Microsoft.VisualBasic_CS_test.dll
clean-tests-mono-basic:
rm -f $(BUILDDIR)/net_4_x_Microsoft.VisualBasic_test.dll
rm -f $(BUILDDIR)/net_4_x_Microsoft.VisualBasic_CS_test.dll
.PHONY: clean-tests-mono-basic
clean-build: clean-tests-mono-basic