Compile using official libjsoncpp0.6 debian pkg

pull/1/merge
Daniel Richman 2012-05-26 18:06:35 +01:00
rodzic c66111a278
commit 276e0702d2
8 zmienionych plików z 14 dodań i 10 usunięć

Wyświetl plik

@ -2,9 +2,13 @@
# -*- makefile -*-
# Copyright 2011 (C) Daniel Richman. License: GNU GPL 3; see LICENSE.
CFLAGS = -pthread -O2 -Wall -Werror -pedantic -Wno-variadic-macros -Isrc
upl_libs = -pthread -ljsoncpp -lcurl -lssl
ext_libs = -ljsoncpp
jsoncpp_cflags := $(shell pkg-config --cflags jsoncpp)
jsoncpp_libs := $(shell pkg-config --libs jsoncpp)
CFLAGS = -pthread -O2 -Wall -Werror -pedantic -Wno-long-long \
-Wno-variadic-macros -Isrc $(jsoncpp_cflags)
upl_libs = -pthread $(jsoncpp_libs) -lcurl -lssl
ext_libs = $(jsoncpp_libs)
test_py_files = tests/test_uploader.py tests/test_extractor.py
headers = src/CouchDB.h src/EZ.h src/Uploader.h src/UploaderThread.h \

Wyświetl plik

@ -3,7 +3,7 @@
#ifndef HABITAT_COUCHDB_H
#define HABITAT_COUCHDB_H
#include <jsoncpp/json.h>
#include <json/json.h>
#include <string>
#include <iostream>
#include <deque>

Wyświetl plik

@ -4,7 +4,7 @@
#define HABITAT_EXTRACTOR_H
#include <vector>
#include <jsoncpp/json.h>
#include <json/json.h>
#include "UploaderThread.h"
#include "EZ.h"

Wyświetl plik

@ -1,7 +1,7 @@
/* Copyright 2011 (C) Daniel Richman. License: GNU GPL 3; see COPYING. */
#include "UKHASExtractor.h"
#include <jsoncpp/json.h>
#include <json/json.h>
#include <stdexcept>
#include <string>
#include <sstream>

Wyświetl plik

@ -7,7 +7,7 @@
#include <string>
#include <vector>
#include <stdexcept>
#include <jsoncpp/json.h>
#include <json/json.h>
#include "EZ.h"
#include "CouchDB.h"

Wyświetl plik

@ -6,7 +6,7 @@
#include "EZ.h"
#include "Uploader.h"
#include <memory>
#include <jsoncpp/json.h>
#include <json/json.h>
using namespace std;

Wyświetl plik

@ -2,7 +2,7 @@
#include <iostream>
#include <stdexcept>
#include <jsoncpp/json.h>
#include <json/json.h>
#include <memory>
#include "Extractor.h"

Wyświetl plik

@ -38,7 +38,7 @@ public:
#include <iostream>
#include <string>
#include <algorithm>
#include <jsoncpp/json.h>
#include <json/json.h>
namespace habitat {