Bug-fix: fix target dll searching logic
[platform/core/dotnet/launcher.git] / NativeLauncher / inc / launcher_env.h
1 /*
2  * Copyright (c) 2019 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  * Licensed under the Apache License, Version 2.0 (the License);
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an AS IS BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 #ifndef __LAUNCHER_ENV_H_
18 #define __LAUNCHER_ENV_H_
19
20 #define PLUGIN_PATH                  "/usr/share/dotnet.tizen/lib/libdotnet_plugin.so"
21 #define ENV_FILE_PATH                "/usr/share/dotnet.tizen/lib/coreclr_env.list"
22 #define DOTNET_RESOLVING_INFO_PATH   "/usr/share/dotnet.tizen/lib/dotnet_resolving.info"
23 #define AOT_METADATA_KEY             "http://tizen.org/metadata/prefer_dotnet_aot"
24 #define TAC_METADATA_KEY             "http://tizen.org/metadata/prefer_nuget_cache"
25 #define METADATA_VALUE_TRUE          "true"
26 #define APP_NI_SUB_DIR               ".native_image"
27 #define APP_NI_SUB_TMP_DIR           ".native_image_tmp"
28 #define TAC_SYMLINK_SUB_DIR          ".tac_symlink"
29 #define TAC_SHA_256_INFO             ".SHA256.info"
30 #define TAC_APP_LIST_DB              "/opt/usr/dotnet/.TAC.App.list.db"
31 #define TAC_APP_LIST_RESTORE_DB      "/opt/usr/dotnet/.TAC.App.list.restore.db"
32 #define TLC_APP_LIST_DB              "/opt/usr/dotnet/.TLC.App.list.db"
33 #define TLC_APP_LIST_RESTORE_DB      "/opt/usr/dotnet/.TLC.App.list.restore.db"
34 #define TLC_LIBRARIES_DIR            "/opt/usr/dotnet/Libraries"
35 #define TIZEN_DOTNET_NUGET           "Tizen.NET"
36 #define TIZEN_DOTNET_SDK_NUGET       "Tizen.NET.Sdk"
37 #define NET_STANDARD_LIBRARY_NUGET   "NETStandard.Library"
38 #define PLATFORM_TPA_CACHE           "/usr/share/dotnet.tizen/lib/platform_tpa_cache"
39 #define DISABLE_IPV6_FILE            "._TIZEN_DOTNET_SYSTEM_NET_DISABLEIPV6"
40 #define PRE_COMPILED_PACKAGE_FILE    "._TIZEN_DOTNET_PRE_COMPILED_PACKAGE"
41
42 #if defined (__aarch64__)
43 #define ARCHITECTURE_IDENTIFIER      "arm64"
44 #elif defined (__arm__)
45 #define ARCHITECTURE_IDENTIFIER      "armel"
46 #elif defined (__x86_64__)
47 #define ARCHITECTURE_IDENTIFIER      "x64"
48 #elif defined (__i386__)
49 #define ARCHITECTURE_IDENTIFIER      "x86"
50 #elif defined (__riscv)
51 #define ARCHITECTURE_IDENTIFIER      "riscv64"
52 #else
53 #error                               "Unknown target"
54 #endif
55
56 #endif //__LAUNCHER_ENV_H_