Use system version of pugixml, not a checkouted one
This commit is contained in:
parent
be78d24236
commit
84b01a5de3
6
Makefile
6
Makefile
|
@ -7,8 +7,8 @@ endif
|
|||
|
||||
UPDFPARSERLIB = ./lib/updfparser/libupdfparser.a
|
||||
|
||||
CXXFLAGS += -Wall -fPIC -I./include -I./lib/pugixml/src/ -I./lib/updfparser/include
|
||||
LDFLAGS = $(UPDFPARSERLIB)
|
||||
CXXFLAGS += -Wall -fPIC -I./include -I./usr/include/pugixml -I./lib/updfparser/include
|
||||
LDFLAGS = $(UPDFPARSERLIB) -lpugixml
|
||||
|
||||
VERSION := $(shell cat include/libgourou.h |grep LIBGOUROU_VERSION|cut -d '"' -f2)
|
||||
|
||||
|
@ -48,7 +48,7 @@ TARGETDIR := bin
|
|||
SRCEXT := cpp
|
||||
OBJEXT := o
|
||||
|
||||
SOURCES = src/libgourou.cpp src/user.cpp src/device.cpp src/fulfillment_item.cpp src/loan_token.cpp src/bytearray.cpp src/pugixml.cpp
|
||||
SOURCES = src/libgourou.cpp src/user.cpp src/device.cpp src/fulfillment_item.cpp src/loan_token.cpp src/bytearray.cpp
|
||||
OBJECTS := $(patsubst $(SRCDIR)/%,$(BUILDDIR)/%,$(SOURCES:.$(SRCEXT)=.$(OBJEXT)))
|
||||
|
||||
all: version lib obj $(TARGETS)
|
||||
|
|
|
@ -48,6 +48,7 @@ For utils :
|
|||
* libcurl
|
||||
* OpenSSL
|
||||
* libzip
|
||||
* libpugixml
|
||||
|
||||
|
||||
Internal libraries are automatically fetched and statically compiled during the first run.
|
||||
|
|
|
@ -1,13 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Pugixml
|
||||
if [ ! -d lib/pugixml ] ; then
|
||||
git clone https://github.com/zeux/pugixml.git lib/pugixml
|
||||
pushd lib/pugixml
|
||||
git checkout latest
|
||||
popd
|
||||
fi
|
||||
|
||||
# uPDFParser
|
||||
if [ ! -d lib/updfparser ] ; then
|
||||
git clone git://soutade.fr/updfparser.git lib/updfparser
|
||||
|
|
|
@ -1,17 +1,12 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [ ! -d lib/pugixml -o ! -d lib/updfparser ] ; then
|
||||
if [ ! -d lib/updfparser ] ; then
|
||||
echo "Some libraries are missing"
|
||||
echo "You must run this script at the top of libgourou working direcotry."
|
||||
echo "./lib/setup.sh must be called first (make all)"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Pugixml
|
||||
pushd lib/pugixml
|
||||
git pull origin latest
|
||||
popd
|
||||
|
||||
# uPDFParser
|
||||
pushd lib/updfparser
|
||||
git pull origin master
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
../lib/pugixml/src/pugixml.cpp
|
|
@ -5,7 +5,7 @@ TARGETS=$(TARGET_BINARIES) launcher
|
|||
CXXFLAGS=-Wall -fPIC -I$(ROOT)/include -I$(ROOT)/lib/pugixml/src/
|
||||
|
||||
STATIC_DEP=
|
||||
LDFLAGS += -L$(ROOT) -lcrypto -lzip -lz -lcurl
|
||||
LDFLAGS += -L$(ROOT) -lcrypto -lzip -lz -lcurl -lpugixml
|
||||
|
||||
ifneq ($(STATIC_UTILS),)
|
||||
STATIC_DEP = $(ROOT)/libgourou.a
|
||||
|
|
Loading…
Reference in New Issue
Block a user