projects
/
platform
/
core
/
dotnet
/
launcher.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revert PR #509, #510 (#513)
[platform/core/dotnet/launcher.git]
/
NativeLauncher
/
installer-plugin
/
prefer_dotnet_aot_plugin.cc
diff --git
a/NativeLauncher/installer-plugin/prefer_dotnet_aot_plugin.cc
b/NativeLauncher/installer-plugin/prefer_dotnet_aot_plugin.cc
index
57b2182
..
91928a7
100644
(file)
--- a/
NativeLauncher/installer-plugin/prefer_dotnet_aot_plugin.cc
+++ b/
NativeLauncher/installer-plugin/prefer_dotnet_aot_plugin.cc
@@
-17,10
+17,11
@@
#include "ni_common.h"
#include "log.h"
#include "utils.h"
#include "ni_common.h"
#include "log.h"
#include "utils.h"
-#include <vconf.h>
#include <cstring>
#include <vector>
#include <cstring>
#include <vector>
+
+#include <vconf.h>
#include <glib.h>
#include <pkgmgr_installer_info.h>
#include <glib.h>
#include <pkgmgr_installer_info.h>
@@
-55,7
+56,7
@@
extern "C" int PKGMGR_MDPARSER_PLUGIN_INSTALL(const char *pkgId, const char *app
return -1;
}
return -1;
}
- if (metaValue == METADATA_VALUE) {
+ if (metaValue == METADATA_VALUE
_TRUE
) {
_DBG("Prefer dotnet application AOT set TRUE");
if (initNICommon() != NI_ERROR_NONE) {
_DBG("Prefer dotnet application AOT set TRUE");
if (initNICommon() != NI_ERROR_NONE) {
@@
-63,8
+64,13
@@
extern "C" int PKGMGR_MDPARSER_PLUGIN_INSTALL(const char *pkgId, const char *app
return -1;
}
return -1;
}
- DWORD flags = 0;
- if (createNIUnderPkgRoot(pkgId, flags) != NI_ERROR_NONE) {
+ NIOption* opt = getNIOption();
+ if (opt == nullptr) {
+ _ERR("Fail to create option structure.");
+ return -1;
+ }
+
+ if (createNIUnderPkgRoot(pkgId, opt) != NI_ERROR_NONE) {
_ERR("Failed to generate application to native image [%s]", pkgId);
return -1;
}
_ERR("Failed to generate application to native image [%s]", pkgId);
return -1;
}