2008-09-11 23:13:50 +00:00
|
|
|
#FIXME: generate config.h
|
2008-09-11 00:07:12 +00:00
|
|
|
add_definitions(-DHAVE_CONFIG_H)
|
|
|
|
|
|
|
|
include_directories(AFTER
|
2008-10-29 22:53:22 +00:00
|
|
|
.
|
2008-11-23 15:14:26 +00:00
|
|
|
${GLEW_INCLUDE_DIR}
|
2008-09-11 00:07:12 +00:00
|
|
|
${GSTREAMER_INCLUDE_DIR}
|
2009-02-08 00:50:10 +00:00
|
|
|
${GLIB2_INCLUDE_DIR})
|
|
|
|
|
|
|
|
if (NOT GST_USING_BINARY_REGISTRY)
|
|
|
|
include_directories(AFTER
|
2008-09-11 00:07:12 +00:00
|
|
|
${LIBXML2_INCLUDE_DIR}
|
|
|
|
${LIBICONV_INCLUDE_DIR})
|
2009-02-08 00:50:10 +00:00
|
|
|
endif (NOT GST_USING_BINARY_REGISTRY)
|
2008-11-23 15:14:26 +00:00
|
|
|
|
|
|
|
if (WIN32)
|
|
|
|
|
|
|
|
include_directories(AFTER
|
|
|
|
../../../win32/common)
|
|
|
|
|
2008-09-11 00:07:12 +00:00
|
|
|
add_library (gstgl STATIC
|
2008-10-29 22:53:22 +00:00
|
|
|
gstglwindow_win32.c
|
2008-09-11 00:07:12 +00:00
|
|
|
gstgldisplay.c
|
2008-10-29 22:53:22 +00:00
|
|
|
gstglbuffer.c
|
|
|
|
gstglfilter.c
|
2009-10-23 08:52:39 +00:00
|
|
|
gstglmixer.c
|
2011-11-17 16:36:44 +00:00
|
|
|
gstglshadervariables.c
|
2008-10-29 22:53:22 +00:00
|
|
|
gstglshader.c)
|
2008-09-11 23:13:50 +00:00
|
|
|
|
2008-09-11 00:07:12 +00:00
|
|
|
target_link_libraries(gstgl
|
2008-10-22 23:40:52 +00:00
|
|
|
general ${OPENGL_LIBRARIES}
|
|
|
|
general ${GLEW_LIBRARY}
|
|
|
|
general ${GLIB2_LIBRARIES}
|
|
|
|
general ${GSTREAMER_LIBRARIES}
|
|
|
|
gdi32
|
|
|
|
winmm)
|
2008-11-23 15:14:26 +00:00
|
|
|
|
2008-10-22 23:40:52 +00:00
|
|
|
else (WIN32)
|
2008-11-23 15:14:26 +00:00
|
|
|
|
2009-07-24 08:33:47 +00:00
|
|
|
if (APPLE)
|
2009-10-23 08:52:39 +00:00
|
|
|
|
2009-07-24 08:33:47 +00:00
|
|
|
include_directories(AFTER
|
|
|
|
../../..)
|
2009-10-23 08:52:39 +00:00
|
|
|
|
2009-07-24 08:33:47 +00:00
|
|
|
add_library (gstgl STATIC
|
|
|
|
gstglwindow_cocoa.m
|
|
|
|
gstgldisplay.c
|
|
|
|
gstglbuffer.c
|
|
|
|
gstglfilter.c
|
2009-10-23 08:52:39 +00:00
|
|
|
gstglmixer.c
|
2011-11-17 16:36:44 +00:00
|
|
|
gstglshadervariables.c
|
2009-07-24 08:33:47 +00:00
|
|
|
gstglshader.c)
|
2009-10-23 08:52:39 +00:00
|
|
|
|
2009-07-24 08:33:47 +00:00
|
|
|
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")
|
2008-11-23 15:14:26 +00:00
|
|
|
|
2009-07-24 08:33:47 +00:00
|
|
|
else (APPLE)
|
2009-10-23 08:52:39 +00:00
|
|
|
|
2009-07-24 08:33:47 +00:00
|
|
|
include_directories(AFTER
|
|
|
|
../../..)
|
2009-10-23 08:52:39 +00:00
|
|
|
|
2009-07-24 08:33:47 +00:00
|
|
|
add_library (gstgl STATIC
|
|
|
|
gstglwindow_x11.c
|
|
|
|
gstgldisplay.c
|
|
|
|
gstglbuffer.c
|
|
|
|
gstglfilter.c
|
2009-10-23 08:52:39 +00:00
|
|
|
gstglmixer.c
|
2011-11-17 16:36:44 +00:00
|
|
|
gstglshadervariables.c
|
2009-07-24 08:33:47 +00:00
|
|
|
gstglshader.c)
|
2009-10-23 08:52:39 +00:00
|
|
|
|
2009-07-24 08:33:47 +00:00
|
|
|
target_link_libraries(gstgl
|
|
|
|
general ${OPENGL_LIBRARIES}
|
|
|
|
general ${GLEW_LIBRARY}
|
|
|
|
general ${GLIB2_LIBRARIES}
|
|
|
|
general ${GSTREAMER_LIBRARIES})
|
2009-10-23 08:52:39 +00:00
|
|
|
|
2009-07-24 08:33:47 +00:00
|
|
|
endif (APPLE)
|
2009-10-23 08:52:39 +00:00
|
|
|
|
2008-10-22 23:40:52 +00:00
|
|
|
endif (WIN32)
|