Makefile 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. thisdir = class/System.Core
  2. SUBDIRS =
  3. include ../../build/rules.make
  4. LIBRARY = System.Core.dll
  5. ifeq ($(PROFILE),build)
  6. CSC_RUNTIME_FLAGS=--profile=aot:output=$(topdir)/class/lib/$(PROFILE)/csc.$(LIBRARY).aotprofile
  7. endif
  8. REFERENCE_SOURCES_FLAGS = -d:FEATURE_PAL,PFX_LEGACY_3_5,FEATURE_NETCORE
  9. LIB_REFS = System
  10. LIB_MCS_FLAGS = $(REFERENCE_SOURCES_FLAGS) -d:INSIDE_SYSCORE -d:LIBC -unsafe -nowarn:436
  11. TXT_RESOURCE_STRINGS = ../referencesource/System.Core/System.Core.txt
  12. RESX_RESOURCE_STRING = \
  13. ../../../external/corefx/src/System.Linq.Expressions/src/Resources/Strings.resx \
  14. ../../../external/corefx/src/System.Linq/src/Resources/Strings.resx \
  15. ../../../external/corefx/src/System.Linq.Parallel/src/Resources/Strings.resx \
  16. ../../../external/corefx/src/System.Linq.Queryable/src/Resources/Strings.resx
  17. LIBRARY_WARN_AS_ERROR = yes
  18. ifneq (2.1, $(FRAMEWORK_VERSION))
  19. LIB_MCS_FLAGS += -d:NET_3_5
  20. endif
  21. ifdef AOT_FRIENDLY_PROFILE
  22. extra_test_flags := -exclude:NotWorkingLinqInterpreter
  23. LIB_MCS_FLAGS += -d:NO_FEATURE_STATIC_DELEGATE,FEATURE_MAKE_RUN_METHODS
  24. else
  25. LIB_MCS_FLAGS += -d:FEATURE_COMPILE,FEATURE_COMPILE_TO_METHODBUILDER,FEATURE_PDB_GENERATOR
  26. endif
  27. ifeq (monotouch_runtime, $(PROFILE))
  28. LIB_MCS_FLAGS += -d:FULL_AOT_RUNTIME
  29. endif
  30. ifneq (basic, $(PROFILE))
  31. ifneq (2.1, $(FRAMEWORK_VERSION))
  32. LIB_REFS += Mono.Posix
  33. endif
  34. endif
  35. CC_PROFILE := $(filter monotouch% xammac, $(PROFILE))
  36. ifdef CC_PROFILE
  37. BUILT_SOURCES = \
  38. ../corlib/CommonCrypto/AesManaged.g.cs \
  39. ../corlib/CommonCrypto/AesCryptoServiceProvider.g.cs
  40. ../corlib/CommonCrypto/%.g.cs:
  41. $(MAKE) -C ../corlib/CommonCrypto
  42. endif
  43. TEST_MCS_FLAGS = $(LIB_MCS_FLAGS)
  44. XTEST_LIB_REFS = System Facades/System.Threading.Tasks Microsoft.CSharp Facades/System.Text.RegularExpressions Facades/System.Reflection Facades/System.Reflection.Extensions Facades/System.Runtime.InteropServices.RuntimeInformation Facades/System.Reflection.Emit
  45. # FEATURE_INTERPRET, FEATURE_COMPILE, NO_FEATURE_STATIC_DELEGATE
  46. XTEST_LIB_FLAGS = -unsafe -d:FEATURE_COMPILE
  47. XTEST_RESX_RESOURCE_STRING = ../../../external/corefx/src/System.Collections.Immutable/src/Resources/Strings.resx
  48. include ../../build/library.make
  49. TEST_HARNESS_EXCLUDES += $(extra_test_flags)