aboutsummaryrefslogtreecommitdiff
path: root/examples/SConscript
diff options
context:
space:
mode:
authorAnthony Barbier <anthony.barbier@arm.com>2017-08-04 18:20:27 +0100
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:35:24 +0000
commit2a07e184f7b359d13aa6cacfdc6431f9b191ef0c (patch)
tree9faddf43b82aa6abd7a65920ca60f21cc7b9032c /examples/SConscript
parentcdf51455df8835e9e3bfd3e31ed389146af9a573 (diff)
downloadComputeLibrary-2a07e184f7b359d13aa6cacfdc6431f9b191ef0c.tar.gz
COMPMID-363 Add Graph library support
Change-Id: Ie841419bf65d0e06bdfe0bdd2d8d4e0bb3631e54 Reviewed-on: http://mpd-gerrit.cambridge.arm.com/87931 Reviewed-by: Pablo Tello <pablo.tello@arm.com> Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com>
Diffstat (limited to 'examples/SConscript')
-rw-r--r--examples/SConscript14
1 files changed, 14 insertions, 0 deletions
diff --git a/examples/SConscript b/examples/SConscript
index 2303109bf5..853a1bb514 100644
--- a/examples/SConscript
+++ b/examples/SConscript
@@ -52,6 +52,20 @@ if env['opencl'] and env['neon']:
Depends(prog, [arm_compute_dependency, opencl])
alias = examples_env.Alias(example, prog)
Default(alias)
+ Import('arm_compute_graph_a')
+ Import('arm_compute_graph_so')
+ if env['os'] == 'android':
+ arm_compute_graph_lib = arm_compute_graph_a
+ else:
+ arm_compute_graph_lib = "arm_compute_graph"
+
+ graph_utils = examples_env.Object("../utils/GraphUtils.cpp")
+ for file in Glob("./graph_*.cpp"):
+ example = os.path.basename(os.path.splitext(str(file))[0])
+ prog = examples_env.Program(example, ["{}.cpp".format(example), utils, graph_utils], CPPDEFINES=['ARM_COMPUTE_CL'], LIBS = [arm_compute_graph_lib, "OpenCL"])
+ Depends(prog, [arm_compute_dependency, opencl])
+ alias = examples_env.Alias(example, prog)
+ Default(alias)
if env['opencl']:
for file in Glob("./cl_*.cpp"):