OLD | NEW |
1 { | 1 { |
2 'variables': { | 2 'variables': { |
3 'libv8_include_dir%': 'third_party/v8/include', | 3 'v8_dir%': 'build/v8/', |
4 'libv8_build_targets': [], | 4 'libv8_include_dir%': '>(v8_dir)/include', |
5 'libv8_no_build%': 0, | 5 'libv8_lib_dir%': '>(v8_dir)/<(OS)-<(target_arch).<(CONFIGURATION_NAME)', |
6 'conditions': [[ | 6 'conditions': [[ |
7 'OS=="win"', { | 7 'OS=="android"', { |
8 'libv8_lib_dir%': 'v8/third_party/v8/src/<(CONFIGURATION_NAME)', | 8 'libv8_libs%': [ |
9 'libv8_libs': [ | 9 '>(libv8_lib_dir)/libv8_monolith.a', |
10 '-lv8_libplatform', | |
11 '-lv8_base_0', | |
12 '-lv8_base_1', | |
13 '-lv8_base_2', | |
14 '-lv8_base_3', | |
15 '-lv8_libbase', | |
16 '-lv8_libsampler', | |
17 '-lv8_snapshot', | |
18 ], | 10 ], |
19 }], | 11 }, { |
20 ['OS=="linux" or OS=="mac"', { | 12 'libv8_libs%': [ |
21 'libv8_lib_dir%': 'v8/out/<(CONFIGURATION_NAME)', | 13 '-lv8_monolith', |
22 'libv8_libs': [ | |
23 '-lv8_libplatform', | |
24 '-lv8_base', | |
25 '-lv8_snapshot', | |
26 '-lv8_libbase', | |
27 '-lv8_libsampler', | |
28 ] | |
29 }], | |
30 ['OS=="android"', { | |
31 'libv8_lib_dir%': '', # must be specified, e.g. in Makefile | |
32 'libv8_libs': [ | |
33 '<(libv8_lib_dir)/libv8_libplatform.a', | |
34 '<(libv8_lib_dir)/libv8_base.a', | |
35 '<(libv8_lib_dir)/libv8_snapshot.a', | |
36 '<(libv8_lib_dir)/libv8_libbase.a', | |
37 '<(libv8_lib_dir)/libv8_libsampler.a', | |
38 ], | 14 ], |
39 }], | 15 }] |
40 ] | 16 ] |
41 }, | 17 }, |
42 'conditions': [[ | |
43 'OS=="win" and libv8_no_build!="true"', { | |
44 'variables': { | |
45 'libv8_build_targets': ['build-v8'], | |
46 }, | |
47 'targets': [{ | |
48 'target_name': 'build-v8', | |
49 'type': 'none', | |
50 'actions': [{ | |
51 'action_name': 'build-v8', | |
52 'inputs': ['build-v8.cmd'], | |
53 'outputs': [ | |
54 'build/<(target_arch)/v8/build/<(CONFIGURATION_NAME)/v8_libplatform.
lib', | |
55 'build/<(target_arch)/v8/build/<(CONFIGURATION_NAME)/v8_base_0.lib', | |
56 'build/<(target_arch)/v8/build/<(CONFIGURATION_NAME)/v8_base_1.lib', | |
57 'build/<(target_arch)/v8/build/<(CONFIGURATION_NAME)/v8_base_2.lib', | |
58 'build/<(target_arch)/v8/build/<(CONFIGURATION_NAME)/v8_base_3.lib', | |
59 'build/<(target_arch)/v8/build/<(CONFIGURATION_NAME)/v8_libbase.lib'
, | |
60 'build/<(target_arch)/v8/build/<(CONFIGURATION_NAME)/v8_libsampler.l
ib', | |
61 'build/<(target_arch)/v8/build/<(CONFIGURATION_NAME)/v8_snapshot.lib
', | |
62 ], | |
63 'action': [ | |
64 'cmd', | |
65 '/C', | |
66 'build-v8.cmd', | |
67 '$(MSBuildBinPath)', | |
68 '<(target_arch)', | |
69 '<(CONFIGURATION_NAME)' | |
70 ] | |
71 }], | |
72 }] | |
73 } | |
74 ]], | |
75 } | 18 } |
OLD | NEW |