File tree Expand file tree Collapse file tree 5 files changed +34
-27
lines changed Expand file tree Collapse file tree 5 files changed +34
-27
lines changed Original file line number Diff line number Diff line change 15
15
submodules : recursive
16
16
- name : Install dependencies
17
17
run : |
18
- sudo apt-get install -y cmake ninja-build ccache
18
+ sudo apt-get install -y cmake ninja-build ccache scons
19
19
- name : ccache
20
20
uses :
hendrikmuhs/[email protected]
21
21
with :
37
37
submodules : recursive
38
38
- name : Install dependencies
39
39
run : |
40
- sudo apt-get install -y cmake ninja-build ccache
40
+ sudo apt-get install -y cmake ninja-build ccache scons
41
41
- name : ccache
42
42
uses :
hendrikmuhs/[email protected]
43
43
with :
51
51
- name : Build
52
52
run : |
53
53
cmake --build build --parallel
54
- windows-msvc-build :
55
- runs-on : windows-latest
56
- defaults :
57
- run :
58
- shell : bash
59
- steps :
60
- - uses : actions/checkout@v4
61
- with :
62
- submodules : recursive
63
- - name : Setup ccache
64
- uses : Chocobo1/setup-ccache-action@v1
65
- with :
66
- windows_compile_environment : msvc
67
- - name : CMake configure
68
- shell : bash
69
- run : >
70
- cmake -S . -B build
71
- -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
72
- - name : Build
73
- shell : bash
74
- run : |
75
- cmake --build build --config Release --parallel
76
54
macos-clang-build :
77
55
runs-on : macOS-latest
78
56
steps :
81
59
submodules : recursive
82
60
- name : Install dependencies
83
61
run : |
84
- brew install ninja
62
+ brew install ninja scons
85
63
- name : ccache
86
64
uses :
hendrikmuhs/[email protected]
87
65
with :
103
81
submodules : true
104
82
- name : Install dependencies
105
83
run : |
106
- sudo apt-get install -y cmake ninja-build ccache gcovr lcov
84
+ sudo apt-get install -y cmake ninja-build ccache gcovr lcov scons
107
85
- uses : actions/checkout@v4
108
86
with :
109
87
submodules : true
Original file line number Diff line number Diff line change 18
18
name : Run clang-tidy
19
19
with :
20
20
build_dir : build
21
- apt_packages : ninja-build
21
+ apt_packages : ninja-build,scons
22
22
cmake_command : cmake -S . -B build -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
23
23
config_file : .clang-tidy
24
24
exclude : 3rdparty
Original file line number Diff line number Diff line change 1
1
[submodule "3rdparty/googletest "]
2
2
path = 3rdparty/googletest
3
3
url = https://github.com/google/googletest
4
+ [submodule "3rdparty/ComputeLibrary "]
5
+ path = 3rdparty/ComputeLibrary
6
+ url = https://github.com/embedded-dev-research/ComputeLibrary
Original file line number Diff line number Diff line change 1
1
add_subdirectory (googletest )
2
+
3
+ set (COMPUTE_LIBRARY_DIR ${CMAKE_CURRENT_SOURCE_DIR} /ComputeLibrary )
4
+ set (CMAKE_BUILD_PARALLEL_LEVEL 4 )
5
+
6
+ if (LINUX )
7
+ set (ACL_OS "linux" )
8
+ elseif (APPLE )
9
+ set (ACL_OS "macos" )
10
+ else ()
11
+ set (ACL_OS "unknown" )
12
+ endif ()
13
+
14
+ if (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" )
15
+ set (ACL_ARCH "x86" )
16
+ elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "arm64" )
17
+ set (ACL_ARCH "armv8.2-a" )
18
+ else ()
19
+ set (ACL_OS "unknown" )
20
+ endif ()
21
+
22
+ add_custom_target (build_compute_library ALL
23
+ COMMAND scons Werror=1 debug=0 asserts=0 neon=0 opencl=0 os=${ACL_OS} embed_kernels=1 arch=${ACL_ARCH} -j${CMAKE_BUILD_PARALLEL_LEVEL}
24
+ WORKING_DIRECTORY ${COMPUTE_LIBRARY_DIR}
25
+ COMMENT "Building Arm Compute Library with scons"
26
+ )
You can’t perform that action at this time.
0 commit comments