Index: runtime/tools/gyp/runtime-configurations.gypi |
diff --git a/runtime/tools/gyp/runtime-configurations.gypi b/runtime/tools/gyp/runtime-configurations.gypi |
index 6a52f2d9c2ad4ac568b6ebb120d4c052397210cd..ce343b9b93b922b414cf77a5bd0e066e42721be6 100644 |
--- a/runtime/tools/gyp/runtime-configurations.gypi |
+++ b/runtime/tools/gyp/runtime-configurations.gypi |
@@ -8,6 +8,23 @@ |
# If we have not set dart_io_support to 1 in Dart's all.gypi or common.gypi, |
# then do not build the native libraries supporting dart:io. |
'dart_io_support%': 0, |
+ # Intel VTune related variables. |
+ 'dart_vtune_support%': 0, |
+ 'dart_vtune_root%': '/opt/intel/vtune_amplifier_xe', |
+ }, |
+ |
+ 'configurations': { |
+ 'Dart_ia32_Base': { |
+ 'variables': { |
+ 'dart_vtune_lib_dir': '<(dart_vtune_root)/lib32', |
+ } |
+ }, |
+ |
+ 'Dart_x64_Base': { |
+ 'variables': { |
+ 'dart_vtune_lib_dir': '<(dart_vtune_root)/lib64', |
+ } |
+ }, |
}, |
'target_defaults': { |
@@ -41,6 +58,11 @@ |
'xcode_settings': { |
'ARCHS': [ 'i386' ], |
}, |
+ 'conditions': [ |
+ ['OS=="linux" and dart_vtune_support == 1', { |
+ 'ldflags': ['-L<(dart_vtune_root)/lib32'], |
+ }] |
+ ], |
}, |
'Dart_x64_Base': { |
@@ -48,6 +70,11 @@ |
'xcode_settings': { |
'ARCHS': [ 'x86_64' ], |
}, |
+ 'conditions': [ |
+ ['OS=="linux" and dart_vtune_support == 1', { |
+ 'ldflags': ['-L<(dart_vtune_root)/lib64'], |
+ }] |
+ ], |
}, |
'Dart_simarm_Base': { |