Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 3ed792f

Browse files
[[ Config ]] Added unzip gyp rule
The unzip rule is useful when extracting classes.jar from a list of aars.
1 parent c31e10e commit 3ed792f

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

config/unzip.gypi

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
'rules':
3+
[
4+
{
5+
'rule_name': 'unzip zip',
6+
'extension': 'zip',
7+
8+
'message': ' UNZIP ZIP <(RULE_INPUT_PATH)',
9+
10+
'outputs':
11+
[
12+
'<(PRODUCT_DIR)/<(RULE_INPUT_ROOT)',
13+
],
14+
15+
'action':
16+
[
17+
'unzip',
18+
'-o',
19+
'<(RULE_INPUT_PATH)',
20+
'-d',
21+
'<@(_outputs)',
22+
],
23+
},
24+
25+
{
26+
'rule_name': 'unzip aar',
27+
'extension': 'aar',
28+
29+
'message': ' UNZIP AAR <(RULE_INPUT_PATH)',
30+
31+
'outputs':
32+
[
33+
'<(PRODUCT_DIR)/<(RULE_INPUT_ROOT)',
34+
],
35+
36+
'action':
37+
[
38+
'unzip',
39+
'-o',
40+
'<(RULE_INPUT_PATH)',
41+
'-d',
42+
'<@(_outputs)',
43+
],
44+
},
45+
],
46+
}

0 commit comments

Comments
 (0)