if (fileName.IndexOf('.') != 2)
continue;
+ string value = System.Environment.GetEnvironmentVariable("TIZEN_UIFW");
+ // if TIZEN_UIFW is not set, do not preload UI related dll
+ if (value == null && (fileName.Contains("NUI") || fileName.Contains("ElmSharp") || fileName.Contains("XSF") ))
+ continue;
+ else if (value == "ElmSharp" && fileName.Contains("NUI"))
+ continue;
+ else if (value == "NUI" && (fileName.Contains("ElmSharp") || fileName.Contains("XSF")))
+ continue;
+
try
{
Console.WriteLine("Start preload : " + fileName);
INSTALL(FILES dotnet.loader DESTINATION ${LOADERDIR})
INSTALL(FILES dotnet.launcher DESTINATION ${LOADERDIR})
INSTALL(FILES dotnet.debugger DESTINATION ${LOADERDIR})
+INSTALL(FILES dotnet-nui.loader DESTINATION ${LOADERDIR})
+INSTALL(FILES dotnet-nui.launcher DESTINATION ${LOADERDIR})
+INSTALL(FILES dotnet-nui.debugger DESTINATION ${LOADERDIR})
INSTALL(FILES inc/coreclr_host.h DESTINATION ${INCLUDEDIR})
INSTALL(FILES inc/dotnet_launcher_plugin.h DESTINATION ${INCLUDEDIR})
INSTALL(FILES inc/ni_common.h DESTINATION ${INCLUDEDIR})
--- /dev/null
+[DEBUGGER]
+NAME LLDB-SERVER
+EXE /home/owner/share/tmp/sdk_tools/lldb/bin/lldb-server
+APP_TYPE dotnet-nui
+EXTRA_KEY __DLP_DEBUG_ARG__
+EXTRA_ENV CORECLR_GDBJIT
+EXTRA_ENV COMPlus_ZapDisable
+
+[DEBUGGER]
+NAME LLDB-MI
+EXE /opt/usr/home/owner/share/tmp/sdk_tools/lldb/bin/lldb-mi
+APP_TYPE dotnet-nui
+EXTRA_KEY __DLP_ATTACH_ARG__
+ATTACH true
+
+[DEBUGGER]
+NAME NETCOREDBG
+EXE /home/owner/share/tmp/sdk_tools/netcoredbg/netcoredbg
+APP_TYPE dotnet-nui
+EXTRA_KEY __DLP_DEBUG_ARG__
+
+[DEBUGGER]
+NAME HEAPTRACK
+EXE /home/owner/share/tmp/sdk_tools/profctl/profctl
+APP_TYPE dotnet-nui
+DEFAULT_OPT -v
+DEFAULT_OPT -p
+DEFAULT_OPT /home/owner/share/tmp/sdk_tools/heaptrack/heaptrack_fifo
+DEFAULT_OPT -w
+DEFAULT_OPT -e
+DEFAULT_OPT /home/owner/share/tmp/sdk_tools/heaptrack/heaptrack_interpret
+DEFAULT_OPT -o
+DEFAULT_OPT /home/owner/share/tmp/sdk_tools/profctl/profctl_heaptrack.log
+DEFAULT_OPT -E
+DEFAULT_OPT DUMP_HEAPTRACK_OUTPUT=/home/owner/share/tmp/sdk_tools/heaptrack/heaptrack_fifo
+DEFAULT_OPT CORECLR_PROFILER={C7BAD323-25F0-4C0B-B354-566390B215CA}
+DEFAULT_OPT CORECLR_PROFILER_PATH=/home/owner/share/tmp/sdk_tools/heaptrack/libprofiler.so
+DEFAULT_OPT CORECLR_ENABLE_PROFILING=1
+DEFAULT_OPT COMPlus_LogEnable=1
+DEFAULT_OPT -c
+DEFAULT_OPT 6005
+DEFAULT_OPT -d
+DEFAULT_OPT 6006
+DEFAULT_OPT --
+
+[DEBUGGER]
+NAME COREPROFILER
+EXE /home/owner/share/tmp/sdk_tools/profctl/profctl
+APP_TYPE dotnet-nui
+DEFAULT_OPT -v
+DEFAULT_OPT -i
+DEFAULT_OPT -p
+DEFAULT_OPT /home/owner/share/tmp/sdk_tools/coreprofiler/trace.log
+DEFAULT_OPT -w
+DEFAULT_OPT -o
+DEFAULT_OPT /home/owner/share/tmp/sdk_tools/profctl/profctl_coreprofiler.log
+DEFAULT_OPT -E
+DEFAULT_OPT CORECLR_PROFILER={101DA8FE-FDCA-4D0E-9712-7639CDE48EBA}
+DEFAULT_OPT CORECLR_PROFILER_PATH=/home/owner/share/tmp/sdk_tools/coreprofiler/libcoreprof.so
+DEFAULT_OPT PROF_TRACE_FILENAME=/home/owner/share/tmp/sdk_tools/coreprofiler/trace.log
+DEFAULT_OPT PROF_CONFIG_FILENAME=/home/owner/share/tmp/sdk_tools/coreprofiler/profiler.config
+DEFAULT_OPT CORECLR_ENABLE_PROFILING=1
+DEFAULT_OPT COMPlus_EnableEventLog=1
+DEFAULT_OPT COMPlus_ZapDisable=1
+DEFAULT_OPT -c
+DEFAULT_OPT 6001
+DEFAULT_OPT -d
+DEFAULT_OPT 6002
+DEFAULT_OPT -s
+DEFAULT_OPT 6003
+DEFAULT_OPT --
+
+[DEBUGGER]
+NAME LIVEPROFILER
+EXE /home/owner/share/tmp/sdk_tools/profctl/profctl
+APP_TYPE dotnet-nui
+DEFAULT_OPT -v
+DEFAULT_OPT -i
+DEFAULT_OPT -p
+DEFAULT_OPT /home/owner/share/tmp/sdk_tools/coreprofiler/trace.log
+DEFAULT_OPT -w
+DEFAULT_OPT -o
+DEFAULT_OPT /home/owner/share/tmp/sdk_tools/profctl/profctl_liveprofiler.log
+DEFAULT_OPT -E
+DEFAULT_OPT CORECLR_PROFILER={101DA8FE-FDCA-4D0E-9712-7639CDE48EBA}
+DEFAULT_OPT CORECLR_PROFILER_PATH=/home/owner/share/tmp/sdk_tools/coreprofiler/libcoreprof.so
+DEFAULT_OPT PROF_TRACE_FILENAME=/home/owner/share/tmp/sdk_tools/coreprofiler/trace.log
+DEFAULT_OPT PROF_CONFIG_FILENAME=/home/owner/share/tmp/sdk_tools/coreprofiler/profiler.config
+DEFAULT_OPT CORECLR_ENABLE_PROFILING=1
+DEFAULT_OPT COMPlus_EnableEventLog=1
+DEFAULT_OPT COMPlus_ZapDisable=1
+DEFAULT_OPT -c
+DEFAULT_OPT 6001
+DEFAULT_OPT -d
+DEFAULT_OPT 6002
+DEFAULT_OPT -s
+DEFAULT_OPT 6003
+DEFAULT_OPT --
+DEFAULT_OPT /home/owner/share/tmp/sdk_tools/netcoredbg/netcoredbg
+EXTRA_KEY __DLP_DEBUG_ARG__
--- /dev/null
+[LAUNCHER]
+NAME dotnet-nui-launcher
+EXE /usr/bin/dotnet-launcher
+APP_TYPE dotnet-nui
+EXTRA_ARG --PADDING_TO_CHANGE_CMDLINE_PADDING_TO_CHANGE_CMDLINE_PADDING_TO_CHANGE_CMDLINE_PADDING_TO_CHANGE_CMDLINE
+EXTRA_ARG --standalone
+
--- /dev/null
+[LOADER]
+NAME dotnet-nui-loader
+EXE /usr/bin/dotnet-loader
+APP_TYPE dotnet-nui
+DETECTION_METHOD TIMEOUT|DEMAND
+TIMEOUT 5000
+ON_BOOT OFF
+HYDRA OFF
+EXTRA TIZEN_UIFW NUI
ON_BOOT OFF
HYDRA OFF
EXTRA --appType dotnet
+EXTRA TIZEN_UIFW ElmSharp
using tizen::runtime::dotnetcore::CoreRuntime;
static const char* KEY_APP_TYPE = "--appType";
+static const char* KEY_TIZEN_UIFW = "TIZEN_UIFW";
static Ecore_Fd_Handler *__fd_handler;
static loader_receiver_cb __receiver;
appType = NULL;
}
+ char *uifw = NULL;
+ char *cmdName = "dotnet-loader";
+
+ bundle_get_str(extra, KEY_TIZEN_UIFW, &uifw);
+ if (uifw != NULL) {
+ setenv(KEY_TIZEN_UIFW, uifw, 1);
+ _INFO("TIZEN_UIFW is set to %s", uifw);
+
+ if (strcmp(uifw, "NUI") == 0) {
+ cmdName = "nui-loader";
+ }
+ }
+
+ setCmdName(cmdName);
+
+ // initialize CoreRuntime (launchmode, dlog redirection enable, root path NULL)
if (CoreRuntime::initialize(appType ? appType : "dotnet", LaunchMode::loader) != 0) {
_ERR("Failed to initialized");
} else {
"/usr/bin/dotnet-loader");
}
- setCmdName("dotnet-loader");
-
loader_lifecycle_callback_s callbacks = {
.create = __loader_create_cb,
.launch = __loader_launch_cb,
%{_loaderdir}/dotnet.loader
%{_loaderdir}/dotnet.launcher
%{_loaderdir}/dotnet.debugger
+%{_loaderdir}/dotnet-nui.loader
+%{_loaderdir}/dotnet-nui.launcher
+%{_loaderdir}/dotnet-nui.debugger
%{_native_lib_dir}/libsqlite3.so
%{_bindir}/nitool
%{_bindir}/tpatool