Skip to content

Commit caad2c9

Browse files
committed
[monodroid] Remove dependency on $(MonoSourceFullPath)/support/{zlib-helper,nl}.c
These are now compiled in as part of `libmonosgen-2.0.so`, and the BCL more simply InternalCall into the runtime.
1 parent 399886e commit caad2c9

File tree

3 files changed

+1
-15
lines changed

3 files changed

+1
-15
lines changed

src/monodroid/CMakeLists.txt

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,6 @@ if(NOT DEFINED SGEN_BRIDGE_VERSION)
1818
message(FATAL_ERROR "Please set the SGEN_BRIDGE_VERSION variable on command line (-DSGEN_BRIDGE_VERSION=VERSION)")
1919
endif()
2020

21-
if(NOT DEFINED MONO_PATH)
22-
message(FATAL_ERROR "Please set the MONO_PATH variable on command line (-DMONO_PATH=PATH)")
23-
else()
24-
string(REPLACE "\\" "/" MONO_PATH ${MONO_PATH})
25-
endif()
26-
2721
if(NOT ANDROID)
2822
if (NOT DEFINED JDK_INCLUDE)
2923
message(FATAL_ERROR "Please set the JDK_INCLUDE variable on command line (-DJDK_INCLUDE)")
@@ -223,7 +217,6 @@ if (DEFINED CONFIGURATION)
223217
include_directories("../../bin/${CONFIGURATION}/include")
224218
include_directories("../../bin/${CONFIGURATION}/include/${ANDROID_ABI}/eglib")
225219
endif()
226-
include_directories("${MONO_PATH}/mono/eglib")
227220
include_directories("jni/zip")
228221
include_directories("${JAVA_INTEROP_SRC_PATH}")
229222

@@ -233,7 +226,6 @@ check_include_files("linux/rtnetlink.h" HAVE_LINUX_RTNETLINK_H)
233226
set(SOURCES_DIR ${TOP_DIR}/jni)
234227
set(MONODROID_SOURCES
235228
${MONODROID_SOURCES}
236-
${MONO_PATH}/support/zlib-helper.c
237229
${SOURCES_DIR}/android-system.cc
238230
${SOURCES_DIR}/cpu-arch-detect.cc
239231
${SOURCES_DIR}/debug-constants.cc
@@ -256,7 +248,6 @@ set(MONODROID_SOURCES
256248
if(UNIX)
257249
set(MONODROID_SOURCES
258250
${MONODROID_SOURCES}
259-
${MONO_PATH}/support/nl.c
260251
${SOURCES_DIR}/debug.cc
261252
${SOURCES_DIR}/monodroid-networkinfo.cc
262253
${SOURCES_DIR}/xamarin_getifaddrs.cc

src/monodroid/monodroid.csproj

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,6 @@
4646
<Name>jnimarshalmethod-gen</Name>
4747
<ReferenceOutputAssembly>False</ReferenceOutputAssembly>
4848
</ProjectReference>
49-
<ProjectReference Include="..\..\src\mono-runtimes\mono-runtimes.csproj">
50-
<Project>{C03E6CF1-7460-4CDC-A4AB-292BBC0F61F2}</Project>
51-
<Name>mono-runtimes</Name>
52-
<ReferenceOutputAssembly>False</ReferenceOutputAssembly>
53-
</ProjectReference>
5449
<ProjectReference Include="..\..\build-tools\linux-mingw-dependencies\linux-mingw-dependencies.csproj">
5550
<Project>{2C1C68CD-CFED-4DEB-A2D3-61D6932F3E8E}</Project>
5651
<Name>linux-mingw-dependencies</Name>

src/monodroid/monodroid.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</PropertyGroup>
1313

1414
<PropertyGroup>
15-
<_CommonDefines>-DJDK_INCLUDE="@(JdkIncludePath->'%(Identity)', ' ')" -DMONO_PATH=$(MonoSourceFullPath) -DSGEN_BRIDGE_VERSION=$(MonoSgenBridgeVersion)</_CommonDefines>
15+
<_CommonDefines>-DJDK_INCLUDE="@(JdkIncludePath->'%(Identity)', ' ')" -DSGEN_BRIDGE_VERSION=$(MonoSgenBridgeVersion)</_CommonDefines>
1616
<_CmakeCommonHostFlags>$(_CmakeCommonFlags) $(_CommonDefines) -DENABLE_NDK=OFF</_CmakeCommonHostFlags>
1717

1818
<_CmakeMxeCommonFlags>$(_CmakeCommonFlags) $(_CommonDefines) -DENABLE_NDK=OFF</_CmakeMxeCommonFlags>

0 commit comments

Comments
 (0)