xmos / lib_xud

XMOS USB code and associated examples
Other
8 stars 25 forks source link

Evaluate CPM for resolving dependancies #247

Closed xross closed 1 year ago

xross commented 3 years ago

The current dependancy management system is non-ideal.

For instance, viewfiles are not available to external users.

Current proposal is to use cmake cpm

DaveAtkinsonXMOS commented 3 years ago

Started to investigate the sw_hellocpm repository. This is a good starting point, but it will not suffice to build XC file without having to set explicit build instructions for each XC file. I consider a better solution is to create a new 'XC' language for CMake. I have created a first attempt at this, and I am trying to get it accepted as a merge request on CMake. Currently CMake want an XMOS C and C++ platform created first before considering a new language, so I am engaged in that. All work for this can be found at https://gitlab.kitware.com/DaveAtkinsonXMOS

DaveAtkinsonXMOS commented 3 years ago

Currently trying to mediate between CMake and XMOS compiler devs to come up with a way of programmatically identifying the compilers...

DaveAtkinsonXMOS commented 3 years ago

Work on-going to get XMOS tools integrated with CMake, but... a first-pass implementation of using CPM to build a stand-alone xCore application with CMake's CPM module, using lib_xud as an example, is available here: https://github.com/DaveAtkinsonXMOS/xmos_cmake_cpm_example

xross commented 1 year ago

Likely we're moving to a West based system. Regardless this issue is wider that just this repo. Closing.