Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy lib mono system native #1450

Merged
merged 5 commits into from
Apr 10, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions mono-packaging/copy-mono.sh
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,8 @@ _copy_runtime_assets() {
local mono_etc_path=""
local libMonoPosixHelper_name=""
local libMonoBtlsShared_name=""
local libMonoSystemNative_name=""
local libMonoSystemNative_target_name=""

if [ "$os" = "$OS_MAC" ]; then
mono_base_path=/Library/Frameworks/Mono.framework/Versions/Current
Expand All @@ -179,21 +181,28 @@ _copy_runtime_assets() {
mono_lib_path=$mono_base_path/lib
mono_etc_path=$mono_base_path/etc/mono
libMonoPosixHelper_name=libMonoPosixHelper.dylib
libMonoSystemNative_name=libmono-system-native.0.dylib
libMonoSystemNative_target_name=libmono-system-native.dylib
else # Linux
mono_runtime_path=/usr/bin/mono-sgen
mono_lib_path=/usr/lib
mono_etc_path=/etc/mono
libMonoPosixHelper_name=libMonoPosixHelper.so
libMonoBtlsShared_name=libmono-btls-shared.so
libMonoSystemNative_name=libmono-system-native.so.0.0.0
libMonoSystemNative_target_name=libmono-system-native.so
fi

local mono_libMonoSystemNative_path=$mono_lib_path/$libMonoSystemNative_name
local mono_libMonoPosixHelper_path=$mono_lib_path/$libMonoPosixHelper_name
local mono_libMonoBtlsShared_path=$mono_lib_path/$libMonoBtlsShared_name
local mono_config_path=$mono_etc_path/config
local mono_machine_config_path=$mono_etc_path/4.5/machine.config

_verify_file "$mono_runtime_path"
_verify_file "$mono_libMonoPosixHelper_path"
_verify_file "$mono_libMonoSystemNative_path"

_verify_file "$mono_libMonoBtlsShared_path"
_verify_file "$mono_config_path"
_verify_file "$mono_machine_config_path"
Expand All @@ -213,12 +222,15 @@ _copy_runtime_assets() {

target_runtime_path=$target_bin_path/mono
target_libMonoPosixHelper_path=$target_lib_path/$libMonoPosixHelper_name
target_liblibMonoSystemNative_path=$target_lib_path/$libMonoSystemNative_target_name

target_libMonoBtlsShared_path=$target_lib_path/$libMonoBtlsShared_name
target_config_path=$target_etc_path/config
target_machine_config_path=$target_etc_path/mono/4.5/machine.config

cp "$mono_runtime_path" "$target_runtime_path"
cp "$mono_libMonoPosixHelper_path" "$target_libMonoPosixHelper_path"
cp "$mono_libMonoSystemNative_path" "$target_liblibMonoSystemNative_path"
cp "$mono_libMonoBtlsShared_path" "$target_libMonoBtlsShared_path"
cp "$mono_config_path" "$target_config_path"
cp "$mono_machine_config_path" "$target_machine_config_path"
Expand Down