mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-16 17:10:20 -10:00
The compiler seems to ignore reference assemblies with a full path when the
-lib: directive is passed, so things like:
-lib:FOO -r:BAR/bar.dll
Would resolve bar.dll to FOO/bar.dll, instead of BAR/bar.dll.
This is a problem with the test suite as it needs to reference the
final build of System.Configuration from $(the_libdir_base) and not
the intermediate step.
To work around this issue, we introduce "test_remove" variable that is
a piece of text that will be removed from the TEST_COMPILE variable
when this is evaluated.
This means that it gets CSCOMPILE and then it removes the bits that we
are not interested in.
33 lines
842 B
Makefile
33 lines
842 B
Makefile
thisdir = class/System.Configuration
|
|
SUBDIRS =
|
|
|
|
include ../../build/rules.make
|
|
|
|
LIBRARY = System.Configuration.dll
|
|
|
|
LOCAL_MCS_FLAGS = -lib:$(secxml_libdir) -lib:$(bare_libdir)
|
|
test_remove = $(LOCAL_MCS_FLAGS)
|
|
LIB_MCS_FLAGS = -r:$(corlib) -r:System.dll -r:System.Xml.dll -r:System.Security.dll -nowarn:618
|
|
TEST_MCS_FLAGS = $(LIB_MCS_FLAGS)
|
|
|
|
include ../../build/library.make
|
|
|
|
configuration_library_deps = \
|
|
$(secxml_libdir)/System.dll \
|
|
$(the_libdir_base)System.Security.dll \
|
|
$(bare_libdir)/System.Xml.dll
|
|
|
|
$(build_lib): $(configuration_library_deps)
|
|
|
|
.NOTPARALLEL: $(configuration_library_deps)
|
|
|
|
$(secxml_libdir)/System.dll:
|
|
@echo System.Configuration: GETTING: $@
|
|
(cd ../System; $(MAKE) $@)
|
|
|
|
$(the_libdir_base)System.Security.dll:
|
|
(cd ../System.Security; $(MAKE) $@)
|
|
|
|
$(bare_libdir)/System.Xml.dll:
|
|
(cd ../System.XML; $(MAKE) $@)
|