1 compiler_flags = ['-DTVG_BUILD']
3 cc = meson.get_compiler('cpp')
4 if (cc.get_id() != 'msvc')
5 if get_option('vectors').contains('avx')
6 compiler_flags += ['-mavx']
7 message('Enable Advanced Vector Extension')
9 compiler_flags += ['-fno-exceptions', '-fno-rtti',
10 '-fno-unwind-tables' , '-fno-asynchronous-unwind-tables',
11 '-Woverloaded-virtual', '-Wno-unused-parameter']
19 thread_dep = meson.get_compiler('cpp').find_library('pthread')
20 dlog_dep = dependency('dlog', required: false)
21 thorvg_lib_dep = [common_dep, loader_dep, binding_dep, thread_dep, dlog_dep]
25 include_directories : headers,
26 version : meson.project_version(),
27 dependencies : thorvg_lib_dep,
29 cpp_args : compiler_flags,
30 gnu_symbol_visibility : 'hidden',
33 thorvg_dep = declare_dependency(
34 include_directories: headers,
35 link_with : thorvg_lib
38 if (cc.get_id() == 'emscripten')
42 executable('thorvg-wasm',
44 dependencies : [thorvg_dep, thorvg_wasm_dep],
48 pkg_mod = import('pkgconfig')
51 libraries : thorvg_lib,
52 version : meson.project_version(),
55 description : 'A Thor library for rendering vector graphics'
60 if get_option('examples') == true
61 message('Enable Examples')