feature: add ohos build
Change-Id: Id8f4bdab7427d82c14a1bd15713146ba59c64102
This commit is contained in:
20
meson.build
20
meson.build
@@ -356,6 +356,7 @@ with_platform_x11 = _platforms.contains('x11')
|
||||
with_platform_wayland = _platforms.contains('wayland')
|
||||
with_platform_haiku = _platforms.contains('haiku')
|
||||
with_platform_windows = _platforms.contains('windows')
|
||||
with_platform_ohos = _platforms.contains('ohos')
|
||||
|
||||
with_glx = get_option('glx')
|
||||
if with_glx == 'auto'
|
||||
@@ -417,7 +418,7 @@ with_egl = get_option('egl') \
|
||||
|
||||
if with_egl
|
||||
_platforms += 'surfaceless'
|
||||
if with_gbm and not with_platform_android
|
||||
if with_gbm and not with_platform_android and not with_platform_ohos
|
||||
_platforms += 'drm'
|
||||
endif
|
||||
|
||||
@@ -882,7 +883,18 @@ if get_option('allow-kcmp') \
|
||||
pre_args += '-DALLOW_KCMP'
|
||||
endif
|
||||
|
||||
prog_python = import('python').find_installation('python3')
|
||||
if with_platform_ohos
|
||||
pre_args += '-DHAVE_OHOS_PLATFORM'
|
||||
dep_ohos = [
|
||||
dependency('libsurface'),
|
||||
dependency('libhilog'),
|
||||
]
|
||||
c_args += '-I../ohos'
|
||||
endif
|
||||
|
||||
#prog_python = import('python').find_installation('python3')
|
||||
prog_python = '/usr/bin/python3'
|
||||
|
||||
has_mako = run_command(
|
||||
prog_python, '-c',
|
||||
'''
|
||||
@@ -1636,6 +1648,10 @@ foreach d : _libdrm_checks
|
||||
endif
|
||||
endforeach
|
||||
|
||||
dep_hilog = dependency(
|
||||
'libhilog'
|
||||
)
|
||||
|
||||
with_gallium_drisw_kms = false
|
||||
if system_has_kms_drm
|
||||
dep_libdrm = dependency(
|
||||
|
Reference in New Issue
Block a user