-
-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(pyratemp): successfully generating make deps
After minor modifications to pyratemp, it certainly does the job. What it **does NOT** do: * multiple outputs per template/command invocation * NICE embedding of code (like GSL can) It will do the job nonetheless, but mako might be worth a look
- Loading branch information
Showing
7 changed files
with
269 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
target | ||
.api.deps | ||
Cargo.lock | ||
*.sublime-workspace | ||
*.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Contains values shared among all API implementations | ||
directories: | ||
# directory under which all generated sources should reside | ||
output: ./generated | ||
# how to get from `output` back to common library | ||
common: ../ | ||
# where are all the API meta files | ||
api_base: ./etc/api | ||
api: | ||
list: | ||
- name: youtube | ||
version: v3 | ||
base_path: "etc/api" | ||
cargo: | ||
build_version: "0.0.1" | ||
authors: | ||
- Sebastian Thiel <byronimo@gmail> | ||
keywords: [google, protocol] | ||
# All APIs should live in the same repository | ||
repository_url: https://github.com/Byron/youtube-rs |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
$!setvar("api_info", "[]")!$#! | ||
|
||
<!--(for a in api.list)--> | ||
$!setvar("gen_root", "directories.output + '/' + a.name + '_' + a.version")!$#! | ||
$!setvar("api_name", "a.name+a.version")!$#! | ||
$!setvar("api_clean", "api_name+'-clean'")!$#! | ||
$!gen_root!$: $!directories.api_base!$/$!a.name!$/$!a.version!$/$!a.name!$-api.json | ||
$!api_name!$: $!gen_root!$ | ||
$!api_clean!$: | ||
rm -Rf $!gen_root!$ | ||
$!api_info.append((api_name, api_clean, gen_root))!$#! | ||
|
||
<!--(end)--> | ||
|
||
.PHONY += $(.PHONY) $!' '.join(a[0] for a in api_info)!$ $!' '.join(a[1] for a in api_info)!$ | ||
|
||
help-api: | ||
<!--(for a in api_info)--> | ||
$(info $!a[0]!$ - build the $!a[0]!$ api) | ||
$(info $!a[1]!$ - clean all generated files of the $!a[0]!$ api) | ||
<!--(end)--> | ||
|
||
|
||
clean-api: $!' '.join(a[1] for a in api_info)!$ |