Skip to content

Commit

Permalink
revert parallel idh change
Browse files Browse the repository at this point in the history
  • Loading branch information
CyanoHao committed Mar 10, 2020
1 parent b508b28 commit 43d41b9
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,8 @@ def ParamToArgument(conf):
"depend": [
"all",
"hint2",
] + [
"hint2-{}".format(w) for w in config.fontPackWeight
],
},
"all": {
Expand Down Expand Up @@ -573,15 +575,17 @@ def ParamToArgument(conf):

# IDH
makefile["rule"]["hint2"] = {
"depend": [ "build/hint2/{}.otd".format(GenerateFilename(f)) for w in config.fontPackWeight for f in hintGroup[w] ],
"command": [ "mkdir -p cache/" ] + [
"node node_modules/@chlorophytum/cli/bin/_startup hint -c source/idh/{0}.json -h cache/idh-{0}.gz -j ${{IDH_JOBS}} ".format(w) +
" ".join([ "build/hint2/{0}.otd build/hint2/{0}.hint.gz".format(GenerateFilename(f)) for f in hintGroup[w] ])
for w in config.fontPackWeight
],
"depend": [ "hint2-{}".format(w) for w in config.fontPackWeight ],
}
for w in config.fontPackWeight:
for f in hintGroup[w]:
makefile["rule"]["hint2-{}".format(w)] = {
"depend": [ "build/hint2/{}.otd".format(GenerateFilename(f)) for f in hintGroup[w] ],
"command": [
"node node_modules/@chlorophytum/cli/bin/_startup hint -c source/idh/{0}.json -h cache/idh-{0}.gz -j ${{IDH_JOBS}} ".format(w) +
" ".join([ "build/hint2/{0}.otd build/hint2/{0}.hint.gz".format(GenerateFilename(f)) for f in hintGroup[w] ])
],
}
makefile["rule"]["build/nowar/{}.ttf".format(GenerateFilename(f))] = {
"depend": [ "build/nowar/{}.otd".format(GenerateFilename(f)) ],
"command": [ "otfccbuild -q -O3 --keep-average-char-width $< -o $@" ],
Expand Down

0 comments on commit 43d41b9

Please sign in to comment.