From: Jyothi Kumar Sambolu Date: Mon, 4 Jul 2016 13:08:40 +0000 (+0530) Subject: Replacing make with xbuild X-Git-Tag: submit/trunk/20170823.075128~86^2~40 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bd3afc4993c380af700be4b3064cd009e433eaaa;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git Replacing make with xbuild Change-Id: I568161e82850ad470d5353dce73a089e6c6c9ce5 Signed-off-by: Jyothi Kumar Sambolu --- diff --git a/Tizen.System.Sensor/Tizen.System.Sensor.csproj b/Tizen.System.Sensor/Tizen.System.Sensor.csproj index 4d15d61..cd3eb31 100644 --- a/Tizen.System.Sensor/Tizen.System.Sensor.csproj +++ b/Tizen.System.Sensor/Tizen.System.Sensor.csproj @@ -3,7 +3,7 @@ Debug AnyCPU - 10.0.0 + 8.0.30703 2.0 {CB655C6A-F73B-448E-913C-CA4DCBC5E401} Library @@ -40,6 +40,12 @@ + + ..\..\tizen\Tizen.Internals\bin\Debug\Tizen.Internals.dll + + + ..\..\tizen\Tizen\bin\Debug\Tizen.dll + @@ -92,16 +98,6 @@ - - {B9AA1CB2-F72D-4A30-A33B-A20C850A38A0} - Tizen.Internals - - - {7659ca59-410d-41a1-9841-586e88bc78c9} - Tizen - - - @@ -119,4 +115,4 @@ - \ No newline at end of file + diff --git a/Tizen.System.Sensor/Tizen.System.Sensor/Sensor.cs b/Tizen.System.Sensor/Tizen.System.Sensor/Sensor.cs index 33bc4a3..4b64eb2 100644 --- a/Tizen.System.Sensor/Tizen.System.Sensor/Sensor.cs +++ b/Tizen.System.Sensor/Tizen.System.Sensor/Sensor.cs @@ -233,7 +233,7 @@ namespace Tizen.System.Sensor } } - protected IntPtr ListenerHandle + internal IntPtr ListenerHandle { get { diff --git a/packaging/csapi-system.sensor.spec b/packaging/csapi-system.sensor.spec index 99e334d..0bf68ac 100644 --- a/packaging/csapi-system.sensor.spec +++ b/packaging/csapi-system.sensor.spec @@ -1,3 +1,5 @@ +%define BUILDCONF Debug + %define dllpath %{_libdir}/mono/tizen %define dllname Tizen.System.dll @@ -52,12 +54,8 @@ cp %{SOURCE1} . %build # build dll -mcs -target:library -out:%{dllname} -keyfile:Tizen.System.Sensor/Tizen.System.Sensor.snk -pkg:'csapi-tizen'\ - Tizen.System.Sensor/Properties/AssemblyInfo.cs \ - Tizen.System.Sensor/Tizen.System.Sensor/Plugins/*.cs \ - Tizen.System.Sensor/Tizen.System.Sensor/EventArgs/*.cs \ - Tizen.System.Sensor/Tizen.System.Sensor/*.cs \ - Tizen.System.Sensor/Interop/*.cs +xbuild Tizen.System.Sensor/Tizen.System.Sensor.csproj /p:Configuration=%{BUILDCONF} + # check p/invoke if [ -x %{dllname} ]; then RET=`mono-shlib-cop %{dllname}`; \ @@ -67,20 +65,19 @@ fi %install # copy dll -mkdir -p %{buildroot}%{dllpath} -install -p -m 644 %{dllname} %{buildroot}%{dllpath} +gacutil -i Tizen.System.Sensor/bin/%{BUILDCONF}/*.dll -root "%{buildroot}%{_libdir}" -package tizen # generate pkgconfig +%define pc_libs %{_libdir}/mono/tizen/Tizen.System.Sensor.dll mkdir -p %{buildroot}%{_libdir}/pkgconfig -sed -e "s#@version@#%{version}#g" \ - -e "s#@dllpath@#%{dllpath}#g" \ - -e "s#@dllname@#%{dllname}#g" \ +sed -e "s#@name@#%{name}#g" \ + -e "s#@version@#%{version}#g" \ + -e "s#@libs@#%{pc_libs}#g" \ %{SOURCE2} > %{buildroot}%{_libdir}/pkgconfig/%{name}.pc -%post -gacutil -i %{dllpath}/%{dllname} %files -%{dllpath}/%{dllname} +%manifest %{name}.manifest +%{_libdir}/mono/ %files devel %{_libdir}/pkgconfig/%{name}.pc