mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 11:55:39 +00:00
[364/906] make the cmake build work on MacOSX
We can now generate a Xcode project (or Unix Makfiles), see INSTALL file
This commit is contained in:
parent
89fe233c52
commit
579b74d845
2 changed files with 42 additions and 15 deletions
55
gst-libs/gst/gl/CMakeLists.txt
Normal file → Executable file
55
gst-libs/gst/gl/CMakeLists.txt
Normal file → Executable file
|
@ -35,19 +35,46 @@ target_link_libraries(gstgl
|
|||
|
||||
else (WIN32)
|
||||
|
||||
include_directories(AFTER
|
||||
../../..)
|
||||
if (APPLE)
|
||||
|
||||
include_directories(AFTER
|
||||
../../..)
|
||||
|
||||
add_library (gstgl STATIC
|
||||
gstglwindow_cocoa.m
|
||||
gstgldisplay.c
|
||||
gstglbuffer.c
|
||||
gstglfilter.c
|
||||
gstglshader.c)
|
||||
|
||||
target_link_libraries(gstgl
|
||||
general ${OPENGL_LIBRARIES}
|
||||
general ${GLEW_LIBRARY}
|
||||
general ${GLIB2_LIBRARIES}
|
||||
general ${GSTREAMER_LIBRARIES}
|
||||
"-L/opt/local/lib"
|
||||
"-lintl"
|
||||
"-framework OpenGL"
|
||||
"-framework Cocoa")
|
||||
|
||||
add_library (gstgl STATIC
|
||||
gstglwindow_x11.c
|
||||
gstgldisplay.c
|
||||
gstglbuffer.c
|
||||
gstglfilter.c
|
||||
gstglshader.c)
|
||||
|
||||
target_link_libraries(gstgl
|
||||
general ${OPENGL_LIBRARIES}
|
||||
general ${GLEW_LIBRARY}
|
||||
general ${GLIB2_LIBRARIES}
|
||||
general ${GSTREAMER_LIBRARIES})
|
||||
else (APPLE)
|
||||
|
||||
include_directories(AFTER
|
||||
../../..)
|
||||
|
||||
add_library (gstgl STATIC
|
||||
gstglwindow_x11.c
|
||||
gstgldisplay.c
|
||||
gstglbuffer.c
|
||||
gstglfilter.c
|
||||
gstglshader.c)
|
||||
|
||||
target_link_libraries(gstgl
|
||||
general ${OPENGL_LIBRARIES}
|
||||
general ${GLEW_LIBRARY}
|
||||
general ${GLIB2_LIBRARIES}
|
||||
general ${GSTREAMER_LIBRARIES})
|
||||
|
||||
endif (APPLE)
|
||||
|
||||
endif (WIN32)
|
||||
|
|
2
gst/gl/CMakeLists.txt
Normal file → Executable file
2
gst/gl/CMakeLists.txt
Normal file → Executable file
|
@ -22,7 +22,7 @@ if (WIN32)
|
|||
include_directories(AFTER ../../win32/common)
|
||||
endif (WIN32)
|
||||
|
||||
add_library (gstopengl SHARED
|
||||
add_library (gstopengl MODULE
|
||||
gstopengl.c
|
||||
gstglimagesink.c
|
||||
gstglupload.c
|
||||
|
|
Loading…
Reference in a new issue