Update SConscript and android std compile error for android.
Change-Id: I285fdf63c3239f06c49b1acb535c936fe53d55d7
Signed-off-by: HyunJun Kim <hyunjun2.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/754
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
SConscript(build_dir + 'examples/OICMiddle/SConscript')
# Build 'service' sub-project
-if target_os != 'android':
- SConscript(build_dir + 'service/SConscript')
+# if target_os != 'android':
+SConscript(build_dir + 'service/SConscript')
# Append targets information to the help information, to see help info, execute command line:
# $ scon [options] -h
if target_os not in ['arduino','darwin']:
# Build things manager project
- SConscript('things-manager/SConscript')
+ if target_os != 'android':
+ SConscript('things-manager/SConscript')
# Build soft sensor manager project
SConscript('soft-sensor-manager/SConscript')
# Build protocol plugin project
# protocol-plugin use 'inotify', this feature isn't support by MAC OSX
- if target_os not in ['darwin', 'ios']:
+ if target_os not in ['darwin', 'ios', 'android']:
SConscript('protocol-plugin/SConscript')
# Build notification manager project
ssmcore_env.AppendUnique(LIBS = ['oc', 'octbstack', 'oc_logger',
'connectivity_abstraction', 'coap'])
-ssmcore_env.ParseConfig('pkg-config --libs glib-2.0');
+if target_os not in ['android']:
+ ssmcore_env.ParseConfig('pkg-config --libs glib-2.0');
shared_libssmcore = ssmcore_env.SharedLibrary(
target = 'SSMCore',
}
else if (rep.getValue<std::string>("command") == "ReleaseQueryEngine")
{
- pQueryEngine = (IQueryEngine *) std::stol(
+ pQueryEngine = (IQueryEngine *) std::stoll(
rep.getValue<std::string>("queryEngineId"));
ReleaseQueryEngine(pQueryEngine);
{
int CQID = 0;
- pQueryEngine = (IQueryEngine *)std::stol(
+ pQueryEngine = (IQueryEngine *)std::stoll(
rep.getValue<std::string>("queryEngineId"));
res = pQueryEngine->executeContextQuery(
}
else if (rep.getValue<std::string>("command") == "KillContextQuery")
{
- pQueryEngine = (IQueryEngine *)std::stol(
+ pQueryEngine = (IQueryEngine *)std::stoll(
rep.getValue<std::string>("queryEngineId"));
res = pQueryEngine->killContextQuery(std::stoi(rep.getValue<std::string>("CQID")));