aboutsummaryrefslogtreecommitdiff
path: root/ports/simage/disable-examples.patch
diff options
context:
space:
mode:
authorMarkus Rickert <rickertm@users.noreply.github.com>2020-05-08 19:35:22 +0200
committerGitHub <noreply@github.com>2020-05-08 10:35:22 -0700
commit2fc37d513a59d50f471b895c0f5d2c1f53456a6a (patch)
tree0ebb4de3c8cdb8fcc2b95d43225b67e9aca12754 /ports/simage/disable-examples.patch
parent5db4f98d6e7d7b83285452020e8e147f8f0c8d7c (diff)
downloadvcpkg-2fc37d513a59d50f471b895c0f5d2c1f53456a6a.tar.gz
vcpkg-2fc37d513a59d50f471b895c0f5d2c1f53456a6a.zip
[Coin3D] Add new ports for simage, Coin, and SoQt (#9880)
* [simage] Add new port * [coin] Add new port * [soqt] Add new port
Diffstat (limited to 'ports/simage/disable-examples.patch')
-rw-r--r--ports/simage/disable-examples.patch44
1 files changed, 44 insertions, 0 deletions
diff --git a/ports/simage/disable-examples.patch b/ports/simage/disable-examples.patch
new file mode 100644
index 000000000..dc9236c97
--- /dev/null
+++ b/ports/simage/disable-examples.patch
@@ -0,0 +1,44 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 775037a..fbd81b2 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -482,23 +489,23 @@ endif()
+ # Build examples
+ # ############################################################################
+
+-set(SIMAGE_EXAMPLE_SOURCE
+- ${CMAKE_CURRENT_SOURCE_DIR}/examples/audio2raw.c
+- ${CMAKE_CURRENT_SOURCE_DIR}/examples/img2avi.c
++#set(SIMAGE_EXAMPLE_SOURCE
++# ${CMAKE_CURRENT_SOURCE_DIR}/examples/audio2raw.c
++# ${CMAKE_CURRENT_SOURCE_DIR}/examples/img2avi.c
+ # ${CMAKE_CURRENT_SOURCE_DIR}/examples/mpeg2enc.cpp # requires Coin to build
+- ${CMAKE_CURRENT_SOURCE_DIR}/examples/simage-convert.c
+- ${CMAKE_CURRENT_SOURCE_DIR}/examples/simage-read-line-test.c
+-)
+-
+-foreach(_source ${SIMAGE_EXAMPLE_SOURCE})
+- get_filename_component(_example ${_source} NAME_WE)
+- add_executable(${_example} ${_source})
+- target_compile_definitions(${_example} PRIVATE _CRT_NONSTDC_NO_DEPRECATE _CRT_SECURE_NO_DEPRECATE _CRT_SECURE_NO_WARNINGS _USE_MATH_DEFINES)
+- target_link_libraries(${_example} simage)
+- if(UNIX)
+- target_link_libraries(${_example} m)
+- endif()
+-endforeach()
++# ${CMAKE_CURRENT_SOURCE_DIR}/examples/simage-convert.c
++# ${CMAKE_CURRENT_SOURCE_DIR}/examples/simage-read-line-test.c
++#)
++
++#foreach(_source ${SIMAGE_EXAMPLE_SOURCE})
++# get_filename_component(_example ${_source} NAME_WE)
++# add_executable(${_example} ${_source})
++# target_compile_definitions(${_example} PRIVATE _CRT_NONSTDC_NO_DEPRECATE _CRT_SECURE_NO_DEPRECATE _CRT_SECURE_NO_WARNINGS _USE_MATH_DEFINES)
++# target_link_libraries(${_example} simage)
++# if(UNIX)
++# target_link_libraries(${_example} m)
++# endif()
++#endforeach()
+
+ # ############################################################################
+ # Build tests