aboutsummaryrefslogtreecommitdiff
path: root/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 /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 'SConscript')
-rw-r--r--SConscript19
1 files changed, 19 insertions, 0 deletions
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: