@ -23,12 +23,10 @@
subdir ( 'gallium' )
subdir ( 'gallium' )
virglrenderer _sources = [
virgl_sources = [
'iov.c' ,
'iov.c' ,
'virgl_hw.h' ,
'virgl_hw.h' ,
'virgl_protocol.h' ,
'virgl_protocol.h' ,
'virglrenderer.c' ,
'virglrenderer.h' ,
'vrend_blitter.c' ,
'vrend_blitter.c' ,
'vrend_blitter.h' ,
'vrend_blitter.h' ,
'vrend_debug.c' ,
'vrend_debug.c' ,
@ -48,19 +46,25 @@ virglrenderer_sources = [
'vrend_util.h' ,
'vrend_util.h' ,
]
]
virglrenderer_egl_sources = [
virglrenderer_sources = [
'virglrenderer.c' ,
'virglrenderer.h' ,
]
virgl_egl_sources = [
'virgl_gbm.c' ,
'virgl_gbm.c' ,
'virgl_gbm.h' ,
'virgl_gbm.h' ,
'virgl_egl_context.c' ,
'virgl_egl_context.c' ,
'virgl_egl.h' ,
'virgl_egl.h' ,
]
]
virglrenderer _glx_sources = [
virgl_glx_sources = [
'virgl_glx_context.c' ,
'virgl_glx_context.c' ,
'virgl_glx.h' ,
'virgl_glx.h' ,
]
]
virglrenderer _depends = [
virgl_depends = [
gallium_dep ,
gallium_dep ,
epoxy_dep ,
epoxy_dep ,
libdrm_dep ,
libdrm_dep ,
@ -69,35 +73,48 @@ virglrenderer_depends = [
]
]
if have_egl
if have_egl
virglrenderer _sources + = virglrenderer _egl_sources
virgl_sources + = virgl_egl_sources
virglrenderer _depends + = [ gbm_dep ]
virgl_depends + = [ gbm_dep ]
endif
endif
if have_glx
if have_glx
virglrenderer _sources + = virglrenderer _glx_sources
virgl_sources + = virgl_glx_sources
virglrenderer _depends + = [ glx_dep ]
virgl_depends + = [ glx_dep ]
endif
endif
libvirgl = static_library (
'virgl' ,
virgl_sources ,
include_directories : [ inc_gallium , inc_configuration ] ,
dependencies : virgl_depends ,
)
libvirgl_inc = [
inc_gallium ,
inc_configuration ,
include_directories ( '.' )
]
libvirgl_dep = declare_dependency (
link_with : libvirgl ,
include_directories : libvirgl_inc
)
libvirglrenderer = shared_library (
libvirglrenderer = shared_library (
'virglrenderer' ,
'virglrenderer' ,
virglrenderer_sources ,
virglrenderer_sources ,
include_directories : [ inc_gallium , inc_configuration ] ,
include_directories : [ inc_gallium , inc_configuration ] ,
dependencies : virglrenderer_depends ,
dependencies : [ virgl_depends , libvirgl_dep ] ,
version : binary_age . to_string ( ) + '.'
version : binary_age . to_string ( ) + '.'
+ interface_age . to_string ( ) + '.'
+ interface_age . to_string ( ) + '.'
+ revision . to_string ( ) ,
+ revision . to_string ( ) ,
install : true
install : true
)
)
libvirglrenderer_inc = [
inc_gallium ,
inc_configuration ,
include_directories ( '.' )
]
libvirglrenderer_dep = declare_dependency (
libvirglrenderer_dep = declare_dependency (
link_with : libvirglrenderer ,
link_with : libvirglrenderer ,
include_directories : libvirglrenderer_inc
include_directories : libvirgl_inc ,
dependencies : [ libvirgl_dep , gallium_dep ]
)
)
install_headers ( 'virglrenderer.h' , subdir : 'virgl' )
install_headers ( 'virglrenderer.h' , subdir : 'virgl' )