COMPMID-1737: Add support for install_dir
Note: Only ComputeLibrary files get copied over (Stub CL / GLES drivers don't, nor are the 3rdparty includes)
utils/ files are not copied either (They're not part of the core library)
Change-Id: I55e01c0ba4a5f7e649877fcdd11fdb0a51071b18
Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/156339
Reviewed-by: Pablo Tello <pablo.tello@arm.com>
Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Tested-by: bsgcomp <bsgcomp@arm.com>
diff --git a/SConscript b/SConscript
index 36fa7b6..86f2789 100644
--- a/SConscript
+++ b/SConscript
@@ -29,6 +29,7 @@
Import('env')
Import('vars')
+Import('install_lib')
def build_library(name, sources, static=False, libs=[]):
if static:
@@ -53,6 +54,7 @@
else:
obj = arm_compute_env.SharedLibrary(name, source=sources, LIBS = arm_compute_env["LIBS"] + libs)
+ obj = install_lib(obj)
Default(obj)
return obj