Add TIZEN_FEATURE_LIBAV to CFLAGS and CXXFLAGS
[platform/upstream/opencv.git] / platforms / winpack_dldt / 2020.3.0 / 20200413-dldt-disable-unused-targets.patch
1 diff --git a/inference-engine/CMakeLists.txt b/inference-engine/CMakeLists.txt
2 index e7ea6547..7333d19c 100644
3 --- a/inference-engine/CMakeLists.txt
4 +++ b/inference-engine/CMakeLists.txt
5 @@ -72,11 +72,11 @@ if(ENABLE_TESTS)
6      add_subdirectory(tests)
7  endif()
8  
9 -add_subdirectory(tools)
10 +#add_subdirectory(tools)
11  
12  # gflags and format_reader targets are kept inside of samples directory and
13  # they must be built even if samples build is disabled (required for tests and tools).
14 -add_subdirectory(samples)
15 +#add_subdirectory(samples)
16  
17  file(GLOB_RECURSE SAMPLES_SOURCES samples/*.cpp samples/*.hpp samples/*.h)
18  add_cpplint_target(sample_cpplint
19 @@ -154,10 +154,10 @@ endif()
20  # Developer package
21  #
22  
23 -ie_developer_export_targets(format_reader)
24 +#ie_developer_export_targets(format_reader)
25  ie_developer_export_targets(${NGRAPH_LIBRARIES})
26  
27 -ie_developer_export()
28 +#ie_developer_export()
29  
30  configure_file(
31      "${IE_MAIN_SOURCE_DIR}/cmake/developer_package_config.cmake.in"
32 diff --git a/inference-engine/src/legacy_api/CMakeLists.txt b/inference-engine/src/legacy_api/CMakeLists.txt
33 index a03a5f23..63d4f687 100644
34 --- a/inference-engine/src/legacy_api/CMakeLists.txt
35 +++ b/inference-engine/src/legacy_api/CMakeLists.txt
36 @@ -22,7 +22,7 @@ source_group("include" FILES ${PUBLIC_HEADERS})
37  
38  # Create object library
39  
40 -add_library(${TARGET_NAME}_obj OBJECT
41 +add_library(${TARGET_NAME}_obj OBJECT EXCLUDE_FROM_ALL
42              ${LIBRARY_SRC}
43              ${NN_BUILDER_LIBRARY_SRC}
44              ${PUBLIC_HEADERS})
45 diff --git a/inference-engine/src/inference_engine/CMakeLists.txt b/inference-engine/src/inference_engine/CMakeLists.txt
46 index 2071c126..015d8ff8 100644
47 --- a/inference-engine/src/inference_engine/CMakeLists.txt
48 +++ b/inference-engine/src/inference_engine/CMakeLists.txt
49 @@ -98,7 +98,7 @@ add_clang_format_target(${TARGET_NAME}_plugin_api_clang_format FOR_SOURCES ${plu
50  
51  # Create common base object library
52  
53 -add_library(${TARGET_NAME}_common_obj OBJECT
54 +add_library(${TARGET_NAME}_common_obj OBJECT EXCLUDE_FROM_ALL
55              ${IE_BASE_SOURCE_FILES})
56  
57  target_compile_definitions(${TARGET_NAME}_common_obj PRIVATE IMPLEMENT_INFERENCE_ENGINE_API)
58 @@ -110,7 +110,7 @@ target_include_directories(${TARGET_NAME}_common_obj SYSTEM PRIVATE
59  
60  # Create object library
61  
62 -add_library(${TARGET_NAME}_obj OBJECT
63 +add_library(${TARGET_NAME}_obj OBJECT EXCLUDE_FROM_ALL
64              ${LIBRARY_SRC}
65              ${LIBRARY_HEADERS}
66              ${PUBLIC_HEADERS})
67 @@ -200,7 +200,7 @@ add_clang_format_target(${TARGET_NAME}_nn_builder_clang_format FOR_TARGETS ${TAR
68  
69  # Static library used for unit tests which are always built
70  
71 -add_library(${TARGET_NAME}_s STATIC
72 +add_library(${TARGET_NAME}_s STATIC EXCLUDE_FROM_ALL
73              $<TARGET_OBJECTS:${TARGET_NAME}_obj>
74              $<TARGET_OBJECTS:${TARGET_NAME}_common_obj>
75              $<TARGET_OBJECTS:${TARGET_NAME}_legacy_obj>
76 diff --git a/inference-engine/src/mkldnn_plugin/CMakeLists.txt b/inference-engine/src/mkldnn_plugin/CMakeLists.txt
77 index 52183e86..4fd6d7d4 100644
78 --- a/inference-engine/src/mkldnn_plugin/CMakeLists.txt
79 +++ b/inference-engine/src/mkldnn_plugin/CMakeLists.txt
80 @@ -163,9 +163,9 @@ add_library(mkldnn_plugin_layers_no_opt OBJECT ${CROSS_COMPILED_SOURCES})
81  set_ie_threading_interface_for(mkldnn_plugin_layers_no_opt)
82  target_compile_definitions(mkldnn_plugin_layers_no_opt PRIVATE "IMPLEMENT_INFERENCE_ENGINE_PLUGIN")
83  
84 -add_library(mkldnn_plugin_layers_no_opt_s OBJECT ${CROSS_COMPILED_SOURCES})
85 -set_ie_threading_interface_for(mkldnn_plugin_layers_no_opt_s)
86 -target_compile_definitions(mkldnn_plugin_layers_no_opt_s PRIVATE "USE_STATIC_IE;IMPLEMENT_INFERENCE_ENGINE_PLUGIN")
87 +#add_library(mkldnn_plugin_layers_no_opt_s OBJECT ${CROSS_COMPILED_SOURCES})
88 +#set_ie_threading_interface_for(mkldnn_plugin_layers_no_opt_s)
89 +#target_compile_definitions(mkldnn_plugin_layers_no_opt_s PRIVATE "USE_STATIC_IE;IMPLEMENT_INFERENCE_ENGINE_PLUGIN")
90  
91  set(object_libraries mkldnn_plugin_layers_no_opt)
92  set(mkldnn_plugin_object_libraries mkldnn_plugin_layers_no_opt_s)
93 @@ -190,7 +190,7 @@ if (ENABLE_SSE42)
94      endfunction()
95  
96      mkldnn_create_sse42_layers(mkldnn_plugin_layers_sse42)
97 -    mkldnn_create_sse42_layers(mkldnn_plugin_layers_sse42_s)
98 +    #mkldnn_create_sse42_layers(mkldnn_plugin_layers_sse42_s)
99  
100      list(APPEND object_libraries mkldnn_plugin_layers_sse42)
101      list(APPEND mkldnn_plugin_object_libraries mkldnn_plugin_layers_sse42_s)
102 @@ -216,7 +216,7 @@ if (ENABLE_AVX2)
103      endfunction()
104  
105      mkldnn_create_avx2_layers(mkldnn_plugin_layers_avx2)
106 -    mkldnn_create_avx2_layers(mkldnn_plugin_layers_avx2_s)
107 +    #mkldnn_create_avx2_layers(mkldnn_plugin_layers_avx2_s)
108  
109      list(APPEND object_libraries mkldnn_plugin_layers_avx2)
110      list(APPEND mkldnn_plugin_object_libraries mkldnn_plugin_layers_avx2_s)
111 @@ -242,7 +242,7 @@ if (ENABLE_AVX512F)
112      endfunction()
113  
114      mkldnn_create_avx512f_layers(mkldnn_plugin_layers_avx512)
115 -    mkldnn_create_avx512f_layers(mkldnn_plugin_layers_avx512_s)
116 +    #mkldnn_create_avx512f_layers(mkldnn_plugin_layers_avx512_s)
117  
118      list(APPEND object_libraries mkldnn_plugin_layers_avx512)
119      list(APPEND mkldnn_plugin_object_libraries mkldnn_plugin_layers_avx512_s)
120 @@ -264,7 +264,7 @@ target_link_libraries(${TARGET_NAME} PRIVATE inference_engine inference_engine_l
121  
122  #  add test object library
123  
124 -add_library(${TARGET_NAME}_obj OBJECT ${SOURCES} ${HEADERS})
125 +add_library(${TARGET_NAME}_obj OBJECT EXCLUDE_FROM_ALL ${SOURCES} ${HEADERS})
126  
127  target_include_directories(${TARGET_NAME}_obj PRIVATE $<TARGET_PROPERTY:inference_engine_preproc_s,INTERFACE_INCLUDE_DIRECTORIES>
128                                                        $<TARGET_PROPERTY:inference_engine_lp_transformations,INTERFACE_INCLUDE_DIRECTORIES>
129 diff --git a/inference-engine/src/preprocessing/CMakeLists.txt b/inference-engine/src/preprocessing/CMakeLists.txt
130 index c3ad1e58..b5913840 100644
131 --- a/inference-engine/src/preprocessing/CMakeLists.txt
132 +++ b/inference-engine/src/preprocessing/CMakeLists.txt
133 @@ -124,7 +124,7 @@ endif()
134  
135  # Create object library
136  
137 -add_library(${TARGET_NAME}_obj OBJECT
138 +add_library(${TARGET_NAME}_obj OBJECT EXCLUDE_FROM_ALL
139              ${LIBRARY_SRC}
140              ${LIBRARY_HEADERS})
141  
142 @@ -167,7 +167,7 @@ endif()
143  
144  # Static library used for unit tests which are always built
145  
146 -add_library(${TARGET_NAME}_s STATIC
147 +add_library(${TARGET_NAME}_s STATIC EXCLUDE_FROM_ALL
148              $<TARGET_OBJECTS:${TARGET_NAME}_obj>)
149  
150  set_ie_threading_interface_for(${TARGET_NAME}_s)
151 diff --git a/inference-engine/src/vpu/common/CMakeLists.txt b/inference-engine/src/vpu/common/CMakeLists.txt
152 index 65215299..03ba4a4c 100644
153 --- a/inference-engine/src/vpu/common/CMakeLists.txt
154 +++ b/inference-engine/src/vpu/common/CMakeLists.txt
155 @@ -53,7 +53,7 @@ add_common_target("vpu_common_lib" FALSE)
156  
157  # Unit tests support for graph transformer
158  if(WIN32)
159 -    add_common_target("vpu_common_lib_test_static" TRUE)
160 +    #add_common_target("vpu_common_lib_test_static" TRUE)
161  else()
162      add_library("vpu_common_lib_test_static" ALIAS "vpu_common_lib")
163  endif()
164 diff --git a/inference-engine/src/vpu/graph_transformer/CMakeLists.txt b/inference-engine/src/vpu/graph_transformer/CMakeLists.txt
165 index 982d3c7f..15fcf3e8 100644
166 --- a/inference-engine/src/vpu/graph_transformer/CMakeLists.txt
167 +++ b/inference-engine/src/vpu/graph_transformer/CMakeLists.txt
168 @@ -64,7 +64,7 @@ add_graph_transformer_target("vpu_graph_transformer" FALSE)
169  
170  # Unit tests support for graph transformer
171  if(WIN32)
172 -    add_graph_transformer_target("vpu_graph_transformer_test_static" TRUE)
173 +    #add_graph_transformer_target("vpu_graph_transformer_test_static" TRUE)
174  else()
175      add_library("vpu_graph_transformer_test_static" ALIAS "vpu_graph_transformer")
176  endif()
177 diff --git a/inference-engine/thirdparty/CMakeLists.txt b/inference-engine/thirdparty/CMakeLists.txt
178 index ebf32c71..ad8cb435 100644
179 --- a/inference-engine/thirdparty/CMakeLists.txt
180 +++ b/inference-engine/thirdparty/CMakeLists.txt
181 @@ -36,7 +36,7 @@ function(build_with_lto)
182      endif()
183  
184      add_subdirectory(pugixml)
185 -    add_subdirectory(stb_lib)
186 +    #add_subdirectory(stb_lib)
187      add_subdirectory(ade)
188      add_subdirectory(fluid/modules/gapi)
189  
190 diff --git a/inference-engine/thirdparty/pugixml/CMakeLists.txt b/inference-engine/thirdparty/pugixml/CMakeLists.txt
191 index 8bcb2801..f7e031c0 100644
192 --- a/inference-engine/thirdparty/pugixml/CMakeLists.txt
193 +++ b/inference-engine/thirdparty/pugixml/CMakeLists.txt
194 @@ -41,7 +41,7 @@ if(BUILD_SHARED_LIBS)
195  else()
196         add_library(pugixml STATIC ${SOURCES})
197         if (MSVC)
198 -               add_library(pugixml_mt STATIC ${SOURCES})
199 +               #add_library(pugixml_mt STATIC ${SOURCES})
200                 #if (WIN32)
201                 #       set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /MT")
202                 #       set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /MTd")