Comments (3)
There are also concerns on the configuration side
It was expected that the init structure that supports the external project as a target would change...
https://github.com/jw3/example-cmake-particle-cross/blob/master/cmake/TinyGpsPlus.cmake#L15-L20
That will have to get more noisy as the file list grows
from cmake-particle-firmware.
more noisy
If you have something like NeoGPS, each unit has to be called out, otherwise the configuration of the target will be incomplete.
It ends up looking something like
set(NeoGPS ${source_dir}/src)
set(SOURCE_FILES
${NeoGPS}/DMS.cpp
${NeoGPS}/GPSTime.cpp
${NeoGPS}/Location.cpp
${NeoGPS}/NeoTime.cpp
${NeoGPS}/NMEAGPS.cpp
${NeoGPS}/Streamers.cpp
${NeoGPS}/ublox/ubxGPS.cpp
${NeoGPS}/ublox/ubxmsg.cpp
${NeoGPS}/ublox/ubxNMEA.cpp)
foreach (f IN ITEMS ${SOURCE_FILES})
if (NOT EXISTS ${f})
file(WRITE ${f})
endif ()
endforeach ()
add_library(NeoGPS STATIC ${SOURCE_FILES})
from cmake-particle-firmware.
Using a static library is the natural solution here. It prevents significant changes to the cmake structure that support remote user lib compilation, and is the normal way to pass multiple objects.
The blocker is that the firmware does not appear to be an easy patch to support an additional static library...
The solution is to pack the static lib for cmake and then extract it for the firmware
ar -xv ${CMAKE_CURRENT_BINARY_DIR}/lib${dep}.a
https://github.com/jw3/example-cmake-particle-cross/blob/master/cmake/particle.cmake#L68-L72
from cmake-particle-firmware.
Related Issues (16)
- Dynamic flashing script HOT 2
- Support electron in arm defs
- Auto DFU in flasher script HOT 4
- Propose changes to particle HOT 2
- Can't build due to "No rule to make target `CMakeFiles/OneWire.dir/depend'." HOT 7
- Externalize gcc and firmware paths HOT 1
- Mesh support HOT 1
- Demonstrate third-party library usage HOT 2
- Demonstrate Conan integration HOT 1
- Create scaffolding project HOT 1
- Makefile per app
- Demonstrate unit / integration testing HOT 1
- Link the app into the firmware HOT 7
- Firmware build broken in de0b4de1 HOT 3
- Timing issue patching external project HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cmake-particle-firmware.