echo " Options:"
echo " -h, --help Show this usages message"
echo " -b, --build [module] Build a module"
- echo " -f, --full Build all modules in src/ directory. The module should be added in pkg/Tizen.NET.Private.sln"
+ echo " -f, --full Build all modules in src/ directory. (pkg/Tizen.NET.Private.sln)"
echo " -d, --dummy Build dummy modules"
echo " -p, --pack Make nuget packages"
echo " -c, --clean Clean all artifacts"
}
+dotnet_build() {
+ if [ -d /nuget ]; then
+ NUGET_SOURCE_OPT="--source /nuget"
+ fi
+ PROJ=$1; shift
+ dotnet restore $PROJ $NUGET_SOURCE_OPT
+ dotnet build $PROJ --no-restore --configuration=Release $@
+}
+
cmd_clean() {
rm -fr $OUTDIR
LIST=$(find $SCRIPT_DIR -type d -a -name bin -o -name obj)
echo "No module specified."
exit 1
fi
- dotnet build $SCRIPT_DIR/src/$1 --configuration=Release --output=$OUTDIR/bin
+ dotnet_build $SCRIPT_DIR/src/$1 --output=$OUTDIR/bin
}
cmd_full_build() {
- dotnet build $SCRIPT_DIR/pkg/Tizen.NET.Private.sln --configuration=Release --output=$OUTDIR/bin
+ dotnet_build $SCRIPT_DIR/pkg/Tizen.NET.Private.sln --output=$OUTDIR/bin
}
cmd_pack() {
}
cmd_dummy_build() {
- dotnet build $SCRIPT_DIR/pkg/Tizen.NET.Dummy.csproj --configuration=Release
+ dotnet_build $SCRIPT_DIR/pkg/Tizen.NET.Dummy.csproj
}
OPTS=`getopt -o hcbfpd --long help,clean,build,full,pack,dummy -n 'build' -- "$@"`
<file src="bin\ElmSharp.dll" target="lib\netstandard1.6" />
<file src="bin\ElmSharp.pdb" target="lib\netstandard1.6" />
<file src="bin\ElmSharp.xml" target="lib\netstandard1.6" />
+ <file src="bin\ElmSharp.Wearable.dll" target="lib\netstandard1.6" />
+ <file src="bin\ElmSharp.Wearable.pdb" target="lib\netstandard1.6" />
+ <file src="bin\ElmSharp.Wearable.xml" target="lib\netstandard1.6" />
<file src="bin\Tizen.Account.AccountManager.dll" target="lib\netstandard1.6" />
<file src="bin\Tizen.Account.AccountManager.pdb" target="lib\netstandard1.6" />
<file src="bin\Tizen.Account.AccountManager.xml" target="lib\netstandard1.6" />
<file src="bin\Tizen.Applications.UI.dll" target="lib\netstandard1.6" />
<file src="bin\Tizen.Applications.UI.pdb" target="lib\netstandard1.6" />
<file src="bin\Tizen.Applications.UI.xml" target="lib\netstandard1.6" />
+ <file src="bin\Tizen.Applications.WatchApplication.dll" target="lib\netstandard1.6" />
+ <file src="bin\Tizen.Applications.WatchApplication.pdb" target="lib\netstandard1.6" />
+ <file src="bin\Tizen.Applications.WatchApplication.xml" target="lib\netstandard1.6" />
<file src="bin\Tizen.Applications.WidgetApplication.dll" target="lib\netstandard1.6" />
<file src="bin\Tizen.Applications.WidgetApplication.pdb" target="lib\netstandard1.6" />
<file src="bin\Tizen.Applications.WidgetApplication.xml" target="lib\netstandard1.6" />
<file src="bin\Tizen.Network.Nfc.dll" target="lib\netstandard1.6" />
<file src="bin\Tizen.Network.Nfc.pdb" target="lib\netstandard1.6" />
<file src="bin\Tizen.Network.Nfc.xml" target="lib\netstandard1.6" />
+ <file src="bin\Tizen.Network.Nsd.dll" target="lib\netstandard1.6" />
+ <file src="bin\Tizen.Network.Nsd.pdb" target="lib\netstandard1.6" />
+ <file src="bin\Tizen.Network.Nsd.xml" target="lib\netstandard1.6" />
<file src="bin\Tizen.Network.Smartcard.dll" target="lib\netstandard1.6" />
<file src="bin\Tizen.Network.Smartcard.pdb" target="lib\netstandard1.6" />
<file src="bin\Tizen.Network.Smartcard.xml" target="lib\netstandard1.6" />
<file src="bin\Tizen.Network.WiFiDirect.dll" target="lib\netstandard1.6" />
<file src="bin\Tizen.Network.WiFiDirect.pdb" target="lib\netstandard1.6" />
<file src="bin\Tizen.Network.WiFiDirect.xml" target="lib\netstandard1.6" />
+ <file src="bin\Tizen.PhonenumberUtils.dll" target="lib\netstandard1.6" />
+ <file src="bin\Tizen.PhonenumberUtils.pdb" target="lib\netstandard1.6" />
+ <file src="bin\Tizen.PhonenumberUtils.xml" target="lib\netstandard1.6" />
+ <file src="bin\Tizen.Pims.Calendar.dll" target="lib\netstandard1.6" />
+ <file src="bin\Tizen.Pims.Calendar.pdb" target="lib\netstandard1.6" />
+ <file src="bin\Tizen.Pims.Calendar.xml" target="lib\netstandard1.6" />
+ <file src="bin\Tizen.Pims.Contacts.dll" target="lib\netstandard1.6" />
+ <file src="bin\Tizen.Pims.Contacts.pdb" target="lib\netstandard1.6" />
+ <file src="bin\Tizen.Pims.Contacts.xml" target="lib\netstandard1.6" />
<file src="bin\Tizen.Security.SecureRepository.dll" target="lib\netstandard1.6" />
<file src="bin\Tizen.Security.SecureRepository.pdb" target="lib\netstandard1.6" />
<file src="bin\Tizen.Security.SecureRepository.xml" target="lib\netstandard1.6" />
{
get
{
- bool isNfcSupported = SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported);
+ bool isNfcSupported = false;
+
+ SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported);
if (!isNfcSupported)
{
{
get
{
- bool isNfcSupported = SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported);
+ bool isNfcSupported = false;
+
+ SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported);
if (!isNfcSupported)
{
{
get
{
- bool isNfcSupported = SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported);
- bool isTagSupported = SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc.tag", out isTagSupported);
+ bool isNfcSupported = false;
+ bool isTagSupported = false;
+
+ SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported);
+ SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc.tag", out isTagSupported);
if (!isNfcSupported || !isTagSupported)
{
}
set
{
- bool isNfcSupported = SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported);
- bool isTagSupported = SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc.tag", out isTagSupported);
+ bool isNfcSupported = false;
+ bool isTagSupported = false;
+
+ SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported);
+ SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc.tag", out isTagSupported);
if (!isNfcSupported || !isTagSupported)
{
{
get
{
- bool isNfcSupported = SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported);
- bool isCeSupported = SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc.cardemulation", out isCeSupported);
+ bool isNfcSupported = false;
+ bool isCeSupported = false;
+
+ SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported);
+ SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc.cardemulation", out isCeSupported);
if (!isNfcSupported || !isCeSupported)
{
}
set
{
- bool isNfcSupported = SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported);
- bool isCeSupported = SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc.cardemulation", out isCeSupported);
+ bool isNfcSupported = false;
+ bool isCeSupported = false;
+
+ SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported);
+ SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc.cardemulation", out isCeSupported);
if (!isNfcSupported || !isCeSupported)
{
{
get
{
- bool isNfcSupported = SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported);
+ bool isNfcSupported = false;
+
+ SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported);
if (!isNfcSupported)
{
}
set
{
- bool isNfcSupported = SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported);
+ bool isNfcSupported = false;
+
+ SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported);
if (!isNfcSupported)
{
{
get
{
- bool isNfcSupported = SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported);
+ bool isNfcSupported = false;
+
+ SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported);
if (!isNfcSupported)
{
/// <since_tizen> 3 </since_tizen>
static public NfcTagAdapter GetTagAdapter()
{
- bool isNfcSupported = SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported);
- bool isTagSupported = SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc.tag", out isTagSupported);
+ bool isNfcSupported = false;
+ bool isTagSupported = false;
+
+ SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported);
+ SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc.tag", out isTagSupported);
if (!isNfcSupported || !isTagSupported)
{
/// <since_tizen> 3 </since_tizen>
static public NfcP2pAdapter GetP2pAdapter()
{
- bool isNfcSupported = SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported);
- bool isP2pSupported = SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc.p2p", out isP2pSupported);
+ bool isNfcSupported = false;
+ bool isP2pSupported = false;
+
+ SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported);
+ SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc.p2p", out isP2pSupported);
if (!isNfcSupported || !isP2pSupported)
{
/// <since_tizen> 3 </since_tizen>
static public NfcCardEmulationAdapter GetCardEmulationAdapter()
{
- bool isNfcSupported = SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported);
- bool isCeSupported = SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc.cardemulation", out isCeSupported);
+ bool isNfcSupported = false;
+ bool isCeSupported = false;
+
+ SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported);
+ SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc.cardemulation", out isCeSupported);
if (!isNfcSupported || !isCeSupported)
{
/// <privilege>http://tizen.org/privilege/nfc.admin</privilege>
static public Task SetActivationAsync(bool activation)
{
- bool isNfcSupported = SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported);
+ bool isNfcSupported = false;
+
+ SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported);
if (!isNfcSupported)
{
{
add
{
- bool isNfcSupported = SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported);
+ bool isNfcSupported = false;
+
+ SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported);
if (!isNfcSupported)
{
}
remove
{
- bool isNfcSupported = SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported);
+ bool isNfcSupported = false;
+
+ SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported);
if (!isNfcSupported)
{
{
add
{
- bool isNfcSupported = SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported);
+ bool isNfcSupported = false;
+
+ SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported);
if (!isNfcSupported)
{
}
remove
{
- bool isNfcSupported = SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported);
+ bool isNfcSupported = false;
+
+ SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported);
if (!isNfcSupported)
{