Skip to content

Commit

Permalink
Updated directory hierarchy to contain DSRC include files in 'include…
Browse files Browse the repository at this point in the history
…/dsrc/' instead of raw 'include/'
  • Loading branch information
lucas committed Mar 14, 2014
1 parent 9c4ed9a commit 5bd516b
Show file tree
Hide file tree
Showing 65 changed files with 101 additions and 103 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ CXXFLAGS += -DNDEBUG -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE
CXXFLAGS += -Wall #-pedantic

# comment the line below to compile and link in shared mode
# CXXFLAGS += -static
CXXFLAGS += -static

# compile using boost::thread
# by default compile using boost::thread
# boost::thread from 1.50+ explicitely requires boost::system library
CXXFLAGS += -DUSE_BOOST_THREAD
DEP_LIBS += -lboost_thread -lboost_system
Expand Down
6 changes: 1 addition & 5 deletions Makefile.c++11
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ CXXFLAGS += -DNDEBUG -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE
CXXFLAGS += -Wall #-pedantic

# there are problems when statically linking with pthreads and libstdc++
# so only shared linking is possible
# so use only shared linking
#CXXFLAGS += -static

# compile using c++11
Expand All @@ -25,10 +25,6 @@ bin:
lib:
cd src; ${MAKE} lib

pylib:
# make sure to configure properly Jamroot file and have boost libraries installed
cd py; bjam

examples:
cd examples/cpplib; ${MAKE}

Expand Down
2 changes: 1 addition & 1 deletion examples/cpplib/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
all: example1 example2

INC_PATH = ../../include/
INC_PATH = ../../include/dsrc
LIB_PATH = ../../lib/
DSRC_LIB = -ldsrc

Expand Down
2 changes: 1 addition & 1 deletion examples/cpplib/example1.pro
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ CONFIG -= qt
SOURCES += \
example1.cpp

INCLUDEPATH += ../../include/
INCLUDEPATH += ../../include/dsrc

# Specify path to DSRC library file
LIBS += /home/lucas/dev/workspace/dsrc20-dev/lib/libdsrc.a
Expand Down
2 changes: 1 addition & 1 deletion examples/cpplib/example2.pro
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ CONFIG -= qt
SOURCES += \
example2.cpp

INCLUDEPATH += ../../include/
INCLUDEPATH += ../../include/dsrc

# Specify path to DSRC library file
LIBS += /home/lucas/dev/workspace/dsrc20-dev/lib/libdsrc.a
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion include/Dsrc.h → include/dsrc/Dsrc.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#ifndef H_DSRC
#define H_DSRC

#include "../include/Globals.h"
#include "Globals.h"
#include "DsrcModule.h"
#include "FastqFile.h"
#include "DsrcArchive.h"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 5 additions & 5 deletions py/Interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@

#include <Python.h>

#include "../include/Globals.h"
#include "../include/FastqRecord.h"
#include "../include/FastqFile.h"
#include "../include/DsrcModule.h"
#include "../include/DsrcArchive.h"
#include "../include/dsrc/Globals.h"
#include "../include/dsrc/FastqRecord.h"
#include "../include/dsrc/FastqFile.h"
#include "../include/dsrc/DsrcModule.h"
#include "../include/dsrc/DsrcArchive.h"

namespace dsrc
{
Expand Down
12 changes: 7 additions & 5 deletions py/Jamroot
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,19 @@
#

import python ;


# User-specified path to the Boost project
#
# Important!
#
# To compile DSRC Python module please specify your boost installation directory below
#
use-project boost
: /home/andrzej/dev/lib/boost_1_49_0/ ;
: /absolute/path/to/user/boost/directory/ ;


# Project-wide requirements
project
: requirements <library>/boost/python//boost_python <library>/boost/thread//boost_thread ;

: requirements <library>/boost/python//boost_python <library>/boost/thread//boost_thread <library>/boost/thread//boost_system ;

# Extension modules
python-extension pydsrc
Expand Down
2 changes: 1 addition & 1 deletion src/BitMemory.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#ifndef H_BITMEMORY
#define H_BITMEMORY

#include "../include/Globals.h"
#include "../include/dsrc/Globals.h"

#include <vector>
#include <algorithm>
Expand Down
2 changes: 1 addition & 1 deletion src/BlockCompressor.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#ifndef H_BLOCKCOMPRESSOR
#define H_BLOCKCOMPRESSOR

#include "../include/Globals.h"
#include "../include/dsrc/Globals.h"

#include <vector>

Expand Down
4 changes: 2 additions & 2 deletions src/BlockCompressorExt.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
#ifndef BLOCKCOMPRESSOREXT_H
#define BLOCKCOMPRESSOREXT_H

#include "../include/Globals.h"
#include "../include/FastqRecord.h"
#include "../include/dsrc/Globals.h"
#include "../include/dsrc/FastqRecord.h"

#include "BlockCompressor.h"

Expand Down
2 changes: 1 addition & 1 deletion src/Buffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#ifndef BUFFER_H
#define BUFFER_H

#include "../include/Globals.h"
#include "../include/dsrc/Globals.h"

#include <algorithm>

Expand Down
2 changes: 1 addition & 1 deletion src/Common.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#ifndef H_COMMON
#define H_COMMON

#include "../include/Globals.h"
#include "../include/dsrc/Globals.h"

#ifndef NDEBUG
# define DEBUG 1
Expand Down
2 changes: 1 addition & 1 deletion src/Configurable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#ifndef CPP_CONFIGURABLE
#define CPP_CONFIGURABLE

#include "../include/Configurable.h"
#include "../include/dsrc/Configurable.h"

#include "Common.h"

Expand Down
2 changes: 1 addition & 1 deletion src/Crc32.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#ifndef CRC32_H
#define CRC32_H

#include "../include/Globals.h"
#include "../include/dsrc/Globals.h"

#include <vector>
#include <string>
Expand Down
2 changes: 1 addition & 1 deletion src/DataPool.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#ifndef H_DATA_POOL
#define H_DATA_POOL

#include "../include/Globals.h"
#include "../include/dsrc/Globals.h"

#include <vector>

Expand Down
2 changes: 1 addition & 1 deletion src/DataQueue.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#ifndef H_DATAQUEUE
#define H_DATAQUEUE

#include "../include/Globals.h"
#include "../include/dsrc/Globals.h"

#include <queue>

Expand Down
2 changes: 1 addition & 1 deletion src/DataStream.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#ifndef H_DATASTREAM
#define H_DATASTREAM

#include "../include/Globals.h"
#include "../include/dsrc/Globals.h"

namespace dsrc
{
Expand Down
2 changes: 1 addition & 1 deletion src/DnaModeler.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#ifndef H_DNAMODELER
#define H_DNAMODELER

#include "../include/Globals.h"
#include "../include/dsrc/Globals.h"

#include "Common.h"

Expand Down
2 changes: 1 addition & 1 deletion src/DnaModelerBasicB2.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#ifndef H_DNAMODELERBASICB2
#define H_DNAMODELERBASICB2

#include "../include/Globals.h"
#include "../include/dsrc/Globals.h"

#include "DnaModeler.h"
#include "Stats.h"
Expand Down
2 changes: 1 addition & 1 deletion src/DnaModelerHuffman.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef DNAMODELHUFFMAN_H
#define DNAMODELHUFFMAN_H

#include "../include/Globals.h"
#include "../include/dsrc/Globals.h"

#include "DnaModeler.h"
#include "Stats.h"
Expand Down
2 changes: 1 addition & 1 deletion src/DnaModelerProxy.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#ifndef H_DNAMODELERPROXY
#define H_DNAMODELERPROXY

#include "../include/Globals.h"
#include "../include/dsrc/Globals.h"

#include "Stats.h"
#include "DnaModelerBasicB2.h"
Expand Down
2 changes: 1 addition & 1 deletion src/DnaModelerRCO.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#ifndef H_DNAMODELRCO
#define H_DNAMODELRCO

#include "../include/Globals.h"
#include "../include/dsrc/Globals.h"

#include "DnaModeler.h"
#include "Fastq.h"
Expand Down
2 changes: 1 addition & 1 deletion src/DsrcArchive.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Version: 2.00
*/

#include "../include/DsrcArchive.h"
#include "../include/dsrc/DsrcArchive.h"

#include "BlockCompressorExt.h"
#include "DsrcFile.h"
Expand Down
2 changes: 1 addition & 1 deletion src/DsrcFile.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#ifndef H_DSRCFILE
#define H_DSRCFILE

#include "../include/Globals.h"
#include "../include/dsrc/Globals.h"

#include <vector>

Expand Down
2 changes: 1 addition & 1 deletion src/DsrcIo.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#ifndef H_DSRCWRITER
#define H_DSRCWRITER

#include "../include/Globals.h"
#include "../include/dsrc/Globals.h"

#include "Buffer.h"
#include "DataQueue.h"
Expand Down
4 changes: 2 additions & 2 deletions src/DsrcModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Version: 2.00
*/

#include "../include/Globals.h"
#include "../include/dsrc/Globals.h"

#include <iostream>

Expand All @@ -19,7 +19,7 @@ namespace th = boost;
namespace th = std;
#endif

#include "../include/DsrcModule.h"
#include "../include/dsrc/DsrcModule.h"

#include "DsrcOperator.h"

Expand Down
2 changes: 1 addition & 1 deletion src/DsrcOperator.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#ifndef H_DSRCOPERATOR
#define H_DSRCOPERATOR

#include "../include/Globals.h"
#include "../include/dsrc/Globals.h"

#include <string>

Expand Down
2 changes: 1 addition & 1 deletion src/DsrcWorker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Version: 2.00
*/

#include "../include/Globals.h"
#include "../include/dsrc/Globals.h"

#include "DsrcWorker.h"
#include "DsrcIo.h"
Expand Down
2 changes: 1 addition & 1 deletion src/DsrcWorker.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#ifndef H_DSRCWORKER
#define H_DSRCWORKER

#include "../include/Globals.h"
#include "../include/dsrc/Globals.h"

#include "Fastq.h"
#include "BitMemory.h"
Expand Down
2 changes: 1 addition & 1 deletion src/ErrorHandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#ifndef H_ERRORHANDLER
#define H_ERRORHANDLER

#include "../include/Globals.h"
#include "../include/dsrc/Globals.h"

#ifdef USE_BOOST_THREAD
#include <boost/thread.hpp>
Expand Down
2 changes: 1 addition & 1 deletion src/Fastq.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#ifndef H_FASTQ_SRC
#define H_FASTQ_SRC

#include "../include/Globals.h"
#include "../include/dsrc/Globals.h"
#include "Common.h"

#include <vector>
Expand Down
2 changes: 1 addition & 1 deletion src/FastqFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Version: 2.00
*/

#include "../include/FastqFile.h"
#include "../include/dsrc/FastqFile.h"

#include "Common.h"
#include "Buffer.h"
Expand Down
2 changes: 1 addition & 1 deletion src/FastqIo.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#ifndef H_FASTQREADER
#define H_FASTQREADER

#include "../include/Globals.h"
#include "../include/dsrc/Globals.h"

#include "Common.h"
#include "Fastq.h"
Expand Down
2 changes: 1 addition & 1 deletion src/FastqParser.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#ifndef H_FASTQPARSER
#define H_FASTQPARSER

#include "../include/Globals.h"
#include "../include/dsrc/Globals.h"

#include "Common.h"
#include "Fastq.h"
Expand Down
2 changes: 1 addition & 1 deletion src/FastqStream.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#ifndef H_FASTQSTREAM
#define H_FASTQSTREAM

#include "../include/Globals.h"
#include "../include/dsrc/Globals.h"

//#include "Common.h"
#include "Fastq.h"
Expand Down
2 changes: 1 addition & 1 deletion src/FileStream.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#ifndef H_FILESTREAM
#define H_FILESTREAM

#include "../include/Globals.h"
#include "../include/dsrc/Globals.h"

#include "DataStream.h"

Expand Down
2 changes: 1 addition & 1 deletion src/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
all: bin lib

INC_DIR = ../include
INC_DIR = ../include/dsrc
SRC_DIR = .
LIB_DIR = ../lib
BIN_DIR = ../bin
Expand Down
2 changes: 1 addition & 1 deletion src/QualityEncoder.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#ifndef H_QUALITYENCODER
#define H_QUALITYENCODER

#include "../include/Globals.h"
#include "../include/dsrc/Globals.h"

#include "RangeCoder.h"
#include "SymbolCoderRC.h"
Expand Down
Loading

0 comments on commit 5bd516b

Please sign in to comment.