Skip to content

Commit

Permalink
Library split (#7)
Browse files Browse the repository at this point in the history
* Initial work on library split

* Library split tested

* Removed if() from CMake file

* Updated action and readme
  • Loading branch information
orenskl authored Jan 15, 2024
1 parent c1713fc commit abedb9b
Show file tree
Hide file tree
Showing 567 changed files with 952 additions and 761 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
branches: [ "main" ]

env:
BUILD_TYPE: MinSizeRel
BUILD_TYPE: Release

jobs:
build:
Expand Down Expand Up @@ -39,7 +39,7 @@ jobs:
submodules: true

- name: Configure Linux build
run: cmake -DLINUX=TRUE -B ${{github.workspace}}/build.linux -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -G Ninja
run: cmake -DTARGET=LINUX -B ${{github.workspace}}/build.linux -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -G Ninja

- name: Build Linux
run: cmake --build ${{github.workspace}}/build.linux --config ${{env.BUILD_TYPE}}
Expand All @@ -49,7 +49,7 @@ jobs:
run: ctest -C ${{env.BUILD_TYPE}}

- name: Configure Pico build
run: cmake -DPICO_SDK_PATH=${{github.workspace}}/pico-sdk -DPICO=TRUE -B ${{github.workspace}}/build.pico -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -G Ninja
run: cmake -DPICO_SDK_PATH=${{github.workspace}}/pico-sdk -B ${{github.workspace}}/build.pico -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -G Ninja

- name: Build Pico
run: cmake --build ${{github.workspace}}/build.pico --config ${{env.BUILD_TYPE}}
Expand Down
10 changes: 5 additions & 5 deletions .vscode/cmake-variants.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,24 @@
"choices": {
"Pico Release": {
"short": "Pico Release",
"buildType": "MinSizeRel",
"buildType": "Release",
"settings": {
"PICO": "",
"TARGET": "PICO",
"PICO_SDK_PATH":"/home/oren/projects/pico-sdk"
}
},
"Linux Release": {
"short": "Linux Release",
"buildType": "MinSizeRel",
"buildType": "Release",
"settings": {
"LINUX":""
"TARGET":"LINUX"
}
},
"Linux Debug": {
"short": "Linux Debug",
"buildType": "Debug",
"settings": {
"LINUX":""
"TARGET":"LINUX"
}
}
}
Expand Down
519 changes: 58 additions & 461 deletions CMakeLists.txt

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ After cloning the project cd into it and run the the usual CMake commands :
```
mkdir build
cd build
cmake -DPICO=TRUE -DPICO_SDK_PATH=/home/oren/projects/pico-sdk .. -G Ninja
cmake -DPICO_SDK_PATH=/home/oren/projects/pico-sdk .. -G Ninja
cmake --build .
```
Expand Down
465 changes: 465 additions & 0 deletions lib/CMakeLists.txt

Large diffs are not rendered by default.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit abedb9b

Please sign in to comment.