@@ -24,18 +24,18 @@ import os.path
2424import re
2525import subprocess
2626
27- VERSION = "v17.09 "
28- SONAME_VERSION = "4 .0.0"
27+ VERSION = "v17.10 "
28+ SONAME_VERSION = "5 .0.0"
2929
3030Import ('env' )
3131Import ('vars' )
3232
33- def build_library (name , sources , static = False ):
33+ def build_library (name , sources , static = False , libs = [] ):
3434 if static :
35- obj = arm_compute_env .StaticLibrary (name , source = sources )
35+ obj = arm_compute_env .StaticLibrary (name , source = sources , LIBS = arm_compute_env [ "LIBS" ] + libs )
3636 else :
3737 if env ['set_soname' ]:
38- obj = arm_compute_env .SharedLibrary (name , source = sources , SHLIBVERSION = SONAME_VERSION )
38+ obj = arm_compute_env .SharedLibrary (name , source = sources , SHLIBVERSION = SONAME_VERSION , LIBS = arm_compute_env [ "LIBS" ] + libs )
3939
4040 symlinks = []
4141 # Manually delete symlinks or SCons will get confused:
@@ -51,7 +51,7 @@ def build_library(name, sources, static=False):
5151 Default (clean )
5252 Depends (obj , clean )
5353 else :
54- obj = arm_compute_env .SharedLibrary (name , source = sources )
54+ obj = arm_compute_env .SharedLibrary (name , source = sources , LIBS = arm_compute_env [ "LIBS" ] + libs )
5555
5656 Default (obj )
5757 return obj
@@ -191,11 +191,12 @@ if env['os'] != 'bare_metal' and not env['standalone']:
191191shared_runtime_objects = [arm_compute_env .SharedObject (f ) for f in runtime_files ]
192192static_runtime_objects = [arm_compute_env .StaticObject (f ) for f in runtime_files ]
193193
194- arm_compute_a = build_library ('arm_compute-static' , static_core_objects + static_runtime_objects , static = True )
194+ arm_compute_a = build_library ('arm_compute-static' , static_runtime_objects , static = True , libs = [ arm_compute_core_a ] )
195195Export ('arm_compute_a' )
196196
197197if env ['os' ] != 'bare_metal' and not env ['standalone' ]:
198- arm_compute_so = build_library ('arm_compute' , shared_core_objects + shared_runtime_objects , static = False )
198+ arm_compute_so = build_library ('arm_compute' , shared_runtime_objects , static = False , libs = [ "arm_compute_core" ])
199+ Depends (arm_compute_so , arm_compute_core_so )
199200 Export ('arm_compute_so' )
200201
201202if env ['neon' ] and env ['opencl' ]:
@@ -208,10 +209,11 @@ if env['neon'] and env['opencl']:
208209 shared_graph_objects = [arm_compute_env .SharedObject (f ) for f in graph_files ]
209210 static_graph_objects = [arm_compute_env .StaticObject (f ) for f in graph_files ]
210211
211- arm_compute_graph_a = build_library ('arm_compute_graph-static' , static_core_objects + static_runtime_objects + static_graph_objects , static = True )
212+ arm_compute_graph_a = build_library ('arm_compute_graph-static' , static_graph_objects , static = True , libs = [ arm_compute_a ] )
212213 Export ('arm_compute_graph_a' )
213214
214- arm_compute_graph_so = build_library ('arm_compute_graph' , shared_core_objects + shared_runtime_objects + shared_graph_objects , static = False )
215+ arm_compute_graph_so = build_library ('arm_compute_graph' , shared_graph_objects , static = False , libs = [ "arm_compute" , "arm_compute_core" ])
216+ Depends ( arm_compute_graph_so , arm_compute_so )
215217 Export ('arm_compute_graph_so' )
216218
217219 graph_alias = arm_compute_env .Alias ("arm_compute_graph" , [arm_compute_graph_a , arm_compute_graph_so ])
0 commit comments