[Build] Modify the TFM list set in vconf (#3996)
authorJongHeonChoi <j-h.choi@samsung.com>
Tue, 29 Mar 2022 08:14:05 +0000 (17:14 +0900)
committerGitHub <noreply@github.com>
Tue, 29 Mar 2022 08:14:05 +0000 (17:14 +0900)
Co-authored-by: WonYoung Choi <wy80.choi@samsung.com>
packaging/csapi-tizenfx.spec
packaging/maketfm.py

index a4703b5..b8ccb17 100644 (file)
@@ -12,7 +12,7 @@
 %define DOTNET_NUGET_SOURCE /nuget
 
 %define TIZEN_NET_RUNTIME_IDENTIFIERS 4.0.0:5.0.0:5.5.0:6.0.0:6.5.0
-%define TIZEN_NET_TARGET_FRAMEWORK_MONIKERS tizen90:tizen80:tizen70:tizen60:tizen50:tizen40
+%define TIZEN_NET_TARGET_FRAMEWORK_MONIKERS tizen10.0:tizen90:tizen80:tizen70:tizen60:tizen50:tizen40
 
 %define UPGRADE_SCRIPT_PATH /usr/share/upgrade/scripts
 
index c3c7402..959d733 100644 (file)
@@ -7,7 +7,8 @@ nuspec_file = os.path.join(scrpit_dir, "../pkg/Tizen.NET/Tizen.NET.nuspec")
 tree = ET.parse(nuspec_file)
 root = tree.getroot()
 
-tfm_list = []
+tfm_list1 = []
+tfm_list2 = []
 for meta_child in root.iter():
     if meta_child.tag == "{http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd}metadata":
         for depen_child in meta_child:
@@ -15,12 +16,16 @@ for meta_child in root.iter():
                 for group in depen_child:
                     tfm = group.attrib["targetFramework"].lower()
                     if tfm.startswith("tizen"):
-                        tfm = tfm.replace(".", "")
-                        if tfm.strip():
-                            tfm_list.append(tfm)
+                        if len(tfm) == 8:
+                            tfm_list1.append(tfm.replace(".", "").strip())
+                        else:
+                            tfm_list2.append(tfm.strip())
 
-tfm_list = list(set(tfm_list))
-tfm_list.sort(reverse=True)
+tfm_list1 = list(set(tfm_list1))
+tfm_list1.sort(reverse=True)
+tfm_list2 = list(set(tfm_list2))
+tfm_list2.sort(reverse=True)
+tfm_list = tfm_list2 + tfm_list1
 
 f = open(spec_dir,'r')
 origin_data = f.read()