1 if (NOT LIBIPT_INCLUDE_PATH)
2 message (FATAL_ERROR "libipt include path not provided")
5 if (NOT EXISTS "${LIBIPT_INCLUDE_PATH}")
6 message (FATAL_ERROR "invalid libipt include path provided")
8 include_directories(${LIBIPT_INCLUDE_PATH})
10 find_library(LIBIPT_LIBRARY ipt PATHS ${LIBIPT_LIBRARY_PATH} REQUIRED)
12 lldb_tablegen(TraceIntelPTCommandOptions.inc -gen-lldb-option-defs
13 SOURCE TraceIntelPTOptions.td
14 TARGET TraceIntelPTOptionsGen)
16 lldb_tablegen(TraceIntelPTProperties.inc -gen-lldb-property-defs
17 SOURCE TraceIntelPTProperties.td
18 TARGET TraceIntelPTPropertiesGen)
20 lldb_tablegen(TraceIntelPTPropertiesEnum.inc -gen-lldb-property-enum-defs
21 SOURCE TraceIntelPTProperties.td
22 TARGET TraceIntelPTPropertiesEnumGen)
24 add_lldb_library(lldbPluginTraceIntelPT PLUGIN
25 CommandObjectTraceStartIntelPT.cpp
29 PerfContextSwitchDecoder.cpp
31 TraceCursorIntelPT.cpp
33 TraceIntelPTJSONStructs.cpp
34 TraceIntelPTMultiCpuDecoder.cpp
35 TraceIntelPTBundleLoader.cpp
36 TraceIntelPTBundleSaver.cpp
49 add_dependencies(lldbPluginTraceIntelPT
50 TraceIntelPTOptionsGen
51 TraceIntelPTPropertiesGen
52 TraceIntelPTPropertiesEnumGen)