forked from crosswalk-project/crosswalk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
xwalk_win_zip.gypi
59 lines (59 loc) · 1.71 KB
/
xwalk_win_zip.gypi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{
'variables': {
# The files and directories will be added with the same names to the
# generated zip file, with <(PRODUCT_DIR)/ stripped from the beginning.
'directories_to_package': [
'<(PRODUCT_DIR)/locales/xwalk',
],
'files_to_package': [
'<(PRODUCT_DIR)/VERSION',
'<(PRODUCT_DIR)/d3dcompiler_47.dll',
'<(PRODUCT_DIR)/icudtl.dat',
'<(PRODUCT_DIR)/libEGL.dll',
'<(PRODUCT_DIR)/libGLESv2.dll',
'<(PRODUCT_DIR)/natives_blob.bin',
'<(PRODUCT_DIR)/osmesa.dll',
'<(PRODUCT_DIR)/snapshot_blob.bin',
'<(PRODUCT_DIR)/xwalk.exe',
'<(PRODUCT_DIR)/xwalk.pak',
'<(PRODUCT_DIR)/xwalk_100_percent.pak',
'<(PRODUCT_DIR)/xwalk_200_percent.pak',
'<(PRODUCT_DIR)/xwalk_300_percent.pak',
'<(PRODUCT_DIR)/xwalk_dotnet_bridge.dll',
],
},
# TODO(rakuco): This could be done earlier in the build for other targets to
# use this file instead of the one in the source tree.
'copies': [
{
'destination': '<(PRODUCT_DIR)',
'files': [
'<(DEPTH)/xwalk/VERSION',
],
},
],
'actions': [
{
'action_name': 'generate_crosswalk_win_zip',
'variables': {
'zip_script': '<(DEPTH)/xwalk/build/win/generate_crosswalk_zip.py',
'zip_name': '<(PRODUCT_DIR)/crosswalk_win.zip',
},
'inputs': [
'<(zip_script)',
'<@(directories_to_package)',
'<@(files_to_package)',
],
'outputs': [
'<(zip_name)',
],
'action': [
'python', '<(zip_script)',
'--build-dir', '<(PRODUCT_DIR)',
'--dest', '<(zip_name)',
'--dirs', '<@(directories_to_package)',
'--files', '<@(files_to_package)',
],
},
],
}