20200701-dldt-disable-unused-targets.patch 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. diff --git a/inference-engine/CMakeLists.txt b/inference-engine/CMakeLists.txt
  2. index 39ff413b..df4e89c7 100644
  3. --- a/inference-engine/CMakeLists.txt
  4. +++ b/inference-engine/CMakeLists.txt
  5. @@ -66,7 +66,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. @@ -85,7 +85,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. @@ -174,10 +174,10 @@ 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. -ie_developer_export()
  26. +#ie_developer_export()
  27. configure_file(
  28. "${IE_MAIN_SOURCE_DIR}/cmake/developer_package_config.cmake.in"
  29. diff --git a/inference-engine/src/inference_engine/CMakeLists.txt b/inference-engine/src/inference_engine/CMakeLists.txt
  30. index 4ae0d560..e37acbe0 100644
  31. --- a/inference-engine/src/inference_engine/CMakeLists.txt
  32. +++ b/inference-engine/src/inference_engine/CMakeLists.txt
  33. @@ -99,7 +99,7 @@ add_cpplint_target(${TARGET_NAME}_plugin_api_cpplint FOR_SOURCES ${plugin_api_sr
  34. # Create common base object library
  35. -add_library(${TARGET_NAME}_common_obj OBJECT
  36. +add_library(${TARGET_NAME}_common_obj OBJECT EXCLUDE_FROM_ALL
  37. ${IE_BASE_SOURCE_FILES})
  38. target_compile_definitions(${TARGET_NAME}_common_obj PRIVATE IMPLEMENT_INFERENCE_ENGINE_API)
  39. @@ -112,7 +112,7 @@ target_include_directories(${TARGET_NAME}_common_obj SYSTEM PRIVATE
  40. # Create object library
  41. -add_library(${TARGET_NAME}_obj OBJECT
  42. +add_library(${TARGET_NAME}_obj OBJECT EXCLUDE_FROM_ALL
  43. ${LIBRARY_SRC}
  44. ${LIBRARY_HEADERS}
  45. ${PUBLIC_HEADERS})
  46. @@ -177,7 +177,7 @@ ie_register_plugins(MAIN_TARGET ${TARGET_NAME}
  47. # Static library used for unit tests which are always built
  48. -add_library(${TARGET_NAME}_s STATIC
  49. +add_library(${TARGET_NAME}_s STATIC EXCLUDE_FROM_ALL
  50. $<TARGET_OBJECTS:${TARGET_NAME}_obj>
  51. $<TARGET_OBJECTS:${TARGET_NAME}_common_obj>
  52. $<TARGET_OBJECTS:${TARGET_NAME}_legacy_obj>
  53. diff --git a/inference-engine/src/legacy_api/CMakeLists.txt b/inference-engine/src/legacy_api/CMakeLists.txt
  54. index 85524310..ed27e058 100644
  55. --- a/inference-engine/src/legacy_api/CMakeLists.txt
  56. +++ b/inference-engine/src/legacy_api/CMakeLists.txt
  57. @@ -21,7 +21,7 @@ source_group("include" FILES ${PUBLIC_HEADERS})
  58. # Create object library
  59. -add_library(${TARGET_NAME}_obj OBJECT
  60. +add_library(${TARGET_NAME}_obj OBJECT EXCLUDE_FROM_ALL
  61. ${LIBRARY_SRC}
  62. ${PUBLIC_HEADERS})
  63. diff --git a/inference-engine/src/mkldnn_plugin/CMakeLists.txt b/inference-engine/src/mkldnn_plugin/CMakeLists.txt
  64. index 297783da..06da35c3 100644
  65. --- a/inference-engine/src/mkldnn_plugin/CMakeLists.txt
  66. +++ b/inference-engine/src/mkldnn_plugin/CMakeLists.txt
  67. @@ -192,7 +192,7 @@ cross_compiled_file(${TARGET_NAME}
  68. # add test object library
  69. -add_library(${TARGET_NAME}_obj OBJECT ${SOURCES} ${HEADERS})
  70. +add_library(${TARGET_NAME}_obj OBJECT EXCLUDE_FROM_ALL ${SOURCES} ${HEADERS})
  71. target_include_directories(${TARGET_NAME}_obj PRIVATE $<TARGET_PROPERTY:inference_engine_preproc_s,INTERFACE_INCLUDE_DIRECTORIES>
  72. $<TARGET_PROPERTY:inference_engine_lp_transformations,INTERFACE_INCLUDE_DIRECTORIES>
  73. diff --git a/inference-engine/src/preprocessing/CMakeLists.txt b/inference-engine/src/preprocessing/CMakeLists.txt
  74. index adc52f06..6b7d0ffe 100644
  75. --- a/inference-engine/src/preprocessing/CMakeLists.txt
  76. +++ b/inference-engine/src/preprocessing/CMakeLists.txt
  77. @@ -124,7 +124,7 @@ endif()
  78. # Create object library
  79. -add_library(${TARGET_NAME}_obj OBJECT
  80. +add_library(${TARGET_NAME}_obj OBJECT EXCLUDE_FROM_ALL
  81. ${LIBRARY_SRC}
  82. ${LIBRARY_HEADERS})
  83. @@ -183,7 +183,7 @@ add_cpplint_target(${TARGET_NAME}_cpplint FOR_TARGETS ${TARGET_NAME}
  84. # Static library used for unit tests which are always built
  85. -add_library(${TARGET_NAME}_s STATIC
  86. +add_library(${TARGET_NAME}_s STATIC EXCLUDE_FROM_ALL
  87. $<TARGET_OBJECTS:${TARGET_NAME}_obj>)
  88. set_ie_threading_interface_for(${TARGET_NAME}_s)
  89. diff --git a/inference-engine/src/vpu/common/CMakeLists.txt b/inference-engine/src/vpu/common/CMakeLists.txt
  90. index 43e9308f..2e40dd31 100644
  91. --- a/inference-engine/src/vpu/common/CMakeLists.txt
  92. +++ b/inference-engine/src/vpu/common/CMakeLists.txt
  93. @@ -55,7 +55,7 @@ add_common_target("vpu_common_lib" FALSE)
  94. # Unit tests support for graph transformer
  95. if(WIN32)
  96. - add_common_target("vpu_common_lib_test_static" TRUE)
  97. + #add_common_target("vpu_common_lib_test_static" TRUE)
  98. else()
  99. add_library("vpu_common_lib_test_static" ALIAS "vpu_common_lib")
  100. endif()
  101. diff --git a/inference-engine/src/vpu/graph_transformer/CMakeLists.txt b/inference-engine/src/vpu/graph_transformer/CMakeLists.txt
  102. index 982d3c7f..15fcf3e8 100644
  103. --- a/inference-engine/src/vpu/graph_transformer/CMakeLists.txt
  104. +++ b/inference-engine/src/vpu/graph_transformer/CMakeLists.txt
  105. @@ -64,7 +64,7 @@ add_graph_transformer_target("vpu_graph_transformer" FALSE)
  106. # Unit tests support for graph transformer
  107. if(WIN32)
  108. - add_graph_transformer_target("vpu_graph_transformer_test_static" TRUE)
  109. + #add_graph_transformer_target("vpu_graph_transformer_test_static" TRUE)
  110. else()
  111. add_library("vpu_graph_transformer_test_static" ALIAS "vpu_graph_transformer")
  112. endif()
  113. diff --git a/inference-engine/thirdparty/CMakeLists.txt b/inference-engine/thirdparty/CMakeLists.txt
  114. index f94453e0..c80e75c5 100644
  115. --- a/inference-engine/thirdparty/CMakeLists.txt
  116. +++ b/inference-engine/thirdparty/CMakeLists.txt
  117. @@ -43,13 +43,13 @@ function(build_with_lto)
  118. endfunction()
  119. ie_build_pugixml()
  120. - add_subdirectory(stb_lib)
  121. + #add_subdirectory(stb_lib)
  122. add_subdirectory(ade)
  123. add_subdirectory(fluid/modules/gapi)
  124. target_include_directories(pugixml INTERFACE "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/pugixml/src>")
  125. - set_target_properties(pugixml ade fluid stb_image
  126. + set_target_properties(pugixml ade fluid
  127. PROPERTIES FOLDER thirdparty)
  128. # developer package
  129. diff --git a/inference-engine/thirdparty/pugixml/CMakeLists.txt b/inference-engine/thirdparty/pugixml/CMakeLists.txt
  130. index 8bcb2801..380fb468 100644
  131. --- a/inference-engine/thirdparty/pugixml/CMakeLists.txt
  132. +++ b/inference-engine/thirdparty/pugixml/CMakeLists.txt
  133. @@ -41,7 +41,7 @@ if(BUILD_SHARED_LIBS)
  134. else()
  135. add_library(pugixml STATIC ${SOURCES})
  136. if (MSVC)
  137. - add_library(pugixml_mt STATIC ${SOURCES})
  138. + #add_library(pugixml_mt STATIC ${SOURCES})
  139. #if (WIN32)
  140. # set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /MT")
  141. # set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /MTd")