[TRE-2549] Use ibc file for generate NI 99/243099/1 accepted/tizen/unified/20200903.151652 submit/tizen/20200903.060021 submit/tizen/20200903.063642
authorj-h.choi <j-h.choi@samsung.com>
Thu, 3 Sep 2020 05:41:28 +0000 (14:41 +0900)
committerj-h.choi <j-h.choi@samsung.com>
Thu, 3 Sep 2020 05:41:59 +0000 (14:41 +0900)
Change-Id: I2d3ab605c713afa6807b7c6d1c0dcaf09d584cb9

scripts/iot-making-building-blocks-dll.post

index f05593dc704b36da1ba02f329845df25a3145665..001cd82201ce316f5b81129ba4ce0c709d4ab8c1 100644 (file)
@@ -2,12 +2,24 @@
 
 echo "############### iot-making-building-blocks-dll.post ################"
 
+export IBCDATA_DIR=/usr/share/dotnet.tizen/ibcdata
+
 if [ -f  /opt/share/bb/make_tizenfx_from_bb.sh ]
 then
        /opt/share/bb/make_tizenfx_from_bb.sh
        if [ -f /usr/bin/dotnettool ]
        then
-               dotnettool --ni-system
+               #remove previous native image
+               dotnettool --ni-reset-system
+
+               # generate native image
+               dotnettool --ibc-dir $IBCDATA_DIR --ni-system
+
+               # remove ibc data files
+               if [ -d $IBCDATA_DIR ]
+               then
+                   rm -rf $IBCDATA_DIR
+               fi
        else
                echo "There is no execute file - /usr/bin/dotnettool"
        fi