Skip to content

Commit

Permalink
Fix compile errors
Browse files Browse the repository at this point in the history
  • Loading branch information
sammycage committed Aug 4, 2024
1 parent e925f4e commit fe525e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/meson.build
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
executable('svg2png', 'svg2png.c', dependencies: plutosvg_dep)
if cc.has_argument('-DPLUTOSVG_HAS_FREETYPE')
if freetype_dep.found()
executable('emoji2png', 'emoji2png.c', dependencies: [plutosvg_dep, freetype_dep])
endif
2 changes: 2 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ if freetype_dep.found() and cc.has_type('SVG_RendererHooks', dependencies: freet
plutosvg_deps += [freetype_dep]
plutosvg_compile_args += ['-DPLUTOSVG_HAS_FREETYPE']
add_project_arguments('-DPLUTOSVG_HAS_FREETYPE', language: ['c', 'cpp'])
else
freetype_dep = disabler()
endif

if get_option('default_library') == 'static'
Expand Down

0 comments on commit fe525e0

Please sign in to comment.