20201005-dldt-disable-unused-targets.patch 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. diff --git a/inference-engine/CMakeLists.txt b/inference-engine/CMakeLists.txt
  2. index 7f45ab02..a7bac7e9 100644
  3. --- a/inference-engine/CMakeLists.txt
  4. +++ b/inference-engine/CMakeLists.txt
  5. @@ -70,7 +70,7 @@ if(ENABLE_TESTS)
  6. add_subdirectory(tests)
  7. endif()
  8. -add_subdirectory(tools)
  9. +#add_subdirectory(tools)
  10. function(ie_build_samples)
  11. # samples should be build with the same flags as from OpenVINO package,
  12. @@ -89,7 +89,7 @@ endfunction()
  13. # gflags and format_reader targets are kept inside of samples directory and
  14. # they must be built even if samples build is disabled (required for tests and tools).
  15. -ie_build_samples()
  16. +#ie_build_samples()
  17. file(GLOB_RECURSE SAMPLES_SOURCES samples/*.cpp samples/*.hpp samples/*.h)
  18. add_cpplint_target(sample_cpplint
  19. @@ -180,7 +180,7 @@ endif()
  20. # Developer package
  21. #
  22. -ie_developer_export_targets(format_reader)
  23. +#ie_developer_export_targets(format_reader)
  24. ie_developer_export_targets(${NGRAPH_LIBRARIES})
  25. # for Template plugin
  26. @@ -188,7 +188,7 @@ if(NGRAPH_INTERPRETER_ENABLE)
  27. ie_developer_export_targets(ngraph_backend interpreter_backend)
  28. endif()
  29. -ie_developer_export()
  30. +#ie_developer_export()
  31. configure_file(
  32. "${IE_MAIN_SOURCE_DIR}/cmake/developer_package_config.cmake.in"
  33. diff --git a/inference-engine/src/inference_engine/CMakeLists.txt b/inference-engine/src/inference_engine/CMakeLists.txt
  34. index 9ab88898..8badb591 100644
  35. --- a/inference-engine/src/inference_engine/CMakeLists.txt
  36. +++ b/inference-engine/src/inference_engine/CMakeLists.txt
  37. @@ -118,7 +118,7 @@ add_cpplint_target(${TARGET_NAME}_plugin_api_cpplint FOR_SOURCES ${plugin_api_sr
  38. # Create common base object library
  39. -add_library(${TARGET_NAME}_common_obj OBJECT
  40. +add_library(${TARGET_NAME}_common_obj OBJECT EXCLUDE_FROM_ALL
  41. ${IE_BASE_SOURCE_FILES})
  42. target_compile_definitions(${TARGET_NAME}_common_obj PRIVATE IMPLEMENT_INFERENCE_ENGINE_API)
  43. @@ -132,7 +132,7 @@ target_include_directories(${TARGET_NAME}_common_obj SYSTEM PRIVATE
  44. # Create object library
  45. -add_library(${TARGET_NAME}_obj OBJECT
  46. +add_library(${TARGET_NAME}_obj OBJECT EXCLUDE_FROM_ALL
  47. ${LIBRARY_SRC}
  48. ${LIBRARY_HEADERS}
  49. ${PUBLIC_HEADERS})
  50. @@ -183,7 +183,7 @@ ie_register_plugins(MAIN_TARGET ${TARGET_NAME}
  51. # Static library used for unit tests which are always built
  52. -add_library(${TARGET_NAME}_s STATIC
  53. +add_library(${TARGET_NAME}_s STATIC EXCLUDE_FROM_ALL
  54. $<TARGET_OBJECTS:${TARGET_NAME}_obj>
  55. $<TARGET_OBJECTS:${TARGET_NAME}_common_obj>
  56. $<TARGET_OBJECTS:${TARGET_NAME}_legacy_obj>
  57. diff --git a/inference-engine/src/legacy_api/CMakeLists.txt b/inference-engine/src/legacy_api/CMakeLists.txt
  58. index ed87a073..b30e6671 100644
  59. --- a/inference-engine/src/legacy_api/CMakeLists.txt
  60. +++ b/inference-engine/src/legacy_api/CMakeLists.txt
  61. @@ -26,7 +26,7 @@ endif()
  62. # Create object library
  63. -add_library(${TARGET_NAME}_obj OBJECT
  64. +add_library(${TARGET_NAME}_obj OBJECT EXCLUDE_FROM_ALL
  65. ${LIBRARY_SRC}
  66. ${PUBLIC_HEADERS})
  67. diff --git a/inference-engine/src/mkldnn_plugin/CMakeLists.txt b/inference-engine/src/mkldnn_plugin/CMakeLists.txt
  68. index 166818cd..6c1e8e36 100644
  69. --- a/inference-engine/src/mkldnn_plugin/CMakeLists.txt
  70. +++ b/inference-engine/src/mkldnn_plugin/CMakeLists.txt
  71. @@ -193,7 +193,7 @@ cross_compiled_file(${TARGET_NAME}
  72. # add test object library
  73. -add_library(${TARGET_NAME}_obj OBJECT ${SOURCES} ${HEADERS})
  74. +add_library(${TARGET_NAME}_obj OBJECT EXCLUDE_FROM_ALL ${SOURCES} ${HEADERS})
  75. target_include_directories(${TARGET_NAME}_obj PRIVATE $<TARGET_PROPERTY:inference_engine_preproc_s,INTERFACE_INCLUDE_DIRECTORIES>
  76. $<TARGET_PROPERTY:inference_engine_lp_transformations,INTERFACE_INCLUDE_DIRECTORIES>
  77. diff --git a/inference-engine/src/preprocessing/CMakeLists.txt b/inference-engine/src/preprocessing/CMakeLists.txt
  78. index f4fed72a..9cedd6b5 100644
  79. --- a/inference-engine/src/preprocessing/CMakeLists.txt
  80. +++ b/inference-engine/src/preprocessing/CMakeLists.txt
  81. @@ -124,7 +124,7 @@ endif()
  82. # Create object library
  83. -add_library(${TARGET_NAME}_obj OBJECT
  84. +add_library(${TARGET_NAME}_obj OBJECT EXCLUDE_FROM_ALL
  85. ${LIBRARY_SRC}
  86. ${LIBRARY_HEADERS})
  87. @@ -175,7 +175,7 @@ add_cpplint_target(${TARGET_NAME}_cpplint FOR_TARGETS ${TARGET_NAME}
  88. # Static library used for unit tests which are always built
  89. -add_library(${TARGET_NAME}_s STATIC
  90. +add_library(${TARGET_NAME}_s STATIC EXCLUDE_FROM_ALL
  91. $<TARGET_OBJECTS:${TARGET_NAME}_obj>)
  92. set_ie_threading_interface_for(${TARGET_NAME}_s)
  93. diff --git a/inference-engine/src/vpu/common/CMakeLists.txt b/inference-engine/src/vpu/common/CMakeLists.txt
  94. index b291d5b4..74ab8287 100644
  95. --- a/inference-engine/src/vpu/common/CMakeLists.txt
  96. +++ b/inference-engine/src/vpu/common/CMakeLists.txt
  97. @@ -57,7 +57,7 @@ add_common_target("vpu_common_lib" FALSE)
  98. # Unit tests support for graph transformer
  99. if(WIN32)
  100. - add_common_target("vpu_common_lib_test_static" TRUE)
  101. + #add_common_target("vpu_common_lib_test_static" TRUE)
  102. else()
  103. add_library("vpu_common_lib_test_static" ALIAS "vpu_common_lib")
  104. endif()
  105. diff --git a/inference-engine/src/vpu/graph_transformer/CMakeLists.txt b/inference-engine/src/vpu/graph_transformer/CMakeLists.txt
  106. index a4543745..807b8e36 100644
  107. --- a/inference-engine/src/vpu/graph_transformer/CMakeLists.txt
  108. +++ b/inference-engine/src/vpu/graph_transformer/CMakeLists.txt
  109. @@ -65,7 +65,7 @@ add_graph_transformer_target("vpu_graph_transformer" FALSE)
  110. # Unit tests support for graph transformer
  111. if(WIN32)
  112. - add_graph_transformer_target("vpu_graph_transformer_test_static" TRUE)
  113. + #add_graph_transformer_target("vpu_graph_transformer_test_static" TRUE)
  114. else()
  115. add_library("vpu_graph_transformer_test_static" ALIAS "vpu_graph_transformer")
  116. endif()
  117. diff --git a/inference-engine/thirdparty/CMakeLists.txt b/inference-engine/thirdparty/CMakeLists.txt
  118. index a2550bfa..10ce316f 100644
  119. --- a/inference-engine/thirdparty/CMakeLists.txt
  120. +++ b/inference-engine/thirdparty/CMakeLists.txt
  121. @@ -56,13 +56,13 @@ function(build_with_lto)
  122. endfunction()
  123. ie_build_pugixml()
  124. - add_subdirectory(stb_lib)
  125. + #add_subdirectory(stb_lib)
  126. add_subdirectory(ade)
  127. add_subdirectory(fluid/modules/gapi)
  128. target_include_directories(pugixml INTERFACE "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/pugixml/src>")
  129. - set_target_properties(pugixml ade fluid stb_image
  130. + set_target_properties(pugixml ade fluid
  131. PROPERTIES FOLDER thirdparty)
  132. # developer package
  133. diff --git a/inference-engine/thirdparty/pugixml/CMakeLists.txt b/inference-engine/thirdparty/pugixml/CMakeLists.txt
  134. index 8bcb2801..380fb468 100644
  135. --- a/inference-engine/thirdparty/pugixml/CMakeLists.txt
  136. +++ b/inference-engine/thirdparty/pugixml/CMakeLists.txt
  137. @@ -41,7 +41,7 @@ if(BUILD_SHARED_LIBS)
  138. else()
  139. add_library(pugixml STATIC ${SOURCES})
  140. if (MSVC)
  141. - add_library(pugixml_mt STATIC ${SOURCES})
  142. + #add_library(pugixml_mt STATIC ${SOURCES})
  143. #if (WIN32)
  144. # set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /MT")
  145. # set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /MTd")