OLD | NEW |
| (Empty) |
1 { | |
2 'targets': [ | |
3 { | |
4 # GN: //third_party/kasko:kasko_features | |
5 'target_name': 'kasko_features', | |
6 'type': 'none', | |
7 'includes': [ '../../build/buildflag_header.gypi' ], | |
8 'variables': { | |
9 'buildflag_header_path': 'third_party/kasko/kasko_features.h', | |
10 'buildflag_flags': [ | |
11 'ENABLE_KASKO=<(kasko)', | |
12 ], | |
13 }, | |
14 }, | |
15 ], | |
16 'conditions': [ | |
17 ['kasko==1', { | |
18 'targets': [ | |
19 { | |
20 # GN: //third_party/kasko:copy_kasko_dll | |
21 'target_name': 'copy_kasko_dll', | |
22 'type': 'none', | |
23 'variables': { | |
24 'kasko_exe_dir': '<(DEPTH)/third_party/kasko/binaries', | |
25 }, | |
26 'outputs': [ | |
27 '<(PRODUCT_DIR)/kasko.dll', | |
28 '<(PRODUCT_DIR)/kasko.dll.pdb', | |
29 ], | |
30 'copies': [ | |
31 { | |
32 'destination': '<(PRODUCT_DIR)', | |
33 'files': [ | |
34 '<(kasko_exe_dir)/kasko.dll', | |
35 '<(kasko_exe_dir)/kasko.dll.pdb', | |
36 ], | |
37 }, | |
38 ], | |
39 }, | |
40 { | |
41 # GN: //third_party/kasko | |
42 'target_name': 'kasko', | |
43 'type': 'none', | |
44 'hard_dependency': 1, | |
45 'dependencies': [ | |
46 'copy_kasko_dll', | |
47 'kasko_features', | |
48 ], | |
49 'direct_dependent_settings': { | |
50 'msvs_settings': { | |
51 'VCLinkerTool': { | |
52 'AdditionalDependencies': [ | |
53 'kasko.dll.lib', | |
54 ], | |
55 'AdditionalLibraryDirectories': [ | |
56 '../third_party/kasko/binaries' | |
57 ], | |
58 }, | |
59 }, | |
60 'include_dirs': [ | |
61 '../../third_party/kasko/binaries/include', | |
62 ], | |
63 }, | |
64 'export_dependent_settings': [ | |
65 'kasko_features', | |
66 ] | |
67 }, | |
68 ], | |
69 }, { # 'kasko==0' | |
70 'targets': [ | |
71 { | |
72 # GN: //third_party/kasko | |
73 'target_name': 'kasko', | |
74 'type': 'none', | |
75 'dependencies': [ | |
76 'kasko_features', | |
77 ], | |
78 'export_dependent_settings': [ | |
79 'kasko_features', | |
80 ] | |
81 }, | |
82 ], | |
83 }], | |
84 ], # 'conditions' | |
85 } | |
OLD | NEW |