"libdrm-dev",
"libgif-dev",
"libturbojpeg",
+ "libturbojpeg0-dev",
"libfribidi-dev",
"libharfbuzz-dev",
"doxygen",
my $package;
foreach $package (@_)
{
- my @x=split(/\s+/, `dpkg -l $package|grep $package`);
+ my @x=split(/\s+/, `dpkg -l $package 2> /dev/null|grep $package`);
if($x[0] ne "ii")
{
- print "Attempting to install $package\n";
- system("sudo apt-get -y --force-yes install $package");
+ # Check if the package is available to install, exit-code is 0 if the package is found.
+ if(system("apt-cache show $package > /dev/null 2>&1") == 0)
+ {
+ print "Attempting to install $package\n";
+ system("sudo apt-get -y --force-yes install $package");
+ }
}
}
}
}
elsif ($pkg eq "gtest")
{
- print "Attempting to build $pkg\n";
- # from https://www.eriksmistad.no/getting-started-with-google-test-on-ubuntu/
- run_command("cd /usr/src/gtest; sudo cmake CMakeLists.txt; sudo make; sudo cp *.a /usr/lib; cd -;");
+ if(! -e "/usr/lib/libgtest.a")
+ {
+ print "Attempting to build $pkg\n";
+ # from https://www.eriksmistad.no/getting-started-with-google-test-on-ubuntu/
+ run_command("cd /usr/src/gtest; sudo cmake CMakeLists.txt; sudo make; sudo cp *.a /usr/lib; cd -;");
+ }
}
}
}
#include <dali/public-api/object/property-index-ranges.h>
#include <dali/public-api/signals/dali-signal.h>
+#undef SIZE_WIDTH // Defined in later versions of cstdint but is used in this header
+
namespace Dali
{
/**