|
7 | 7 | "dict_merge": "<(module_root_dir)/data/scripts/merge.py", |
8 | 8 | "dict_reverse": "<(module_root_dir)/data/scripts/reverse.py", |
9 | 9 | "input_prefix": "<(module_root_dir)/data/dictionary/", |
10 | | - "output_prefix": "<(PRODUCT_DIR)/" |
| 10 | + "output_prefix": "<(PRODUCT_DIR)/", |
| 11 | + "python_cmd": "python3" |
11 | 12 | }, |
| 13 | + "conditions": [ |
| 14 | + [ |
| 15 | + "OS==\"win\"", |
| 16 | + { |
| 17 | + "variables": { |
| 18 | + "python_cmd": "python.exe" |
| 19 | + } |
| 20 | + } |
| 21 | + ] |
| 22 | + ], |
12 | 23 | "actions": [{ |
13 | 24 | "action_name": "STCharacters", |
14 | 25 | "variables": { |
|
69 | 80 | "action_name": "TWPhrases.txt", |
70 | 81 | "inputs": ["<(cmd)"], |
71 | 82 | "outputs": ["<(output_prefix)TWPhrases.txt"], |
72 | | - "action": ["python3", "<(dict_merge)", "<(input_prefix)TWPhrasesIT.txt", "<(input_prefix)TWPhrasesName.txt", "<(input_prefix)TWPhrasesOther.txt", "<@(_outputs)"] |
| 83 | + "action": ["<(python_cmd)", "<(dict_merge)", "<(input_prefix)TWPhrasesIT.txt", "<(input_prefix)TWPhrasesName.txt", "<(input_prefix)TWPhrasesOther.txt", "<@(_outputs)"] |
73 | 84 | }, { |
74 | 85 | "action_name": "TWVariantsRev.txt", |
75 | 86 | "variables": { |
76 | 87 | "input": "<(input_prefix)TWVariants.txt", |
77 | 88 | }, |
78 | 89 | "inputs": ["<(input)"], |
79 | 90 | "outputs": ["<(output_prefix)TWVariantsRev.txt"], |
80 | | - "action": ["python3", "<(dict_reverse)", "<(input)", "<@(_outputs)"] |
| 91 | + "action": ["<(python_cmd)", "<(dict_reverse)", "<(input)", "<@(_outputs)"] |
81 | 92 | }, { |
82 | 93 | "action_name": "TWPhrasesRev.txt", |
83 | 94 | "variables": { |
84 | 95 | "input": "<(output_prefix)TWPhrases.txt", |
85 | 96 | }, |
86 | 97 | "inputs": ["<(input)"], |
87 | 98 | "outputs": ["<(output_prefix)TWPhrasesRev.txt"], |
88 | | - "action": ["python3", "<(dict_reverse)", "<(input)", "<@(_outputs)"] |
| 99 | + "action": ["<(python_cmd)", "<(dict_reverse)", "<(input)", "<@(_outputs)"] |
89 | 100 | }, { |
90 | 101 | "action_name": "TWPhrases", |
91 | 102 | "variables": { |
|
133 | 144 | }, |
134 | 145 | "inputs": ["<(input)"], |
135 | 146 | "outputs": ["<(output_prefix)HKVariantsRev.txt"], |
136 | | - "action": ["python3", "<(dict_reverse)", "<(input)", "<@(_outputs)"] |
| 147 | + "action": ["<(python_cmd)", "<(dict_reverse)", "<(input)", "<@(_outputs)"] |
137 | 148 | }, { |
138 | 149 | "action_name": "HKVariantsRev", |
139 | 150 | "variables": { |
|
149 | 160 | }, |
150 | 161 | "inputs": ["<(input)"], |
151 | 162 | "outputs": ["<(output_prefix)JPVariantsRev.txt"], |
152 | | - "action": ["python3", "<(dict_reverse)", "<(input)", "<@(_outputs)"] |
| 163 | + "action": ["<(python_cmd)", "<(dict_reverse)", "<(input)", "<@(_outputs)"] |
153 | 164 | }, { |
154 | 165 | "action_name": "JPVariantsRev", |
155 | 166 | "variables": { |
|
0 commit comments