From 68c651d05f142cb13dab3216954b5d2b3eca6d89 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Fri, 23 Oct 2015 01:36:23 +0100 Subject: Tidy up and alias glibmm and libxml++ refs --- Jamroot.jam | 40 ++++++++++++++++++++++++++++++++++++++++ slicer/db/Jamfile.jam | 7 +------ slicer/json/Jamfile.jam | 9 ++------- slicer/xml/Jamfile.jam | 8 ++------ 4 files changed, 45 insertions(+), 19 deletions(-) diff --git a/Jamroot.jam b/Jamroot.jam index 81d620f..a0b4d73 100644 --- a/Jamroot.jam +++ b/Jamroot.jam @@ -33,3 +33,43 @@ alias all : slicer ; +# Some useful aliases + +lib xml++-2.6 ; +lib xml2 ; +lib glibmm-2.4 ; +lib gobject-2.0 ; +lib glib-2.0 ; +lib sigc-2.0 ; + +alias libxmlpp : : : : + /usr/include/libxml++-2.6 + /usr/lib64/libxml++-2.6/include + /usr/include/libxml2 + /usr/include/glibmm-2.4 + /usr/lib64/glibmm-2.4/include + /usr/include/glib-2.0 + /usr/lib64/glib-2.0/include + /usr/include/sigc++-2.0 + /usr/lib64/sigc++-2.0/include + xml++-2.6 + xml2 + glibmm-2.4 + gobject-2.0 + glib-2.0 + sigc-2.0 + ; + +alias glibmm : : : : + /usr/include/glibmm-2.4 + /usr/lib64/glibmm-2.4/include + /usr/include/glib-2.0 + /usr/lib64/glib-2.0/include + /usr/include/sigc++-2.0 + /usr/lib64/sigc++-2.0/include + glibmm-2.4 + gobject-2.0 + glib-2.0 + sigc-2.0 + ; + diff --git a/slicer/db/Jamfile.jam b/slicer/db/Jamfile.jam index cbe7927..309c4ba 100644 --- a/slicer/db/Jamfile.jam +++ b/slicer/db/Jamfile.jam @@ -1,10 +1,5 @@ import testing ; -alias glibmm : : : : - "`pkg-config --cflags glibmm-2.4`" - "`pkg-config --libs glibmm-2.4`" - ; - lib dbppcore : : : : /usr/include/dbpp ; lib dbpp-postgresql : : : : /usr/include/dbpp-postgresql ; lib adhocutil : : : : /usr/include/adhocutil ; @@ -19,7 +14,7 @@ lib slicer-db : .. IceUtil dbppcore - glibmm + ../..//glibmm adhocutil ../slicer//slicer -fvisibility=hidden diff --git a/slicer/json/Jamfile.jam b/slicer/json/Jamfile.jam index d369eec..dd32479 100644 --- a/slicer/json/Jamfile.jam +++ b/slicer/json/Jamfile.jam @@ -1,10 +1,5 @@ -alias glibmm : : : : - "`pkg-config --cflags glibmm-2.4`" - "`pkg-config --libs glibmm-2.4`" - ; - lib jsonpp : : : : - "`pkg-config --cflags glibmm-2.4`" + ../..//glibmm ; lib boost_system ; @@ -20,7 +15,7 @@ lib slicer-json : boost_filesystem IceUtil jsonpp - glibmm + ../..//glibmm adhocutil ../slicer//slicer -fvisibility=hidden diff --git a/slicer/xml/Jamfile.jam b/slicer/xml/Jamfile.jam index 7b07545..7dffbcb 100644 --- a/slicer/xml/Jamfile.jam +++ b/slicer/xml/Jamfile.jam @@ -1,8 +1,4 @@ import testing ; - -alias libxmlpp : : : : - "`pkg-config --cflags libxml++-2.6`" - "`pkg-config --libs libxml++-2.6`" ; lib boost_system ; lib boost_filesystem ; lib boost_utf : : boost_unit_test_framework ; @@ -16,13 +12,13 @@ lib slicer-xml : boost_system boost_filesystem IceUtil - libxmlpp + ../..//libxmlpp adhocutil ../slicer//slicer -fvisibility=hidden release:-flto : : - libxmlpp + ../..//libxmlpp ; run testSpecifics.cpp -- cgit v1.2.3