#define NI_FLAGS_SKIP_RO_APP 0x0400
#define NI_FLAGS_RM_ORIGIN_AFTER_NI 0x0800
#define NI_FLAGS_SET_PRIORITY 0x1000
-#define NI_FLAGS_RESOURCE_NI 0x2000
typedef std::function<void (std::string)> afterCreate;
} else {
dllPath = concatPath(niDirPath, fileName);
}
- } else if (opt->flags & NI_FLAGS_RESOURCE_NI) {
- std::string rpkDir = concatPath(__pm->getAppRootPath(), APP_NI_SUB_DIR);
- dllPath = createDir(rpkDir) ? concatPath(rpkDir, fileName) : concatPath(__pm->getAppRootPath(), fileName);
}
size_t index = dllPath.find_last_of(".");
}
}
- if (opt->flags & NI_FLAGS_RESOURCE_NI) {
- moveFile(niPath, changeExtension(dllPath, ".dll", ".ni.dll"));
- removeAll(concatPath(__pm->getAppRootPath(), APP_NI_SUB_DIR));
- }
-
if (!(opt->flags & NI_FLAGS_INPUT_BUBBLE && opt->flags & NI_FLAGS_NO_PIPELINE)) {
_SOUT("Native image %s generated successfully.", outFile.c_str());
}
std::string targetDirs;
if (isRPK(pkgId)) {
opt->flags &= ~NI_FLAGS_APPNI; // added to exclude logic of APP_NI
- opt->flags |= NI_FLAGS_RESOURCE_NI; // added flag for RPK type
opt->flags |= NI_FLAGS_NO_PIPELINE; // added the flag to set the output path
std::string paths = getResourcePaths(rootPath);
targetDirs = paths;
} else {
opt->flags |= NI_FLAGS_APPNI;
- opt->flags &= ~NI_FLAGS_RESOURCE_NI; // added to exclude logic of RESOURCE_NI
if (isReadOnlyArea(rootPath)) {
opt->flags |= NI_FLAGS_APP_UNDER_RO_AREA;