2015-08-26 07:17:56 -04:00
|
|
|
thisdir = class/System.Windows.Forms
|
2014-08-13 10:39:27 +01:00
|
|
|
include ../../build/rules.make
|
|
|
|
|
|
|
|
LIBRARY = System.Windows.Forms.dll
|
|
|
|
|
2015-08-26 07:17:56 -04:00
|
|
|
LIB_REFS = System System.Xml System.Drawing Accessibility System.Data Mono.Posix Mono.WebBrowser System.Configuration System.Runtime.Serialization.Formatters.Soap
|
2017-10-19 20:04:20 +00:00
|
|
|
KEYFILE = ../ecma.pub
|
2014-08-13 10:39:27 +01:00
|
|
|
LIB_MCS_FLAGS = /unsafe \
|
|
|
|
@System.Windows.Forms.dll.resources \
|
|
|
|
-nowarn:618,612,809
|
|
|
|
|
|
|
|
ifeq (true, $(GENERATE_RESOURCES))
|
|
|
|
LIB_MCS_FLAGS += /define:GENERATING_RESOURCES
|
|
|
|
endif
|
|
|
|
|
|
|
|
RESX_RESOURCES = \
|
2018-01-24 17:04:36 +00:00
|
|
|
resources/keyboards.resources \
|
|
|
|
resources/System.Windows.Forms.resources
|
2015-08-26 07:17:56 -04:00
|
|
|
|
2014-08-13 10:39:27 +01:00
|
|
|
CLEAN_FILES += $(RESX_RESOURCES)
|
|
|
|
|
|
|
|
CUR_RESOURCES = resources/NWSE.cur resources/NESW.cur \
|
|
|
|
resources/SplitterNS.cur \
|
|
|
|
resources/SplitterWE.cur \
|
|
|
|
resources/NWSE.cur \
|
|
|
|
resources/NESW.cur \
|
|
|
|
resources/DnDNo.cur \
|
|
|
|
resources/DnDCopy.cur \
|
|
|
|
resources/DnDLink.cur \
|
|
|
|
resources/DnDMove.cur
|
|
|
|
|
|
|
|
RESOURCES = $(RESX_RESOURCES) $(CUR_RESOURCES)
|
|
|
|
|
|
|
|
PREBUILT = $(RESX_RESOURCES:=.prebuilt)
|
|
|
|
|
|
|
|
IMAGES_RESOURCES = \
|
|
|
|
resources/16_computer.png \
|
|
|
|
resources/32_computer.png \
|
|
|
|
resources/computer.png \
|
|
|
|
resources/16_document-open.png \
|
|
|
|
resources/32_document-open.png \
|
|
|
|
resources/document-open.png \
|
|
|
|
resources/16_folder.png \
|
|
|
|
resources/folder-new.png \
|
|
|
|
resources/folder.png \
|
|
|
|
resources/16_folder-remote.png \
|
|
|
|
resources/32_folder-remote.png \
|
|
|
|
resources/folder-remote.png \
|
|
|
|
resources/go-previous.png \
|
|
|
|
resources/go-top.png \
|
|
|
|
resources/22_page-magnifier.png \
|
|
|
|
resources/preferences-system-windows.png\
|
|
|
|
resources/16_printer.png \
|
|
|
|
resources/32_printer.png \
|
|
|
|
resources/text-x-generic.png \
|
|
|
|
resources/16_user-desktop.png \
|
|
|
|
resources/32_user-desktop.png \
|
|
|
|
resources/user-desktop.png \
|
|
|
|
resources/16_user-home.png \
|
|
|
|
resources/32_user-home.png \
|
|
|
|
resources/user-home.png \
|
|
|
|
resources/16_dialog-error.png \
|
|
|
|
resources/16_dialog-information.png \
|
|
|
|
resources/16_dialog-warning.png \
|
|
|
|
resources/1-up.png \
|
|
|
|
resources/2-up.png \
|
|
|
|
resources/3-up.png \
|
|
|
|
resources/4-up.png \
|
|
|
|
resources/6-up.png \
|
|
|
|
resources/nav_delete.png \
|
|
|
|
resources/nav_end.png \
|
|
|
|
resources/nav_first.png \
|
|
|
|
resources/nav_previous.png \
|
|
|
|
resources/nav_next.png \
|
|
|
|
resources/nav_plus.png \
|
|
|
|
resources/image-missing.png \
|
|
|
|
resources/image-x-generic.png \
|
|
|
|
resources/propertygrid-alphabetical.png \
|
|
|
|
resources/propertygrid-categorized.png \
|
|
|
|
resources/EventsTab.bmp \
|
|
|
|
resources/PropertiesTab.bmp \
|
|
|
|
resources/propertygrid-propertypages.png \
|
|
|
|
resources/mono.ico \
|
|
|
|
resources/errorProvider.ico
|
|
|
|
|
|
|
|
|
|
|
|
TEST_DISTFILES = \
|
|
|
|
M.gif \
|
|
|
|
Test/resources/a.cur \
|
|
|
|
Test/resources/32x32.ico \
|
|
|
|
Test/System.Resources/compat_1_1.resx \
|
|
|
|
Test/System.Resources/compat_2_0.resx \
|
2014-09-04 09:07:35 +01:00
|
|
|
Test/System.Windows.Forms/bitmaps/a.png \
|
2017-06-07 13:16:24 +00:00
|
|
|
Test/simple/Program.cs \
|
2014-09-04 09:07:35 +01:00
|
|
|
Test/DummyAssembly/AnotherSerializable.cs \
|
|
|
|
Test/DummyAssembly/Convertable.cs \
|
|
|
|
Test/DummyAssembly/Properties/AssemblyInfo.cs \
|
2014-08-13 10:39:27 +01:00
|
|
|
|
|
|
|
EXTRA_DISTFILES = \
|
|
|
|
README System.Windows.Forms.dll.resources \
|
2014-10-04 11:27:48 +01:00
|
|
|
$(RESX_RESOURCES:.resources=.resx) $(CUR_RESOURCES) $(PREBUILT) \
|
2014-08-13 10:39:27 +01:00
|
|
|
$(IMAGES_RESOURCES) \
|
|
|
|
$(TEST_DISTFILES)
|
|
|
|
|
2016-08-03 10:59:49 +00:00
|
|
|
TEST_LIB_REFS = System.Data System.Drawing Accessibility System System.Xml System.Runtime.Serialization.Formatters.Soap
|
|
|
|
TEST_MCS_FLAGS = \
|
2014-08-13 10:39:27 +01:00
|
|
|
-resource:Test/resources/a.cur,a.cur \
|
|
|
|
-resource:Test/resources/32x32.ico,32x32.ico \
|
|
|
|
-nowarn:618,612
|
|
|
|
|
2014-09-04 09:07:35 +01:00
|
|
|
DummyAssembly.dll:
|
2016-08-03 10:59:49 +00:00
|
|
|
$(CSCOMPILE) /target:library /out:$@ Test/DummyAssembly/AnotherSerializable.cs Test/DummyAssembly/Convertable.cs Test/DummyAssembly/Properties/AssemblyInfo.cs \
|
2018-05-10 08:37:03 +00:00
|
|
|
-r:$(topdir)/class/lib/$(PROFILE)/mscorlib.dll -r:$(topdir)/class/lib/$(PROFILE)/System.dll
|
2014-09-04 09:07:35 +01:00
|
|
|
|
|
|
|
test-local: DummyAssembly.dll
|
|
|
|
|
2014-08-13 10:39:27 +01:00
|
|
|
include ../../build/library.make
|
|
|
|
|
2017-10-19 20:04:20 +00:00
|
|
|
TEST_HARNESS_EXCLUDES = -exclude=Interactive,NotWorking,CAS
|
2014-08-13 10:39:27 +01:00
|
|
|
TEST_HARNESS_EXCLUDES_ONDOTNET = -exclude=Interactive,NotDotNet,CAS
|
|
|
|
|
|
|
|
$(the_lib): $(RESOURCES)
|
|
|
|
|
|
|
|
$(RESX_RESOURCES): %.resources: %.resx
|
|
|
|
$(RESGEN) $< || cp $@.prebuilt $@
|
|
|
|
|
|
|
|
$(LIBRARY): $(CUR_RESOURCES)
|
|
|
|
|
|
|
|
$(PREBUILT): %.prebuilt: %
|
|
|
|
cp $* $@
|
|
|
|
|
|
|
|
dist-default: $(PREBUILT)
|
2017-06-07 13:16:24 +00:00
|
|
|
|
2018-05-10 08:37:03 +00:00
|
|
|
simple-test.exe: Test/simple/Program.cs $(topdir)/class/lib/$(PROFILE)/System.Windows.Forms.dll $(topdir)/class/lib/$(PROFILE)/mscorlib.dll
|
|
|
|
$(CSCOMPILE) -out:$@ Test/simple/Program.cs -r:$(topdir)/class/lib/$(PROFILE)/System.Windows.Forms.dll -r:$(topdir)/class/lib/$(PROFILE)/mscorlib.dll
|
2017-06-07 13:16:24 +00:00
|
|
|
|
|
|
|
test-simple: simple-test.exe
|
2018-01-24 17:04:36 +00:00
|
|
|
$(TEST_RUNTIME) $(TEST_RUNTIME_FLAGS) simple-test.exe
|
2018-05-10 08:37:03 +00:00
|
|
|
|
|
|
|
notepad.exe: samples/notepad.cs $(topdir)/class/lib/$(PROFILE)/System.Windows.Forms.dll $(topdir)/class/lib/$(PROFILE)/System.Drawing.dll $(topdir)/class/lib/$(PROFILE)/System.dll $(topdir)/class/lib/$(PROFILE)/mscorlib.dll
|
|
|
|
$(CSCOMPILE) -out:$@ samples/notepad.cs -r:$(topdir)/class/lib/$(PROFILE)/System.Windows.Forms.dll -r:$(topdir)/class/lib/$(PROFILE)/System.Drawing.dll -r:$(topdir)/class/lib/$(PROFILE)/System.dll -r:$(topdir)/class/lib/$(PROFILE)/mscorlib.dll
|
|
|
|
|
|
|
|
test-notepad: notepad.exe
|
|
|
|
$(TEST_RUNTIME) $(TEST_RUNTIME_FLAGS) notepad.exe
|