Commit Graph

10 Commits (12336f017573512107a592f7b51b4ed485ce42c5)

Author SHA1 Message Date
Jimmy Brisson 719cbd997a Add a inc_repos option to the exporters 2016-09-28 13:48:31 +01:00
Jimmy Brisson 5677ad017a Add repo_dirs, repo_files, lib_builds, and lib_refs to zips 2016-09-15 17:56:47 +01:00
Jimmy Brisson 358643cdd6 Fix include paths for fragmented projects; remove deadcode 2016-09-15 17:56:46 +01:00
Jimmy Brisson 8d42764382 Fix some tracebacks, add zip exporter to the CLI 2016-09-15 17:56:44 +01:00
Jimmy Brisson a9b55147e2 Allow dict in addition to the other types of src_paths
The dict allows the user of the exporter api to specify the result directory
of particular groups of scanned dirs. This will be used by the online exporters
to spoof everything being in the same directory when they are not. It may also
be used by tests, if they would like to export something that looks exactly
like a normal project.
2016-09-15 17:56:43 +01:00
Sarah Marsh 4a7984a399 Create projectfiles directory when exporting
Compatible with new c/asm/cpp flag separation.
2016-09-15 17:56:40 +01:00
Jimmy Brisson e88346bc67 Made exporting safer
it will no longer barf when:
 - a linker scirpt is None
 - an attribute that is a set
it will also export the correct library include paths
2016-09-15 17:56:36 +01:00
Jimmy Brisson 5acec67224 Allow exporting to in-memory zip file 2016-09-15 17:56:35 +01:00
Sarah Marsh 50c8750a4a Refactor export subsystem
Makes several broad changes:
 - removes dead code that dealt with the online build system
 - replaces export function with a much simpler one that:
   - does not copy any sources
   - the zip file hits the disk
   - the mbed_config.h hits the disk
   - the project files hit the disk
   - nothing else hits the disk
 - exporters use Resource object scanned with a toolchain
 - progen exporters don't optionally build a project instead they have a
   build function that may be called afterwards
 - much of the code passes pylint (have a score of 9 or above):
   - project.py
   - project_api.py
   - export/__init__.py
   - export/exporters.py
   - test/export/build_test.py
2016-09-15 17:56:28 +01:00
Sarah Marsh b969fa5bb1 IDE build tests with progen 2016-07-15 13:25:35 -05:00