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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
{
'targets': [
{
# GN: //third_party/kasko:kasko_features
'target_name': 'kasko_features',
'type': 'none',
'includes': [ '../../build/buildflag_header.gypi' ],
'variables': {
'buildflag_header_path': 'third_party/kasko/kasko_features.h',
'buildflag_flags': [
'ENABLE_KASKO=<(kasko)',
'ENABLE_KASKO_HANG_REPORTS=<(kasko_hang_reports)',
],
},
},
],
'conditions': [
['kasko==1', {
'targets': [
{
# GN: //third_party/kasko:copy_kasko_dll
'target_name': 'copy_kasko_dll',
'type': 'none',
'variables': {
'kasko_exe_dir': '<(DEPTH)/third_party/kasko/binaries',
},
'outputs': [
'<(PRODUCT_DIR)/kasko.dll',
'<(PRODUCT_DIR)/kasko.dll.pdb',
],
'copies': [
{
'destination': '<(PRODUCT_DIR)',
'files': [
'<(kasko_exe_dir)/kasko.dll',
'<(kasko_exe_dir)/kasko.dll.pdb',
],
},
],
},
{
# GN: //third_party/kasko
'target_name': 'kasko',
'type': 'none',
'dependencies': [
'copy_kasko_dll',
'kasko_features',
],
'direct_dependent_settings': {
'msvs_settings': {
'VCLinkerTool': {
'AdditionalDependencies': [
'kasko.dll.lib',
],
'AdditionalLibraryDirectories': [
'../third_party/kasko/binaries'
],
},
},
'include_dirs': [
'../../third_party/kasko/binaries/include',
],
},
},
],
}, { # 'kasko==0'
'targets': [
{
# GN: //third_party/kasko
'target_name': 'kasko',
'type': 'none',
'dependencies': [
'kasko_features',
],
},
],
}],
], # 'conditions'
}
|