SET(EXTRA_CFLAGS_COMMON "${EXTRA_CFLAGS_COMMON} -DNATIVE_LIB_DIR=${NATIVE_LIB_DIR}")
ENDIF(DEFINED NATIVE_LIB_DIR)
-IF(DEFINED TAC_DIR)
- SET(EXTRA_CFLAGS_COMMON "${EXTRA_CFLAGS_COMMON} -DTAC_DIR=${TAC_DIR}")
-ENDIF(DEFINED TAC_DIR)
+IF(DEFINED DOTNET_DIR)
+ SET(EXTRA_CFLAGS_COMMON "${EXTRA_CFLAGS_COMMON} -DDOTNET_DIR=${DOTNET_DIR}")
+ENDIF(DEFINED DOTNET_DIR)
IF(DEFINED USE_DEFAULT_BASE_ADDR)
SET(EXTRA_CFLAGS_COMMON "${EXTRA_CFLAGS_COMMON} -DUSE_DEFAULT_BASE_ADDR")
#define __XSTR(x) #x
#define __STR(x) __XSTR(x)
-static const char* __TAC_DIR = __STR(TAC_DIR);
+static const char* __DOTNET_DIR = __STR(DOTNET_DIR);
#undef __STR
#undef __XSTR
_INFO("TAC name : %s", tac_name.c_str());
_INFO("TAC version : %s", tac_version.c_str());
- std::string tac_version_dir = concatPath(__TAC_DIR, np);
+ std::string tac_version_dir = concatPath(__DOTNET_DIR, np);
std::string sha256_info = concatPath(tac_version_dir, TAC_SHA_256_INFO);
if (!bf::exists(tac_version_dir)) {
_INFO("Create tac_version_dir [%s]", tac_version_dir.c_str());
return -1;
}
if (count == 0) {
- std::string tac_version_dir_prev = concatPath(__TAC_DIR, unp);
+ std::string tac_version_dir_prev = concatPath(__DOTNET_DIR, unp);
std::string tac_version_dir_backup = tac_version_dir_prev + ".bck";
if (!copyDir(tac_version_dir_prev, tac_version_dir_backup)) {
_ERR("Failed to copy of %s to %s", tac_version_dir_prev.c_str(), tac_version_dir_backup.c_str());
_INFO("TAC name : %s", tac_name.c_str());
_INFO("TAC version : %s", tac_version.c_str());
- std::string tac_version_dir = concatPath(__TAC_DIR, np);
+ std::string tac_version_dir = concatPath(__DOTNET_DIR, np);
std::string sha256_info = concatPath(tac_version_dir, TAC_SHA_256_INFO);
if (!bf::exists(tac_version_dir)) {
_INFO("Create tac_version_dir [%s]", tac_version_dir.c_str());
void cleanStep(std::string tac)
{
- std::string current_tac = concatPath(__TAC_DIR, tac.substr(0, tac.find('/')));
+ std::string current_tac = concatPath(__DOTNET_DIR, tac.substr(0, tac.find('/')));
try {
for (auto& bck : bf::recursive_directory_iterator(current_tac)) {
std::string bck_path = bck.path().string();
void undoStep(std::string tac)
{
- std::string current_tac = concatPath(__TAC_DIR, tac.substr(0, tac.find('/')));
+ std::string current_tac = concatPath(__DOTNET_DIR, tac.substr(0, tac.find('/')));
try {
for (auto& bck : bf::recursive_directory_iterator(current_tac)) {
std::string bck_path = bck.path().string();
#define __STR(x) __XSTR(x)
static const char* __NATIVE_LIB_DIR = __STR(NATIVE_LIB_DIR);
static const char* __CROSSGEN_PATH = __STR(CROSSGEN_PATH);
-static const char* __TAC_DIR = __STR(TAC_DIR);
+static const char* __DOTNET_DIR = __STR(DOTNET_DIR);
#ifdef UNIQUE_DEFAULT_BASE_ADDR_SUPPORT
static const char* __SYSTEM_BASE_FILE = __STR(SYSTEM_BASE_FILE);
}
bool isAppNI = flags & NI_FLAGS_APPNI;
- if (isAppNI && strstr(absNiPath.c_str(), __TAC_DIR) == NULL) {
+ if (isAppNI && strstr(absNiPath.c_str(), __DOTNET_DIR) == NULL) {
absNiPath = getAppNIPath(absNiPath);
}
{
std::string appPaths;
for (auto& nuget : nugets) {
- appPaths += concatPath(__TAC_DIR, nuget);
+ appPaths += concatPath(__DOTNET_DIR, nuget);
appPaths += ':';
}
if (appPaths.back() == ':') {
}
};
for (auto& nuget : nugets) {
- scanFilesInDir(concatPath(__TAC_DIR, nuget), convert, -1);
+ scanFilesInDir(concatPath(__DOTNET_DIR, nuget), convert, -1);
}
}
ni_error_e regenerateTACNI(DWORD flags)
{
- const std::string tacDir[] = {__TAC_DIR};
+ const std::string tacDir[] = {__DOTNET_DIR};
removeNiUnderDirs(tacDir, 1);
pkgmgrinfo_appinfo_metadata_filter_h handle;
#define __XSTR(x) #x
#define __STR(x) __XSTR(x)
-static const char* __TAC_DIR = __STR(TAC_DIR);
+static const char* __DOTNET_DIR = __STR(DOTNET_DIR);
#undef __STR
#undef __XSTR
{
std::vector<std::string> removeNuget;
try {
- for (auto& nuget : bf::recursive_directory_iterator(__TAC_DIR)) {
+ for (auto& nuget : bf::recursive_directory_iterator(__DOTNET_DIR)) {
bool isExist = false;
std::string nugetPath = nuget.path().string();
for (auto& restore : restore_nuget) {
"INSERT INTO TAC (PKGID, NUGET, NAME, VERSION) " \
"VALUES (%Q, %Q, %Q, %Q);", pkgId, nuget.c_str(), name.c_str(), version.c_str());
dbInsert(tac_db, TAC_APP_LIST_RESTORE_DB, sql);
- restore_nuget.push_back(concatPath(__TAC_DIR, nuget));
+ restore_nuget.push_back(concatPath(__DOTNET_DIR, nuget));
sqlite3_free(sql);
}
}
for (auto& npAssembly : depsJsonParser(rootPath, execName, getTPA())) {
std::string nugetPackage = npAssembly.substr(0, npAssembly.rfind(':'));
std::string assemblyName = npAssembly.substr(npAssembly.rfind(':') + 1);
- std::string nugetPath = concatPath(__TAC_DIR, nugetPackage);
+ std::string nugetPath = concatPath(__DOTNET_DIR, nugetPackage);
if (bf::exists(nugetPath)) {
std::string originPath = concatPath(nugetPath, assemblyName);
if (bf::exists(originPath)) {
%define _framework_dir /usr/share/dotnet.tizen/framework
%define _install_mdplugin_dir /etc/package-manager/parserlib/metadata
%define _native_lib_dir /usr/share/dotnet.tizen/lib
-%define _tac_dir /opt/usr/dotnet
+%define _dotnet_dir /opt/usr/dotnet
%define _system_base_addr_file /opt/usr/dotnet.system.base.addr
%define _default_base_addr_start 0x3000000
-DFRAMEWORK_DIR=%{_framework_dir} \
-DCROSSGEN_PATH=%{_runtime_dir}/crossgen \
-DINSTALL_MDPLUGIN_DIR=%{_install_mdplugin_dir} \
- -DTAC_DIR=%{_tac_dir} \
+ -DDOTNET_DIR=%{_dotnet_dir} \
-DVERSION=%{version} \
-DNATIVE_LIB_DIR=%{_native_lib_dir} \
%ifarch %{arm}
mv Managed/Tizen.Init/bin/Release/Tizen.Init.dll %{buildroot}%{_framework_dir}
mv Managed/Dotnet.Launcher/bin/Release/Dotnet.Launcher.dll %{buildroot}%{_framework_dir}
-mkdir -p %{buildroot}%{_tac_dir}
+mkdir -p %{buildroot}%{_dotnet_dir}
mkdir -p %{buildroot}%{_native_lib_dir}
ln -sf %{_libdir}/libsqlite3.so.0 %{buildroot}%{_native_lib_dir}/libsqlite3.so
/usr/share/parser-plugins/dotnet-launcher.info
%{_framework_dir}/Tizen.Init.dll
%{_framework_dir}/Dotnet.Launcher.dll
-%{_tac_dir}
+%{_dotnet_dir}
%files devel
%manifest dotnet-launcher.manifest
%{_libdir}/libni_common.so
%{_libdir}/libtac_common.so
%{_libdir}/pkgconfig/dotnet-launcher.pc
-