generated from embedded-dev-research/cpp-project-template
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
34 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ jobs: | |
submodules: recursive | ||
- name: Install dependencies | ||
run: | | ||
sudo apt-get install -y cmake ninja-build ccache | ||
sudo apt-get install -y cmake ninja-build ccache scons | ||
- name: ccache | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
|
@@ -37,7 +37,7 @@ jobs: | |
submodules: recursive | ||
- name: Install dependencies | ||
run: | | ||
sudo apt-get install -y cmake ninja-build ccache | ||
sudo apt-get install -y cmake ninja-build ccache scons | ||
- name: ccache | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
|
@@ -51,28 +51,6 @@ jobs: | |
- name: Build | ||
run: | | ||
cmake --build build --parallel | ||
windows-msvc-build: | ||
runs-on: windows-latest | ||
defaults: | ||
run: | ||
shell: bash | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
- name: Setup ccache | ||
uses: Chocobo1/setup-ccache-action@v1 | ||
with: | ||
windows_compile_environment: msvc | ||
- name: CMake configure | ||
shell: bash | ||
run: > | ||
cmake -S . -B build | ||
-DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache | ||
- name: Build | ||
shell: bash | ||
run: | | ||
cmake --build build --config Release --parallel | ||
macos-clang-build: | ||
runs-on: macOS-latest | ||
steps: | ||
|
@@ -81,7 +59,7 @@ jobs: | |
submodules: recursive | ||
- name: Install dependencies | ||
run: | | ||
brew install ninja | ||
brew install ninja scons | ||
- name: ccache | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
|
@@ -103,7 +81,7 @@ jobs: | |
submodules: true | ||
- name: Install dependencies | ||
run: | | ||
sudo apt-get install -y cmake ninja-build ccache gcovr lcov | ||
sudo apt-get install -y cmake ninja-build ccache gcovr lcov scons | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
[submodule "3rdparty/googletest"] | ||
path = 3rdparty/googletest | ||
url = https://github.com/google/googletest | ||
[submodule "3rdparty/ComputeLibrary"] | ||
path = 3rdparty/ComputeLibrary | ||
url = https://github.com/embedded-dev-research/ComputeLibrary |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,26 @@ | ||
add_subdirectory(googletest) | ||
|
||
set(COMPUTE_LIBRARY_DIR ${CMAKE_CURRENT_SOURCE_DIR}/ComputeLibrary) | ||
set(CMAKE_BUILD_PARALLEL_LEVEL 4) | ||
|
||
if (LINUX) | ||
set(ACL_OS "linux") | ||
elseif(APPLE) | ||
set(ACL_OS "macos") | ||
else() | ||
set(ACL_OS "unknown") | ||
endif() | ||
|
||
if (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64") | ||
set(ACL_ARCH "x86") | ||
elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL "arm64") | ||
set(ACL_ARCH "armv8.2-a") | ||
else() | ||
set(ACL_OS "unknown") | ||
endif() | ||
|
||
add_custom_target(build_compute_library ALL | ||
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} | ||
WORKING_DIRECTORY ${COMPUTE_LIBRARY_DIR} | ||
COMMENT "Building Arm Compute Library with scons" | ||
) |
Submodule ComputeLibrary
added at
c61bd3