From 2a07e184f7b359d13aa6cacfdc6431f9b191ef0c Mon Sep 17 00:00:00 2001 From: Anthony Barbier Date: Fri, 4 Aug 2017 18:20:27 +0100 Subject: COMPMID-363 Add Graph library support Change-Id: Ie841419bf65d0e06bdfe0bdd2d8d4e0bb3631e54 Reviewed-on: http://mpd-gerrit.cambridge.arm.com/87931 Reviewed-by: Pablo Tello Tested-by: Kaizen --- SConscript | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'SConscript') diff --git a/SConscript b/SConscript index d9ee169b2d..00c366e890 100644 --- a/SConscript +++ b/SConscript @@ -192,6 +192,25 @@ if env['os'] != 'bare_metal' and not env['standalone']: arm_compute_so = build_library('arm_compute', shared_core_objects + shared_runtime_objects, static=False) Export('arm_compute_so') +if env['neon'] and env['opencl']: + graph_files = Glob('src/graph/*.cpp') + graph_files += Glob('src/graph/nodes/*.cpp') + + graph_files += Glob('src/graph/CL/*.cpp') + graph_files += Glob('src/graph/NEON/*.cpp') + + shared_graph_objects = [arm_compute_env.SharedObject(f) for f in graph_files] + static_graph_objects = [arm_compute_env.StaticObject(f) for f in graph_files] + + arm_compute_graph_a = build_library('arm_compute_graph-static', static_core_objects + static_runtime_objects + static_graph_objects, static=True) + Export('arm_compute_graph_a') + + arm_compute_graph_so = build_library('arm_compute_graph', shared_core_objects + shared_runtime_objects + shared_graph_objects, static=False) + Export('arm_compute_graph_so') + + graph_alias = arm_compute_env.Alias("arm_compute_graph", [arm_compute_graph_a, arm_compute_graph_so]) + Default(graph_alias) + if env['standalone']: alias = arm_compute_env.Alias("arm_compute", [arm_compute_a]) else: -- cgit v1.2.1