Skip to content

Commit 23a6964

Browse files
committed
tools: make json-c optional
This shouldn't be a requirement to compile anything else. Stop requiring it for building anything, and assume the user just wants to compile the main project. Signed-off-by: Richard Acayan <[email protected]>
1 parent 18e2ca3 commit 23a6964

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

tools/meson.build

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
json_c = dependency('json-c')
1+
json_c = dependency('json-c', required : false)
22

3-
executable('sscregistrygen',
4-
'sscregistrygen.c',
5-
c_args : cflags,
6-
dependencies : [json_c])
3+
if json_c.found()
4+
executable('sscregistrygen',
5+
'sscregistrygen.c',
6+
c_args : cflags,
7+
dependencies : [json_c])
8+
endif

0 commit comments

Comments
 (0)