blob: 9d3c98802c9db7124f8658840e7b2ccb43795dd4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
cmake_minimum_required(VERSION 2.8.12)
set(EVENT_MANIFEST ${VM_DIR}/ClrEtwAll.man)
set(EVENT_EXCLUSIONS ${VM_DIR}/ClrEtwAllMeta.lst)
if (WIN32)
set(NONEXTERN_ARG "--nonextern")
set(NOXPLATHEADER_ARG "--noxplatheader")
else()
set(NEED_XPLAT_HEADER ON)
endif()
include(FindPythonInterp)
set (EventingHeaders
${GENERATED_INCLUDE_DIR}/etmdummy.h
${GENERATED_INCLUDE_DIR}/clretwallmain.h
${GENERATED_INCLUDE_DIR}/clreventpipewriteevents.h
)
if (NEED_XPLAT_HEADER)
list(APPEND EventingHeaders
${GENERATED_INCLUDE_DIR}/clrxplatevents.h)
endif()
set(GENEVENTING_SCRIPT ${CLR_DIR}/src/scripts/genEventing.py)
add_custom_target(eventing_headers
${PYTHON_EXECUTABLE} ${GENEVENTING_SCRIPT} --man ${EVENT_MANIFEST} --inc ${GENERATED_INCLUDE_DIR} --dummy ${GENERATED_INCLUDE_DIR}/etmdummy.h ${NONEXTERN_ARG} ${NOXPLATHEADER_ARG}
DEPENDS ${EVENT_MANIFEST} ${GENEVENTING_SCRIPT}
VERBATIM
)
set_source_files_properties(${EventingHeaders} PROPERTIES GENERATED TRUE)
add_dependencies(eventing_headers eventprovider)
add_subdirectory(eventpipe)
if(WIN32)
add_subdirectory(EtwProvider)
endif()
|