Files to include/exclude
No matter which method you choose to share an application, you should know what is critical to copy or check in to version control, as well as what can be regenerated easily. The main files to consider when sharing an application include anything that you have changed or added, and that will not be regenerated. These files include source code, BSPs and configurations,
Makefile
, etc.
There are several directories in the application that can be recreated and therefore do not need to be copied or checked into version control. These include the
libs
,
mtb_shared
,
build
, and
GeneratedSource
directories. The processes that create them are:
libs
and
mtb_shared
: Created by running the Library Manager and clicking the
Update
button, or by running
make getlibs
on the command line. Either one will clone the libraries from GitHub to the appropriate locations.
build
: Created during the build process.
GeneratedSource
: Generated by running the associated configurator such as the Device Configurator or Bluetooth® Configurator. The build process run Configurators automatically if the
GeneratedSource
files are out of date.