feat(make): cli depends on API, generically

This allows us to build efficiently. CLI programs can now have their
own cmn.rs implementation, which we can test standalone with
`cargo test`.

The primary makefile currently just explicitly pulls in the type-*.yaml,
one day we could possibly put it into a loop.

Fixes #11
This commit is contained in:
Sebastian Thiel
2015-03-24 12:55:24 +01:00
parent caaf62e51d
commit cefd606b53
37 changed files with 3014 additions and 2483 deletions

View File

@@ -37,9 +37,6 @@ api:
- v1
calendar:
- v3
# Does not build yet, see serde issue: https://github.com/erickt/rust-serde/issues/45
# civicinfo:
# - v2
cloudlatencytest:
- v2
cloudmonitoring:
@@ -62,9 +59,6 @@ api:
- v2beta1
dfareporting:
- v2.0
# Does not build yet, see serde issue: https://github.com/erickt/rust-serde/issues/45
# discovery:
# - v1
dns:
- v1beta1
doubleclickbidmanager:
@@ -85,9 +79,6 @@ api:
- v1configuration
gamesmanagement:
- v1management
# Does not build yet, see serde issue: https://github.com/erickt/rust-serde/issues/45
# gan:
# - v1beta1
genomics:
- v1beta2
gmail:
@@ -110,9 +101,6 @@ api:
- v2
pagespeedonline:
- v2
# Does not build yet, see serde issue: https://github.com/erickt/rust-serde/issues/45
# plus:
# - v1
plusdomains:
- v1
prediction:

View File

@@ -1,3 +1,11 @@
api:
blacklist:
# All of these require Box<> support in serde
# See https://github.com/erickt/rust-serde/issues/45
- civicinfo
- discovery
- gan
- plus
# Contains values shared among all API implementations
directories:
# directory under which all generated sources should reside

View File

@@ -11,10 +11,11 @@ api:
# custom scopes for authentication
scopes: '_scopes'
make:
id: api
target_name: APIs
target_suffix: ''
aggregated_target_suffix: -api
depends_on:
depends_on_suffix:
global_targets: Yes
templates:
# all output directories are relative to the one set for the respective API

View File

@@ -1,8 +1,9 @@
make:
id: cli
target_name: CLIs
target_suffix: -cli
aggregated_target_suffix: -cli
depends_on: api
depends_on_suffix: ''
templates:
- source: ../LICENSE.md
- source: ../Cargo.toml