Index: v8.gypi |
diff --git a/v8.gypi b/v8.gypi |
new file mode 100644 |
index 0000000000000000000000000000000000000000..e1838a449ca1fff3834db9cddf4727bd183c4f38 |
--- /dev/null |
+++ b/v8.gypi |
@@ -0,0 +1,73 @@ |
+{ |
+ 'variables': { |
+ 'libv8_include_dir': 'third_party/v8/include', |
+ 'libv8_build_targets': [], |
+ 'conditions': [[ |
+ 'OS=="win"', { |
+ 'libv8_lib_dir': 'v8/build/<(CONFIGURATION_NAME)', |
+ 'libv8_libs': [ |
+ '-lv8_libplatform', |
+ '-lv8_base_0', |
+ '-lv8_base_1', |
+ '-lv8_base_2', |
+ '-lv8_base_3', |
+ '-lv8_libbase', |
+ '-lv8_libsampler', |
+ '-lv8_snapshot', |
+ ], |
+ }], |
+ ['OS=="linux" or OS=="mac"', { |
+ 'libv8_libs': [ |
+ 'v8/out/<(CONFIGURATION_NAME)/libv8_libplatform.a', |
+ 'v8/out/<(CONFIGURATION_NAME)/libv8_base.a', |
+ 'v8/out/<(CONFIGURATION_NAME)/libv8_snapshot.a', |
+ 'v8/out/<(CONFIGURATION_NAME)/libv8_libbase.a', |
+ 'v8/out/<(CONFIGURATION_NAME)/libv8_libsampler.a', |
+ ] |
+ }], |
+ ['OS=="android"', { |
+ 'libv8_libs': [ |
+ 'android_<(target_arch).release/libv8_libplatform.a', |
+ 'android_<(target_arch).release/libv8_base.a', |
+ 'android_<(target_arch).release/libv8_snapshot.a', |
+ 'android_<(target_arch).release/libv8_libbase.a', |
+ 'android_<(target_arch).release/libv8_libsampler.a', |
+ ], |
+ }], |
+ ] |
+ }, |
+ 'conditions': [[ |
+ 'OS=="win"', { |
+ 'variables': { |
+ 'libv8_build_targets': ['build-v8'], |
+ }, |
+ 'targets': [{ |
+ 'target_name': 'build-v8', |
+ 'type': 'none', |
+ 'actions': [{ |
+ 'action_name': 'build-v8', |
+ 'inputs': ['build-v8.cmd'], |
+ 'outputs': [ |
+ 'build/<(target_arch)/v8/build/<(CONFIGURATION_NAME)/v8_libplatform.lib', |
+ 'build/<(target_arch)/v8/build/<(CONFIGURATION_NAME)/v8_base_0.lib', |
+ 'build/<(target_arch)/v8/build/<(CONFIGURATION_NAME)/v8_base_1.lib', |
+ 'build/<(target_arch)/v8/build/<(CONFIGURATION_NAME)/v8_base_2.lib', |
+ 'build/<(target_arch)/v8/build/<(CONFIGURATION_NAME)/v8_base_3.lib', |
+ 'build/<(target_arch)/v8/build/<(CONFIGURATION_NAME)/v8_libbase.lib', |
+ 'build/<(target_arch)/v8/build/<(CONFIGURATION_NAME)/v8_libsampler.lib', |
+ 'build/<(target_arch)/v8/build/<(CONFIGURATION_NAME)/v8_snapshot.lib', |
+ ], |
+ 'action': [ |
+ 'cmd', |
+ '/C', |
+ 'build-v8.cmd', |
+ '$(MSBuildBinPath)', |
+ '<(target_arch)', |
+ '<(CONFIGURATION_NAME)', |
+ '$(PlatformToolset)' |
+ ] |
+ }], |
+ }] |
+ } |
+ ]], |
+} |