Libgourou

Libgourou Commit Details

Date:2023-01-08 21:12:38 (8 months 14 days ago)
Author:Grégory Soutadé
Branch:master
Commit:84b01a5de3a940d3d6dff2692234a229d6119625
Parents: be78d242369e713c75be3bf70a9f10f2b8bcee46
Message:Use system version of pugixml, not a checkouted one

Changes:
Dsrc/pugixml.cpp (full)
MMakefile (2 diffs)
MREADME.md (1 diff)
Mscripts/setup.sh (1 diff)
Mscripts/update_lib.sh (1 diff)
Mutils/Makefile (1 diff)

File differences

Makefile
77
88
99
10
11
10
11
1212
1313
1414
......
4848
4949
5050
51
51
5252
5353
5454
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)
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)
README.md
4848
4949
5050
51
5152
5253
5354
* libcurl
* OpenSSL
* libzip
* libpugixml
Internal libraries are automatically fetched and statically compiled during the first run.
scripts/setup.sh
11
22
3
4
5
6
7
8
9
10
113
124
135
#!/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
scripts/update_lib.sh
11
22
3
3
44
55
66
77
88
99
10
11
12
13
14
1510
1611
1712
#!/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
src/pugixml.cpp
1
../lib/pugixml/src/pugixml.cpp
utils/Makefile
55
66
77
8
8
99
1010
1111
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

Archive Download the corresponding diff file