Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8e78502

Browse files
committed
Merge branch 'builders'
2 parents 85171ce + 4f794ef commit 8e78502

139 files changed

Lines changed: 196196 additions & 1956 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
.timestamp
22
.pyenv
3+
gen/
4+
*.go
35
*.pyc
46
**target/
57
.api.deps

Cargo.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ name = "cmn"
1616
path = "src/rust/lib.rs"
1717

1818
[dependencies]
19-
# Just to get hyper to work !
20-
openssl = "= 0.4.3"
21-
# Just to get hyper to work !
22-
cookie = "= 0.1.13"
2319
hyper = "*"
2420
rustc-serialize = "*"
2521
yup-oauth2 = "*"

Makefile

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: json-to-xml clean help api-deps regen-apis license
1+
.PHONY: json-to-xml clean help api-deps regen-apis license update-json cargo
22
.SUFFIXES:
33

44
include Makefile.helpers
@@ -8,13 +8,15 @@ VENV_DIR := .pyenv
88
PYTHON := $(VENV_DIR)/bin/python
99
PIP := $(VENV_DIR)/bin/pip
1010
MAKO_RENDER := etc/bin/mako-render
11+
API_VERSION_GEN := etc/bin/api_version_to_yaml.py
1112
TPL := $(PYTHON) $(MAKO_RENDER)
1213

1314
MAKO_SRC = src/mako
1415
RUST_SRC = src/rust
1516
API_DEPS_TPL = $(MAKO_SRC)/deps.mako
1617
API_DEPS = .api.deps
1718
API_SHARED_INFO = etc/api/shared.yaml
19+
API_LIST = etc/api/api-list.yaml
1820
API_JSON_FILES = $(shell find etc -type f -name '*-api.json')
1921
MAKO_LIB_DIR = $(MAKO_SRC)/lib
2022
MAKO_LIB_FILES = $(shell find $(MAKO_LIB_DIR) -type f -name '*.*')
@@ -23,23 +25,30 @@ help:
2325
$(info using template engine: '$(TPL)')
2426
$(info )
2527
$(info Targets)
26-
$(info help - print this help)
27-
$(info api-deps - generate a file to tell make what API file dependencies will be)
28+
$(info apis - make all APIs)
29+
$(info cargo - run cargo on all APIs, use ARGS="args ..." to specify cargo arguments)
2830
$(info regen-apis - clear out all generated apis, and regenerate them)
31+
$(info clean-apis - delete all generated APIs)
2932
$(info help-api - show all api targets to build individually)
33+
$(info help - print this help)
3034
$(info license - regenerate the main license file)
35+
$(info update-json - copy API definitions from source GOOGLE_GO_APIS_REPO=<path>)
36+
$(info api-deps - generate a file to tell make what API file dependencies will be)
3137

3238
$(PYTHON):
3339
virtualenv $(VENV_DIR)
3440
$(PIP) install mako pyyaml
3541

3642
$(MAKO_RENDER): $(PYTHON)
3743

38-
$(API_DEPS): $(API_SHARED_INFO) $(API_DEPS_TPL) $(MAKO_LIB_FILES) $(MAKO_RENDER)
39-
PYTHONPATH=$(MAKO_LIB_DIR) $(TPL) --template-dir '.' -io $(API_DEPS_TPL)=$@ --data-files $(API_SHARED_INFO)
44+
$(API_DEPS): $(API_SHARED_INFO) $(API_DEPS_TPL) $(MAKO_LIB_FILES) $(MAKO_RENDER) $(API_LIST)
45+
PYTHONPATH=$(MAKO_LIB_DIR) $(TPL) --template-dir '.' -io $(API_DEPS_TPL)=$@ --data-files $(API_SHARED_INFO) $(API_LIST)
4046

4147
api-deps: $(API_DEPS)
4248

49+
$(API_LIST): $(API_VERSION_GEN)
50+
$(API_VERSION_GEN) etc/api $@ $@
51+
4352
include $(API_DEPS)
4453

4554
LICENSE.md: $(MAKO_SRC)/LICENSE.md.mako $(API_SHARED_INFO)
@@ -53,4 +62,7 @@ clean: clean-apis
5362
-rm -Rf $(VENV_DIR)
5463
-rm $(API_DEPS)
5564

65+
update-json:
66+
etc/bin/update-json.sh $(GOOGLE_GO_APIS_REPO) etc/api
67+
5668

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,8 @@ The license of everything not explicitly under a different license are licensed
2929

3030
What follows is a list of other material that is licensed differently.
3131

32-
* **./etc/bin/pyratemp.py** is licensed under MIT-like, as shown in [the header][pyratemp-header] of the file.
3332
* **./etc/api/\*\*/*.json** are licensed under a [MIT-like google license][google-lic].
3433

3534

3635
[oauth]: https://crates.io/crates/yup-oauth2
37-
[pyratemp-header]: https://github.com/Byron/youtube-rs/blob/master/etc/bin/pyratemp.py
3836
[google-lic]: https://github.com/google/google-api-go-client/blob/master/LICENSE

0 commit comments

Comments
 (0)