thorvg/src/renderer/gl_engine/meson.build
Hermet Park 52f23f6acd
Some checks are pending
Android / build_x86_64 (push) Waiting to run
Android / build_aarch64 (push) Waiting to run
iOS / build_x86_64 (push) Waiting to run
iOS / build_arm64 (push) Waiting to run
macOS / build (push) Waiting to run
macOS / compact_test (push) Waiting to run
macOS / unit_test (push) Waiting to run
Ubuntu / build (push) Waiting to run
Ubuntu / compact_test (push) Waiting to run
Ubuntu / unit_test (push) Waiting to run
Windows / build (push) Waiting to run
Windows / compact_test (push) Waiting to run
Windows / unit_test (push) Waiting to run
gl_engine: revised the effect logic
- consolidated the effect implementation from renderer
- applied the deferred initialization
2025-07-17 17:42:06 +09:00

43 lines
975 B
Meson

source_file = [
'tvgGl.h',
'tvgGlCommon.h',
'tvgGlEffect.h',
'tvgGlGpuBuffer.h',
'tvgGlProgram.h',
'tvgGlRenderer.h',
'tvgGlRenderPass.h',
'tvgGlRenderTarget.h',
'tvgGlRenderTask.h',
'tvgGlShader.h',
'tvgGlShaderSrc.h',
'tvgGl.cpp',
'tvgGlEffect.cpp',
'tvgGlGeometry.cpp',
'tvgGlGpuBuffer.cpp',
'tvgGlProgram.cpp',
'tvgGlRenderer.cpp',
'tvgGlRenderPass.cpp',
'tvgGlRenderTarget.cpp',
'tvgGlRenderTask.cpp',
'tvgGlShader.cpp',
'tvgGlShaderSrc.cpp',
'tvgGlTessellator.cpp',
'tvgGlTessellator.h',
]
#force to use gles
if cc.get_id() == 'emscripten'
gl_variant = 'OpenGL ES'
endif
if gl_variant == 'OpenGL ES'
gl_variant_profile = '-DTHORVG_GL_TARGET_GLES=1'
else
gl_variant_profile = '-DTHORVG_GL_TARGET_GL=1'
endif
engine_dep += [declare_dependency(
compile_args : gl_variant_profile,
include_directories : include_directories('.'),
sources : source_file,
)]