Skip to content

Commit

Permalink
wrap libtcc around cmodule feature check
Browse files Browse the repository at this point in the history
  • Loading branch information
hexploitable committed Sep 25, 2024
1 parent bda4013 commit 14f4e0b
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions bindings/gumjs/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -220,15 +220,19 @@ gumjs_generated_bindings = custom_target('gumjs-generated-bindings',
)
gumjs_sources += [gumjs_generated_bindings]

# if libtcc_dep.found()
if libtcc_dep.type_name() == 'internal'
libtcc_incdir = meson.project_source_root() / 'subprojects' / 'tinycc' / 'include'
if get_option('cmodule').allowed()
if libtcc_dep.found()
if libtcc_dep.type_name() == 'internal'
libtcc_incdir = meson.project_source_root() / 'subprojects' / 'tinycc' / 'include'
else
libtcc_incdir = libtcc_dep.get_variable('libdir') / 'tcc' / 'include'
endif
else
libtcc_incdir = libtcc_dep.get_variable('libdir') / 'tcc' / 'include'
libtcc_incdir = ''
endif
# else
# libtcc_incdir = ''
# endif
else
libtcc_incdir = ''
endif

backends = []
if quickjs_dep.found()
Expand Down

0 comments on commit 14f4e0b

Please sign in to comment.