aboutsummaryrefslogtreecommitdiff
path: root/SConscript
diff options
context:
space:
mode:
authorJakub Sujak <jakub.sujak@arm.com>2023-06-21 09:45:41 +0100
committerJakub Sujak <jakub.sujak@arm.com>2023-06-29 12:17:11 +0000
commit7a698a38c625047bd558027d4cbc493f063739f5 (patch)
tree1622318aee018d0b843c0378fb464723a513cada /SConscript
parentcdb1ee068110111619b9e85b8477b6064c3797ac (diff)
downloadComputeLibrary-7a698a38c625047bd558027d4cbc493f063739f5.tar.gz
Improvements to building CKW
* Always link Compute Kernel Writer statically to Compute Library * Move CMake logic to be set on libckw target * Build CKW in parallel from SCons Resolves: COMPMID-6297 Change-Id: I247a1f6ddf84a58032358a196574866b857d9bdc Signed-off-by: Jakub Sujak <jakub.sujak@arm.com> Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/9834 Reviewed-by: Viet-Hoa Do <viet-hoa.do@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com> Benchmark: Arm Jenkins <bsgcomp@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'SConscript')
-rw-r--r--SConscript11
1 files changed, 9 insertions, 2 deletions
diff --git a/SConscript b/SConscript
index c9a56ede76..c7139552e3 100644
--- a/SConscript
+++ b/SConscript
@@ -31,8 +31,12 @@ import zlib
import json
import codecs
-print("DEPRECATION NOTICE: Legacy libarm_compute_core has been deprecated. Link your application only to "
- "libarm_compute for core library functionality")
+from SCons.Warnings import warn, DeprecatedWarning
+
+warn(DeprecatedWarning,
+ "DEPRECATION NOTICE: Legacy libarm_compute_core has been deprecated and is scheduled for removal in 24.02 release."
+ " Link your application only to libarm_compute for core library functionality"
+ )
VERSION = "v0.0-unreleased"
LIBRARY_VERSION_MAJOR = 31
@@ -123,6 +127,9 @@ def build_library(name, build_env, sources, static=False, libs=[]):
cloned_build_env["LINKFLAGS"].remove('-pie')
cloned_build_env["LINKFLAGS"].remove('-static-libstdc++')
+ if env['ckw']:
+ libs.append('libckw.a')
+
if static:
obj = cloned_build_env.StaticLibrary(name, source=sources, LIBS = arm_compute_env["LIBS"] + libs)
else: