Mono(mkbundle) Mono(mkbundle) (NAME) mkbundle, mkbundle2 - . (SYNOPSIS) mkbundle [options] assembly1 [assembly2 ...] (DESCRIPTION) mkbundle . . <<--deps>> . Mono --cross --sdk --runtime . (stub) C libmono C . <> . hello world : $ mkbundle -o hello --simple hello.exe Mono --options . <<-O=-inline>> (inlining) : $ mkbundle -o hello --options -O=-inline --simple hello.exe (simple) (cross-compiling) Mono ~/.mono/targets/TARGET/mono . <<--local-targets>> <<--cross>> : $ mkbundle --local-targets Available targets: default - Current System Mono 4.4.0-macosx-x86 4.4.0-debian-8-arm64 $ mkbundle --cross 4.4.0-debian-8-powerpc hello.exe -o hello-debian hello-debian Debian 8 PowerPC . Mono --list-targets --fetch-target : $ mkbundle --list-targets Cross-compilation targets available: 4.4.0-linux-libc2.13-amd64 4.4.0-linux-libc2.13-armel 4.4.0-linux-libc2.13-armhf 4.4.0-linux-libc2.13-i386 4.4.0-macos-10.7-amd64 4.4.0-macos-10.7-i386 4.4.2-linux-libc2.13-amd64 4.4.2-linux-libc2.13-armel 4.4.2-linux-libc2.13-armhf 4.4.2-linux-libc2.13-i386 4.4.2-macos-10.7-amd64 4.4.2-macos-10.7-i386 $ mkbundle --fetch-target 4.4.2-macos-10.7-i386 Mono MacOS : $ mkbundle --cross 4.4.2-macos-10.7-i386 hello.exe -o hello-macos ~/.mono/targets ..SH " (OPTIONS)" --config FILE DLLMAP Mono . (cross compiler) ( ). --config-dir DIR DIR MONO_CFG_DIR . --cross target mkbundle . (target platform) . ~/.mono/targets/ SDK ( mono-package-runtime) . --list-targets (runtime) --fetch-target (fetch) . --sdk Mono --runtime ( ). --deps . (self- contained) . --env KEY=VALUE (hardcode) KEY VALUE . Mono . --fetch-target target Mono . --i18n encoding . Mono I18N.dll I18N.West.dll . System.Text.Encoding.GetEncoding (West) . none I18N.dll (linker) . all . CJK MidWest Other Rare West . -L path `path' . -lib: -L . --library [LIB,]PATH `PATH' `LIB' . (native) . . --lists-targets Mono . --local-targets . --cil-strip PATH CIL ( CIL stripper) mkbundle . AOT . --in-tree path/to/mono/source/root Mono mkbundle . mkbundle . --managed-linker PATH mkbundle (managed linker) . --machine-config FILE FILE machine.config . XML API System.Configuration .NET . $prefix/etc/mono/4.5/machine.config. --no-machine-config . machine.config ( ). --no-config mkbundle . --nodeps : mkbundle . --no-machine-config machine.config mkbundle . -o filename `filename' . -c C . . --options OPTS Mono . OPTS . Mono . MONO_ENV_OPTIONS . --sdk SDK_PATH mkbundle (SDK) Mono . SDK (prefix) Mono SDK_PATH/bin/mono SDK_PATH/lib/mono/4.5 . mkbundle (unmanaged) . --cross ( ). --target-server SERVER mkbundle Mono . --mono-api-struct-path FILE FILE BundleMonoAPI Mono API . Mono (embed) API Mono ( Xamarin.Android ). FILE void initialize_mono_api (const BundleMonoAPI *info) void mono_mkbundle_init () . initialize_mono_api initialize_mono_api . . bundle- mono-api.inc mkbundle Mono (mcs/tools/mkbundle) Mono https://github.com/mono/mono/blob/master/mcs/tools/mkbundle/bundle- mono-api.inc . Mono . mkbundle_log_error :.nf static void mkbundle_log_error (const char *format, ...) {} API (logging) . (OLD EMBEDDING) (stub) C C . C . . hello world : $ mkbundle -o hello hello.exe hello.exe "hello" . CIL . -c mkbundle . (link) . (static) : $ mkbundle -c -o host.c -oo bundles.o --deps hello.exe $ cc host.c bundles.o /usr/lib/libmono.a -lc -lrt mkbundle Mono . -c --nomain . host.c main() . JIT mono_mkbundle_init() . (OLD EMBEDDING OPTIONS) --cross, --runtime --simple . -c (stub) . -oo filename (object file) . --keeptemp mkbundle . . --nomain -c main() . --static mkbundle mono glib . (static) . -z . zlib . AOT (AOT OPTIONS) mkbundle AOT . (native compiler toolchain) . --aot-runtime PATH mono AOT . --aot-dedup () AOT ( ) . --aot-mode MODE MODE "full" "llvmonly" . mkbundle AOT . ( ) AOT (runtime codegen) . "full" . "llvmonly" llvm ..SH " (WINDOWS)" Windows cygwin gcc gcc-mingw VC Visual Studio 2015/2017 Clang Visual Studio . Clang "Clang/C2" Visual Studio . Visual Studio mkbundle Visual Studio Windows SDK . Visual Studio mkbundle . (ENVIRONMENT VARIABLES) AS . "as" . Visual Studio "clang.exe" . "clang.exe" Visual Studio mkbundle "as" . CC C. Linux "cc" cygwin "gcc" Visual Studio "cl.exe" . MONO_BUNDLED_OPTIONS Mono . mono(1) mono --help . (WINDOWS VISUAL STUDIO ENVIRONMENT VARIABLES) VisualStudioVersion Visual Studio mkbundle. Visual Studio . "14.0" Visual Studio 2015 "15.0" Visual Studio 2017. WindowsSdkVersion Windows SDK mkbundle. / Windows SDK . : "8.1" "10.0.10240.0" "10.0.15063.0" . VSCMD_ARG_TGT_ARCH mkbundle. / .NET mkbundle . "x86" "x64". : Visual Studio . INCLUDE include "cl.exe". Visual Studio mkbundle . LIB "link.exe". Visual Studio mkbundle . MONOPREFIX Mono SDK (x86/x64). mkbundle Mono SDK . MONOLIB mono mono . mkbundle / mono . : mono / mkbundle . VCCRT C (CRT). "MD" mkbundle C Mono SDK . Mono C-Runtime "MT" C- runtime . VCSUBSYSTEM . "windows" . "console" . : "console" . (FILES) Mono . ~/.mono/targets/TARGETNAME/mono . (BUGS) (MAILING LISTS) http://lists.ximian.com/mailman/listinfo/mono-devel-list . (WEB SITE) http://www.mono-project.com . (SEE ALSO) mcs(1),mono(1),mono-config(5). Mono(mkbundle)