Add geometry handling.
This commit is contained in:
parent
9c116b1efd
commit
c1389218f2
37 changed files with 294 additions and 278 deletions
|
@ -4,33 +4,7 @@ set(platform_HEADERS "")
|
|||
set(platform_LIBS "")
|
||||
|
||||
if (UNIX)
|
||||
find_package(PkgConfig)
|
||||
PKG_CHECK_MODULES(PC_CAIRO cairo)
|
||||
FIND_PATH(CAIRO_INCLUDE_DIRS
|
||||
NAMES cairo.h
|
||||
HINTS ${PC_CAIRO_INCLUDEDIR}
|
||||
${PC_CAIRO_INCLUDE_DIRS}
|
||||
PATH_SUFFIXES cairo
|
||||
)
|
||||
|
||||
FIND_LIBRARY(CAIRO_LIBRARIES
|
||||
NAMES cairo
|
||||
HINTS ${PC_CAIRO_LIBDIR}
|
||||
${PC_CAIRO_LIBRARY_DIRS}
|
||||
)
|
||||
list(APPEND platform_LIB_INCLUDES
|
||||
cairo/CairoInterface.cpp
|
||||
cairo/CairoDrawingSurface.cpp
|
||||
cairo/CairoDrawingContext.cpp
|
||||
)
|
||||
list(APPEND platform_INCLUDE_DIRS
|
||||
${CAIRO_INCLUDE_DIRS}
|
||||
)
|
||||
list(APPEND platform_HEADERS
|
||||
cairo/CairoInterface.h
|
||||
)
|
||||
list(APPEND platform_LIBS
|
||||
${CAIRO_LIBRARIES}
|
||||
list(APPEND platform_LIBSs
|
||||
GL
|
||||
)
|
||||
else()
|
||||
|
@ -43,6 +17,7 @@ list(APPEND graphics_LIB_INCLUDES
|
|||
DrawingContext.cpp
|
||||
DrawingManager.cpp
|
||||
DrawingSurface.cpp
|
||||
Rasterizer.cpp
|
||||
opengl/OpenGlInterface.cpp
|
||||
${platform_LIB_INCLUDES}
|
||||
)
|
||||
|
@ -50,6 +25,7 @@ list(APPEND graphics_LIB_INCLUDES
|
|||
list(APPEND graphics_HEADERS
|
||||
opengl/OpenGlInterface.h
|
||||
${platform_HEADERS}
|
||||
Rasterizer.h
|
||||
INativeDrawingSurface.h
|
||||
INativeDrawingContext.h)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue