Skip to content

Commit

Permalink
Update to new nng source tree layout.
Browse files Browse the repository at this point in the history
nng moved headers from src/ to include/nng.
  • Loading branch information
codypiersall committed Dec 31, 2018
1 parent 52f715f commit 4a64fae
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 28 deletions.
26 changes: 13 additions & 13 deletions build_pynng.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,23 +26,23 @@
r""" // passed to the real C compiler,
// contains implementation of things declared in cdef()
#define NNG_DECL
#include <nng.h>
#include <protocol/bus0/bus.h>
#include <protocol/pair0/pair.h>
#include <protocol/pair1/pair.h>
#include <protocol/pipeline0/pull.h>
#include <protocol/pipeline0/push.h>
#include <protocol/pubsub0/pub.h>
#include <protocol/pubsub0/sub.h>
#include <protocol/reqrep0/req.h>
#include <protocol/reqrep0/rep.h>
#include <protocol/survey0/respond.h>
#include <protocol/survey0/survey.h>
#include <nng/nng.h>
#include <nng/protocol/bus0/bus.h>
#include <nng/protocol/pair0/pair.h>
#include <nng/protocol/pair1/pair.h>
#include <nng/protocol/pipeline0/pull.h>
#include <nng/protocol/pipeline0/push.h>
#include <nng/protocol/pubsub0/pub.h>
#include <nng/protocol/pubsub0/sub.h>
#include <nng/protocol/reqrep0/req.h>
#include <nng/protocol/reqrep0/rep.h>
#include <nng/protocol/survey0/respond.h>
#include <nng/protocol/survey0/survey.h>
""",
libraries=libraries,
# library_dirs=['nng/build/Debug',],
# (more arguments like setup.py's Extension class:
include_dirs=['nng/src'],
include_dirs=['nng/include'],
extra_objects=objects,
)

Expand Down
26 changes: 13 additions & 13 deletions generate_api.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@ function process_header() {
sed 's/^NNG_DECL *//g'
}

process_header nng/src/nng.h >> nng_api.h
process_header nng/src/protocol/bus0/bus.h >> nng_api.h
process_header nng/src/protocol/pair0/pair.h >> nng_api.h
process_header nng/src/protocol/pair1/pair.h >> nng_api.h
process_header nng/src/protocol/pipeline0/push.h >> nng_api.h
process_header nng/src/protocol/pipeline0/pull.h >> nng_api.h
process_header nng/src/protocol/pubsub0/pub.h >> nng_api.h
process_header nng/src/protocol/pubsub0/sub.h >> nng_api.h
process_header nng/src/protocol/reqrep0/req.h >> nng_api.h
process_header nng/src/protocol/reqrep0/rep.h >> nng_api.h
process_header nng/src/protocol/survey0/survey.h >> nng_api.h
process_header nng/src/protocol/survey0/respond.h >> nng_api.h
grep '#define NNG_.*_VERSION' nng/src/nng.h >> nng_api.h
process_header nng/include/nng/nng.h >> nng_api.h
process_header nng/include/nng/protocol/bus0/bus.h >> nng_api.h
process_header nng/include/nng/protocol/pair0/pair.h >> nng_api.h
process_header nng/include/nng/protocol/pair1/pair.h >> nng_api.h
process_header nng/include/nng/protocol/pipeline0/push.h >> nng_api.h
process_header nng/include/nng/protocol/pipeline0/pull.h >> nng_api.h
process_header nng/include/nng/protocol/pubsub0/pub.h >> nng_api.h
process_header nng/include/nng/protocol/pubsub0/sub.h >> nng_api.h
process_header nng/include/nng/protocol/reqrep0/req.h >> nng_api.h
process_header nng/include/nng/protocol/reqrep0/rep.h >> nng_api.h
process_header nng/include/nng/protocol/survey0/survey.h >> nng_api.h
process_header nng/include/nng/protocol/survey0/respond.h >> nng_api.h
grep '#define NNG_.*_VERSION' nng/include/nng/nng.h >> nng_api.h

2 changes: 1 addition & 1 deletion nng_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -362,5 +362,5 @@ int nng_surveyor0_open_raw(nng_socket *);
int nng_respondent0_open(nng_socket *);
int nng_respondent0_open_raw(nng_socket *);
#define NNG_MAJOR_VERSION 1
#define NNG_MINOR_VERSION 0
#define NNG_MINOR_VERSION 1
#define NNG_PATCH_VERSION 1
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
THIS_DIR = os.path.dirname(__file__)


NNG_REVISION = '6c334f3'
NNG_REVISION = 'd3bd35ab49ad74528fd9e34cce9016d74dd91943'


def build_nng_lib():
Expand Down

0 comments on commit 4a64fae

Please sign in to comment.