aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2020-07-31 17:18:37 +0200
committerThomas White <taw@physics.org>2020-07-31 17:19:33 +0200
commitf011c58c95953586bcf71203bde70fc963af1297 (patch)
treeec87dfab4b0d3c4400043581533609b6e291a24f /libcrystfel
parente08b543d99ff6107c523b92b9cb08b5f337492a7 (diff)
Xgandalf/PinkIndexer/FDIP now have pkg-config
Diffstat (limited to 'libcrystfel')
-rw-r--r--libcrystfel/meson.build36
1 files changed, 11 insertions, 25 deletions
diff --git a/libcrystfel/meson.build b/libcrystfel/meson.build
index f5dc15e4..0736992d 100644
--- a/libcrystfel/meson.build
+++ b/libcrystfel/meson.build
@@ -17,34 +17,20 @@ if ncursesdep.found()
conf_data.set10('HAVE_CURSES', 1)
endif
-xgandalfdep = cc.find_library('xgandalf', required: false)
-if xgandalfdep.found() and cc.has_function('IndexerPlain_index',
- prefix: '#include <xgandalf/adaptions/crystfel/IndexerPlain.h>',
- dependencies: xgandalfdep)
+xgandalfdep = dependency('xgandalf', required: false)
+if xgandalfdep.found()
conf_data.set10('HAVE_XGANDALF', 1)
-else
- xgandalfdep = dependency('', required: false)
endif
-pinkindexerdep = dependency('', required: false)
-#pinkindexerdep = cc.find_library('pinkIndexer', required: false)
-#if pinkindexerdep.found() and cc.has_function('PinkIndexer_indexPattern',
-# prefix: '#include <pinkIndexer/adaptions/crystfel/PinkIndexer.h>',
-# dependencies: pinkindexerdep)
-# conf_data.set10('HAVE_PINKINDEXER', 1)
-#else
-# pinkindexerdep = dependency('', required: false)
-#endif
-
-fdipdep = dependency('', required: false)
-#fdipdep = cc.find_library('fastDiffractionImageProcessing', required: false)
-#if fdipdep.found() and cc.has_function('allocatePeakList',
-# prefix: '#include <fastDiffractionImageProcessing/peakList.h>',
-# dependencies: fdipdep)
-# conf_data.set10('HAVE_FDIP', 1)
-#else
-# fdipdep = dependency('', required: false)
-#endif
+pinkindexerdep = dependency('pinkIndexer', required: false)
+if pinkindexerdep.found()
+ conf_data.set10('HAVE_PINKINDEXER', 1)
+endif
+
+fdipdep = dependency('fastDiffractionImageProcessing', required: false)
+if fdipdep.found()
+ conf_data.set10('HAVE_FDIP', 1)
+endif
libcrystfel_versionc = vcs_tag(input: 'src/libcrystfel-version.c.in',
output: 'libcrystfel-version.c')