rename src to PSync and change include style

refs #4779

Change-Id: I74a08a6e4ab4909be49341f60ed9735f76b3da59
This commit is contained in:
Ashlesh Gawande
2018-12-13 15:29:19 -06:00
parent 2e82df1168
commit 78b94adbc2
31 changed files with 54 additions and 57 deletions
+1 -1
View File
@@ -455,7 +455,7 @@ def check_boost(self, *k, **kw):
self.env['DEFINES_%s' % var] += ['BOOST_LOG_NO_THREADS']
if has_shlib('log'):
self.env['DEFINES_%s' % var] += ['BOOST_LOG_DYN_LINK']
self.check_cxx(fragment=BOOST_LOG_CODE, use=var, execute=False)
self.check_cxx(fragment=BOOST_LOG_CODE, use=var, execute=False)
if params.get('linkage_autodetect', False):
self.start_msg("Attempting to detect boost linkage flags")
+2 -2
View File
@@ -17,8 +17,8 @@
* PSync, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>.
**/
#include "consumer.hpp"
#include "detail/state.hpp"
#include "PSync/consumer.hpp"
#include "PSync/detail/state.hpp"
#include <ndn-cxx/util/logger.hpp>
#include <ndn-cxx/security/validator-null.hpp>
+3 -3
View File
@@ -20,9 +20,9 @@
#ifndef PSYNC_CONSUMER_HPP
#define PSYNC_CONSUMER_HPP
#include "detail/bloom-filter.hpp"
#include "detail/util.hpp"
#include "detail/test-access-control.hpp"
#include "PSync/detail/bloom-filter.hpp"
#include "PSync/detail/util.hpp"
#include "PSync/detail/test-access-control.hpp"
#include <ndn-cxx/face.hpp>
#include <ndn-cxx/util/scheduler.hpp>
@@ -43,8 +43,8 @@
* SOFTWARE.
*/
#include "bloom-filter.hpp"
#include "util.hpp"
#include "PSync/detail/bloom-filter.hpp"
#include "PSync/detail/util.hpp"
#include <ndn-cxx/util/logger.hpp>
@@ -43,8 +43,8 @@
* SOFTWARE.
*/
#include "iblt.hpp"
#include "util.hpp"
#include "PSync/detail/iblt.hpp"
#include "PSync/detail/util.hpp"
#include <sstream>
@@ -17,7 +17,7 @@
* PSync, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>.
**/
#include "state.hpp"
#include "PSync/detail/state.hpp"
namespace psync {
@@ -22,7 +22,7 @@
#ifndef PSYNC_TEST_ACCESS_CONTROL_HPP
#define PSYNC_TEST_ACCESS_CONTROL_HPP
#include "psync-config.hpp"
#include "PSync/detail/config.hpp"
#ifdef WITH_TESTS
#define VIRTUAL_WITH_TESTS virtual
@@ -21,7 +21,7 @@
* https://github.com/aappleby/smhasher/blob/master/src/murmurHash3.cpp
**/
#include "util.hpp"
#include "PSync/detail/util.hpp"
#include <ndn-cxx/util/backports.hpp>
@@ -17,7 +17,7 @@
* NLSR, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>.
**/
#include "full-producer.hpp"
#include "PSync/full-producer.hpp"
#include <ndn-cxx/util/logger.hpp>
#include <ndn-cxx/util/segment-fetcher.hpp>
@@ -20,8 +20,8 @@
#ifndef PSYNC_FULL_PRODUCER_HPP
#define PSYNC_FULL_PRODUCER_HPP
#include "producer-base.hpp"
#include "detail/state.hpp"
#include "PSync/producer-base.hpp"
#include "PSync/detail/state.hpp"
#include <map>
#include <unordered_set>
@@ -17,8 +17,8 @@
* PSync, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>.
**/
#include "partial-producer.hpp"
#include "detail/state.hpp"
#include "PSync/partial-producer.hpp"
#include "PSync/detail/state.hpp"
#include <ndn-cxx/util/logger.hpp>
@@ -20,8 +20,8 @@
#ifndef PSYNC_PARTIAL_PRODUCER_HPP
#define PSYNC_PARTIAL_PRODUCER_HPP
#include "detail/bloom-filter.hpp"
#include "producer-base.hpp"
#include "PSync/detail/bloom-filter.hpp"
#include "PSync/producer-base.hpp"
#include <map>
#include <unordered_set>
@@ -17,7 +17,7 @@
* PSync, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>.
**/
#include "producer-base.hpp"
#include "PSync/producer-base.hpp"
#include <ndn-cxx/util/logger.hpp>
#include <boost/algorithm/string.hpp>
@@ -20,11 +20,11 @@
#ifndef PSYNC_PRODUCER_BASE_HPP
#define PSYNC_PRODUCER_BASE_HPP
#include "detail/iblt.hpp"
#include "detail/bloom-filter.hpp"
#include "detail/util.hpp"
#include "detail/test-access-control.hpp"
#include "segment-publisher.hpp"
#include "PSync/detail/iblt.hpp"
#include "PSync/detail/bloom-filter.hpp"
#include "PSync/detail/util.hpp"
#include "PSync/detail/test-access-control.hpp"
#include "PSync/segment-publisher.hpp"
#include <ndn-cxx/face.hpp>
#include <ndn-cxx/util/scheduler.hpp>
@@ -17,7 +17,7 @@
* PSync, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>.
**/
#include "segment-publisher.hpp"
#include "PSync/segment-publisher.hpp"
#include <ndn-cxx/name-component.hpp>
@@ -20,7 +20,7 @@
#ifndef PSYNC_SEGMENT_PUBLISHER_HPP
#define PSYNC_SEGMENT_PUBLISHER_HPP
#include "detail/test-access-control.hpp"
#include "PSync/detail/test-access-control.hpp"
#include <ndn-cxx/face.hpp>
#include <ndn-cxx/name.hpp>
+1 -1
View File
@@ -17,7 +17,7 @@
* PSync, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>.
**/
#include "detail/bloom-filter.hpp"
#include "PSync/detail/bloom-filter.hpp"
#include <boost/test/unit_test.hpp>
#include <ndn-cxx/name.hpp>
+1 -1
View File
@@ -17,7 +17,7 @@
* PSync, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>.
**/
#include "consumer.hpp"
#include "PSync/consumer.hpp"
#include <boost/test/unit_test.hpp>
#include <ndn-cxx/name.hpp>
+1 -1
View File
@@ -17,7 +17,7 @@
* PSync, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>.
**/
#include "full-producer.hpp"
#include "PSync/full-producer.hpp"
#include <boost/test/unit_test.hpp>
#include <ndn-cxx/name.hpp>
+3 -3
View File
@@ -17,10 +17,10 @@
* PSync, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>.
**/
#include "full-producer.hpp"
#include "consumer.hpp"
#include "unit-test-time-fixture.hpp"
#include "detail/state.hpp"
#include "PSync/full-producer.hpp"
#include "PSync/consumer.hpp"
#include "PSync/detail/state.hpp"
#include <boost/test/unit_test.hpp>
#include <ndn-cxx/name.hpp>
+2 -2
View File
@@ -17,8 +17,8 @@
* PSync, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>.
**/
#include "detail/iblt.hpp"
#include "detail/util.hpp"
#include "PSync/detail/iblt.hpp"
#include "PSync/detail/util.hpp"
#include <boost/test/unit_test.hpp>
#include <ndn-cxx/name.hpp>
+1 -1
View File
@@ -17,7 +17,7 @@
* PSync, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>.
**/
#include "partial-producer.hpp"
#include "PSync/partial-producer.hpp"
#include <boost/test/unit_test.hpp>
#include <ndn-cxx/name.hpp>
+2 -2
View File
@@ -17,8 +17,8 @@
* PSync, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>.
**/
#include "partial-producer.hpp"
#include "consumer.hpp"
#include "PSync/partial-producer.hpp"
#include "PSync/consumer.hpp"
#include "unit-test-time-fixture.hpp"
#include <boost/test/unit_test.hpp>
+2 -2
View File
@@ -17,8 +17,8 @@
* PSync, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>.
**/
#include "producer-base.hpp"
#include "detail/util.hpp"
#include "PSync/producer-base.hpp"
#include "PSync/detail/util.hpp"
#include <boost/test/unit_test.hpp>
#include <ndn-cxx/name.hpp>
+2 -2
View File
@@ -17,8 +17,8 @@
* PSync, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>.
**/
#include "segment-publisher.hpp"
#include "detail/state.hpp"
#include "PSync/segment-publisher.hpp"
#include "PSync/detail/state.hpp"
#include "unit-test-time-fixture.hpp"
#include <boost/test/unit_test.hpp>
+1 -1
View File
@@ -17,7 +17,7 @@
* PSync, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>.
**/
#include "detail/state.hpp"
#include "PSync/detail/state.hpp"
#include <boost/test/unit_test.hpp>
#include <ndn-cxx/name.hpp>
+10 -13
View File
@@ -45,26 +45,23 @@ def configure(conf):
# system has a different version of the PSync library installed.
conf.env['STLIBPATH'] = ['.'] + conf.env['STLIBPATH']
conf.write_config_header('psync-config.hpp')
conf.write_config_header('PSync/detail/config.hpp')
def build(bld):
bld.shlib(
target='PSync',
source = bld.path.ant_glob(['src/**/*.cpp']),
source = bld.path.ant_glob('PSync/**/*.cpp'),
use = 'BOOST NDN_CXX',
includes = ['src', '.'],
export_includes=['src', '.'],
includes = '.',
export_includes='.',
)
bld.install_files(
dest = "%s/PSync" % bld.env['INCLUDEDIR'],
files = bld.path.ant_glob(['src/**/*.hpp', 'src/**/*.h']),
cwd = bld.path.find_dir("src"),
relative_trick = True,
)
headers = bld.path.ant_glob('PSync/**/*.hpp')
bld.install_files('%s/PSync' % bld.env['INCLUDEDIR'],
bld.path.find_resource('psync-config.hpp'))
bld.install_files(bld.env['INCLUDEDIR'], headers, relative_trick=True)
bld.install_files('${INCLUDEDIR}/PSync/detail',
bld.path.find_resource('PSync/detail/config.hpp'))
pc = bld(
features = "subst",
@@ -72,7 +69,7 @@ def build(bld):
target='PSync.pc',
install_path = '${LIBDIR}/pkgconfig',
PREFIX = bld.env['PREFIX'],
INCLUDEDIR = "%s/PSync" % bld.env['INCLUDEDIR'],
INCLUDEDIR = bld.env['INCLUDEDIR'],
VERSION = VERSION,
)