From: Josh Peterson Date: Tue, 18 Apr 2017 18:17:10 +0000 (-0400) Subject: Separate the eglib source and build instructions X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=mono.git;a=commitdiff_plain;h=0c20ba842f76623f0b6e934e387c8d20f9d1e052 Separate the eglib source and build instructions This change extracts the eglib source files from the build instuctions for builds via MSVC on Windows. It also separates the source files into platform-specific and common .targets files. This provides more flexibility for builds from MSVC in a few important ways: 1. We can do MSVC-based builds for platforms that will not be pushed to public repos by checking out the Mono code externally and importing the .targets files into a custom .vcxproj for the platform. 2. We can replace the platform specific .targets files with a custom set of source files to implement a different platform abstraction layer that will not be public without the need to merge changes to the .vcxproj from the public repo. This allows for ease of synchronizing changes to the public Mono repo with private forks, while _not_ changing the behavior of the code in the public repo. --- diff --git a/msvc/eglib-common.targets b/msvc/eglib-common.targets new file mode 100644 index 00000000000..0b72e5a97e9 --- /dev/null +++ b/msvc/eglib-common.targets @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/msvc/eglib-posix.targets b/msvc/eglib-posix.targets new file mode 100644 index 00000000000..ab3165e3e8c --- /dev/null +++ b/msvc/eglib-posix.targets @@ -0,0 +1,6 @@ + + + + + + diff --git a/msvc/eglib-win32.targets b/msvc/eglib-win32.targets new file mode 100644 index 00000000000..b95abe37f8c --- /dev/null +++ b/msvc/eglib-win32.targets @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/msvc/eglib.vcxproj b/msvc/eglib.vcxproj index 98a8849ab35..5e482d86b45 100644 --- a/msvc/eglib.vcxproj +++ b/msvc/eglib.vcxproj @@ -150,44 +150,9 @@ $(IntDir)$(TargetName).pdb - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + {92ae7622-5f58-4234-9a26-9ec71876b3f4} @@ -199,4 +164,4 @@ - \ No newline at end of file + diff --git a/msvc/eglib.vcxproj.filters b/msvc/eglib.vcxproj.filters index f49e42ae159..e2ed0ac9a40 100644 --- a/msvc/eglib.vcxproj.filters +++ b/msvc/eglib.vcxproj.filters @@ -1,108 +1,108 @@  - + Source Files - + Source Files - + Source Files - + Source Files - + Source Files - + Source Files - + Source Files - + Source Files - + Source Files - + Source Files - + Source Files - + Source Files - + Source Files - + Source Files - + Source Files - + Source Files - + Source Files - + Source Files - + Source Files - + Source Files - + Source Files - + Source Files - + Source Files - + Source Files - + Source Files - + Source Files - + Source Files - + Source Files - + Source Files - + Source Files - + Header Files - + Header Files - + Header Files - + Header Files @@ -122,4 +122,4 @@ Resource Files - \ No newline at end of file + diff --git a/msvc/mono.props b/msvc/mono.props index abc81a55abd..4ef38268b18 100644 --- a/msvc/mono.props +++ b/msvc/mono.props @@ -17,7 +17,8 @@ false - $(MSBuildProjectDirectory)/.. + .. + $(MSBuildProjectDirectory)/$(MonoSourceLocation) $(top_srcdir) $(MONO_DIR)/mono $(MONO_DIR)/eglib;$(MONO_DIR)/eglib/include;$(MONO_DIR)/eglib/test @@ -103,4 +104,4 @@ $(MONO_BUILD_DIR_PREFIX)$(Platform)/lib/$(Configuration) - \ No newline at end of file +