[Tizen] Implement detecting of sanitized libraries
[platform/upstream/coreclr.git] / src / CMakeLists.txt
index ba17dc0..91153a3 100644 (file)
@@ -10,106 +10,16 @@ include_directories("classlibnative/cryptography")
 include_directories("classlibnative/inc")
 include_directories("${GENERATED_INCLUDE_DIR}")
 
-# The Following Logic is used to wire up Build dependencies for Generated files in Event Logging 
-# ClrEtwAll.man                  - Event Schema
-# ClrEtwAllMeta.lst              - MetaData list [provided to ensure Windows Desktop is not broken]
-# genXplatEventing.py            - has the core logic for parsing Event Schema
-# genWinEtw.py                   - Uses genXplatEventing to generate Windows Specific ETW Files
-# clretwallmain.h and etmdummy.h - Provides the Event Logging Functionality to the VM
-# clrxplatevents.h               - Used by clretwallmain.h on Non Windows platform
-# ClrEtwAll.h                    - Used by clretwallmain.h on  Windows 
-# ClrEtwAll.rc                   - Used by src/dlls/clretwrc/clretrw.rc on Windows
+if(WIN32 AND FEATURE_EVENT_TRACE)
+    include_directories("${GENERATED_INCLUDE_DIR}/etw")
+endif(WIN32 AND FEATURE_EVENT_TRACE)
 
-set (ScriptGeneratedEventFiles
-      ${GENERATED_INCLUDE_DIR}/clretwallmain.h
-      ${GENERATED_INCLUDE_DIR}/etmdummy.h
-)
-set (GeneratedEventFiles)
-
-if(WIN32)
-    set (GenEventFilesScript "${CLR_DIR}/src/scripts/genWinEtw.py")
-    set (GenEventArgs --eventheader "${GENERATED_INCLUDE_DIR}/ClrEtwAll.h" --macroheader "${GENERATED_INCLUDE_DIR}/clretwallmain.h")
-
-    list (APPEND ScriptGeneratedEventFiles
-          ${GENERATED_INCLUDE_DIR}/ClrEtwAll.h
-    )
-
-    list (APPEND GeneratedEventFiles
-         ${GENERATED_INCLUDE_DIR}/ClrEtwAll.rc
-    )
-
-    add_custom_command(
-      COMMENT "Generating ETW resource Files"
-      COMMAND ${MC} -h ${GENERATED_INCLUDE_DIR} -r ${GENERATED_INCLUDE_DIR} -b -co -um -p FireEtw "${VM_DIR}/ClrEtwAll.man"
-      OUTPUT ${GENERATED_INCLUDE_DIR}/ClrEtwAll.h
-      DEPENDS "${VM_DIR}/ClrEtwAll.man"
-    )
-else()
-    set (GenEventFilesScript "${CLR_DIR}/src/scripts/genXplatEventing.py")
-    set (GenEventArgs   --inc  "${GENERATED_INCLUDE_DIR}")
-
-    list (APPEND ScriptGeneratedEventFiles
-          ${GENERATED_INCLUDE_DIR}/clrxplatevents.h
-    )
-endif(WIN32)
-
-if(CLR_CMAKE_WARNINGS_ARE_ERRORS)
-    set(PYTHON_WARNING_FLAGS -Wall -Werror)
-else()
-    set(PYTHON_WARNING_FLAGS -Wall)
-endif(CLR_CMAKE_WARNINGS_ARE_ERRORS)
-
-add_custom_command(
-  COMMENT "Generating Eventing Files"
-  COMMAND ${PYTHON} -B ${PYTHON_WARNING_FLAGS} ${GenEventFilesScript} ${GenEventArgs} --man "${VM_DIR}/ClrEtwAll.man" --exc "${VM_DIR}/ClrEtwAllMeta.lst" --dummy "${GENERATED_INCLUDE_DIR}/etmdummy.h"
-  OUTPUT ${ScriptGeneratedEventFiles}
-  DEPENDS ${GenEventFilesScript} "${VM_DIR}/ClrEtwAll.man" "${VM_DIR}/ClrEtwAllMeta.lst" "${CLR_DIR}/src/scripts/genXplatEventing.py"
-)
-
-list (APPEND GeneratedEventFiles
-      ${ScriptGeneratedEventFiles}
-)
-
-add_custom_target(
-  GeneratedEventingFiles
-  DEPENDS ${GeneratedEventFiles}
-)
-
-function(add_library_clr)
-    if(NOT WIN32)
-      add_library(${ARGV} ${VERSION_FILE_PATH})
-    else()
-      add_library(${ARGV})
-    endif(NOT WIN32)
-    add_dependencies(${ARGV0} GeneratedEventingFiles)
-    list(FIND CLR_CROSS_COMPONENTS_LIST ${ARGV0} INDEX)  
-    if (DEFINED CLR_CROSS_COMPONENTS_LIST AND ${INDEX} EQUAL -1)  
-     set_target_properties(${ARGV0} PROPERTIES EXCLUDE_FROM_ALL 1)  
-    endif()  
-endfunction()
-
-function(add_executable_clr)
-    if(NOT WIN32)
-      add_executable(${ARGV} ${VERSION_FILE_PATH})
-    else()
-      add_executable(${ARGV})
-    endif(NOT WIN32)
-    add_dependencies(${ARGV0} GeneratedEventingFiles)
-    list(FIND CLR_CROSS_COMPONENTS_LIST ${ARGV0} INDEX)  
-    if (DEFINED CLR_CROSS_COMPONENTS_LIST AND ${INDEX} EQUAL -1)  
-     set_target_properties(${ARGV0} PROPERTIES EXCLUDE_FROM_ALL 1)  
-    endif()  
-endfunction()
 
 if(CLR_CMAKE_PLATFORM_UNIX)
   if(CLR_CMAKE_PLATFORM_LINUX)
-    if(CLR_CMAKE_PLATFORM_UNIX_AMD64 OR CLR_CMAKE_PLATFORM_UNIX_ARM)
-      add_subdirectory(debug/createdump)
-    endif()
+    add_subdirectory(debug/createdump)
   endif(CLR_CMAKE_PLATFORM_LINUX)
 
-  add_subdirectory(ToolBox/SOS/Strike)
-
   # Include the dummy c++ include files
   include_directories("pal/inc/rt/cpp")
 
@@ -155,9 +65,6 @@ add_subdirectory(utilcode)
 add_subdirectory(gcinfo)
 add_subdirectory(coreclr)
 add_subdirectory(jit)
-if(FEATURE_STANDALONE_GC)
-  add_subdirectory(gc)
-endif(FEATURE_STANDALONE_GC)
 add_subdirectory(vm)
 add_subdirectory(md)
 add_subdirectory(debug)
@@ -172,10 +79,6 @@ add_subdirectory(unwinder)
 add_subdirectory(ildasm)
 add_subdirectory(ilasm)
 
-if(WIN32)
-  add_subdirectory(ipcman)
-endif(WIN32)
-
 if(CLR_CMAKE_PLATFORM_UNIX)
     add_subdirectory(palrt)
 endif(CLR_CMAKE_PLATFORM_UNIX)