Add vtune jit support for linux

Change-Id: Ie82c8a280cbc3997d0b65327535f0eaf0694bdfc
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/556601
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: Herb Derby <herb@google.com>
This commit is contained in:
Brian Osman 2022-04-21 10:00:32 -04:00 committed by SkCQ
parent 4008acdc7c
commit 068fc2cfc1

View File

@ -1261,7 +1261,11 @@ optional("skvm_jit") {
if (skia_vtune_path != "") {
public_defines += [ "SKVM_JIT_VTUNE" ]
public_include_dirs = [ "$skia_vtune_path/include" ]
libs = [ "$skia_vtune_path/lib64/jitprofiling.lib" ]
if (is_win) {
libs = [ "$skia_vtune_path/lib64/jitprofiling.lib" ]
} else if (is_linux) {
libs = [ "$skia_vtune_path/lib64/libjitprofiling.a" ]
}
}
}