From: WonYoung Choi Date: Wed, 5 Sep 2018 04:46:54 +0000 (+0900) Subject: [Build] Add BuildWithAnalyzer property (#454) X-Git-Tag: 5.0.0.14562~59 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ef92154e853a28c6c7cd4dc75ffaae2452a7ed6d;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [Build] Add BuildWithAnalyzer property (#454) Add a property to enable NETCore.Analyzer. Usages: ./build.sh build [module] /p:BuildWithAnalyzer=True ./build.sh full /p:BuildWithAnalyzer=True --- diff --git a/build.sh b/build.sh index f94cc32..78119d8 100755 --- a/build.sh +++ b/build.sh @@ -32,8 +32,9 @@ cmd_build() { if [ -d /nuget ]; then NUGET_SOURCE_OPT="/p:RestoreSources=/nuget" fi - $RUN_BUILD /t:restore /p:Project=$1 $NUGET_SOURCE_OPT - $RUN_BUILD /t:build /p:Project=$1 + PROJECT=$1; shift + $RUN_BUILD /t:restore /p:Project=$PROJECT $NUGET_SOURCE_OPT $@ + $RUN_BUILD /t:build /p:Project=$PROJECT $@ } cmd_full_build() { @@ -41,8 +42,8 @@ cmd_full_build() { NUGET_SOURCE_OPT="/p:RestoreSources=/nuget" fi $RUN_BUILD /t:clean - $RUN_BUILD /t:restore $NUGET_SOURCE_OPT - $RUN_BUILD /t:build + $RUN_BUILD /t:restore $NUGET_SOURCE_OPT $@ + $RUN_BUILD /t:build $@ } cmd_dummy_build() { diff --git a/build/build.proj b/build/build.proj index 35f4a16..6720119 100644 --- a/build/build.proj +++ b/build/build.proj @@ -4,7 +4,8 @@ - Release + Release + False @@ -50,7 +51,7 @@ @@ -64,7 +65,7 @@ diff --git a/build/common.props b/build/common.props index 8476ad9..473a981 100644 --- a/build/common.props +++ b/build/common.props @@ -17,4 +17,11 @@ + + + all + runtime; build; native; contentfiles; analyzers + + +