代码拉取完成,页面将自动刷新
同步操作将从 金勰/glmark2 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
project(
'glmark2',
['cpp', 'c'],
default_options : ['cpp_std=c++14'],
version : '2021.12',
meson_version: '>=0.47'
)
cpp = meson.get_compiler('cpp')
full_version = meson.project_version() + get_option('version-suffix')
add_global_arguments('-DGLMARK_VERSION="@0@"'.format(full_version), language : 'cpp')
data_path = get_option('data-path')
if data_path == ''
data_path = join_paths([get_option('prefix'), get_option('datadir'), 'glmark2'])
endif
add_global_arguments('-DGLMARK_DATA_PATH="@0@"'.format(data_path), language : 'cpp')
extras_path = get_option('extras-path')
if extras_path != ''
add_global_arguments('-DGLMARK_EXTRAS_PATH="@0@"'.format(extras_path), language : 'cpp')
endif
m_dep = cpp.find_library('m', required : false)
dl_dep = cpp.find_library('dl')
libjpeg_dep = dependency('libjpeg')
libpng_dep = dependency('libpng')
flavors = get_option('flavors')
if flavors.length() == 0
error('Need at least one flavor with -Dflavors=flavor1[,flavors2]...\n'+
'See meson_options.txt contents for available flavors')
endif
flavors_str = ', '.join(flavors)
need_x11 = flavors_str.contains('x11-')
need_drm = flavors_str.contains('drm-')
need_wayland = flavors_str.contains('wayland-')
need_ohos = flavors_str.contains('ohos-')
need_gl = flavors_str.contains('-gl')
need_glesv2 = flavors_str.contains('-glesv2')
need_egl = need_drm or need_wayland or need_glesv2
need_glx = flavors.contains('x11-gl')
if need_x11
x11_dep = dependency('x11')
endif
if need_drm
libdrm_dep = dependency('libdrm')
gbm_dep = dependency('gbm')
libudev_dep = dependency('libudev')
endif
if need_wayland
wayland_client_dep = dependency('wayland-client')
wayland_cursor_dep = dependency('wayland-cursor')
wayland_egl_dep = dependency('wayland-egl')
wayland_protocols_dep = dependency('wayland-protocols', version : '>= 1.12')
wayland_scanner_dep = dependency('wayland-scanner', native: true)
endif
if need_ohos
ohos_dep = dependency('libhilog')
endif
subdir('src')
subdir('data')
subdir('doc')
message('Building with flavors: ' + flavors_str)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。