Index: runtime/vm/vm.gypi |
diff --git a/runtime/vm/vm.gypi b/runtime/vm/vm.gypi |
index 937b1d0cc57c7ac6e0d75251b49dc6d8f76be514..530f7f0642f3d3a805f3d3b9d0069943c442b20e 100644 |
--- a/runtime/vm/vm.gypi |
+++ b/runtime/vm/vm.gypi |
@@ -58,20 +58,22 @@ |
['exclude', 'gdbjit.cc'], |
], |
}], |
- ['dart_vtune_support == 0', { |
+ ['dart_vtune_support==0', { |
'sources/' : [ |
['exclude', 'vtune\\.(cc|h)$'], |
], |
}], |
- ['OS=="linux" and dart_vtune_support == 1', { |
- # Link in libjitprofiling.a. |
- 'cflags': [ |
- '-DDART_VTUNE_SUPPORT', |
- '-I<(dart_vtune_root)/include', |
- ], |
+ ['dart_vtune_support==1', { |
+ 'include_dirs': ['<(dart_vtune_root)/include'], |
+ 'defines': ['DART_VTUNE_SUPPORT'], |
'link_settings': { |
- 'libraries': [ |
- '-ljitprofiling', |
+ 'conditions': [ |
+ ['OS=="linux"', { |
+ 'libraries': ['-ljitprofiling'], |
+ }], |
+ ['OS=="win"', { |
+ 'libraries': ['-ljitprofiling.lib'], |
+ }], |
], |
}, |
}]], |