-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
.metadata | ||
RemoteSystemsTempFiles | ||
# Compiled Object files | ||
*.slo | ||
*.lo | ||
*.o | ||
*.obj | ||
*.os | ||
|
||
# Compiled Dynamic libraries | ||
*.so | ||
*.dylib | ||
*.dll | ||
|
||
# Compiled Static libraries | ||
*.lai | ||
*.la | ||
*.a | ||
*.lib | ||
|
||
# Executables | ||
*.exe | ||
*.out | ||
*.app | ||
|
||
# scons and project specific files | ||
*.dblite | ||
*~ | ||
oadrcmds | ||
*.swp | ||
*.settings | ||
|
||
oadrlib-path.sh | ||
.pydevproject | ||
|
||
.project | ||
.cproject | ||
|
||
*.pyc | ||
|
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import glob | ||
import os | ||
import shutil | ||
import sconsHelper | ||
|
||
# save running directory | ||
PWD = os.getcwd() | ||
|
||
# get and parse arguments | ||
buildmode = ARGUMENTS.get('mode', 'debug') #holds current mode | ||
|
||
if not (buildmode in ['debug', 'release']): | ||
print ("Error: Invalid build mode: {0}. Please specify debug or release - aborting build.".format(buildmode)) | ||
|
||
print("BUILDING IN {0} mode.".format(buildmode)) | ||
|
||
if buildmode == 'debug': | ||
cflags = ['-pthread', '-Wall', '-O0', '-g3', '-c', '-Wl,--verbose', '-fmessage-length=0', '-D_CURL_DEBUG'] | ||
|
||
else: | ||
cflags = ['-pthread', '-O2', '-DNDEBUG', '-c', '-Wl,--verbose', '-fmessage-length=0'] | ||
|
||
# Make the environment variables available to child sconscripts. | ||
Export('cflags buildmode') | ||
|
||
# build oadrsd shared object (serialize/deserialize library) | ||
SConscript('oadrsd/SConscript') | ||
|
||
# build oadr shared object (VEN implementation) | ||
SConscript('oadr/SConscript') | ||
|
||
# unit tests | ||
SConscript('oadrtest/SConscript') | ||
|
||
# sample VEN | ||
SConscript('sample/SConscript') |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
v0.0.5.3 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/Debug | ||
/Release | ||
/mac-Debug |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import glob | ||
import os | ||
import sconsHelper | ||
|
||
Import('cflags buildmode') | ||
|
||
cppPath = ['#oadrsd', '../xsd-4.0.0'] | ||
libDir = ['../oadrsd/' + buildmode] | ||
libs = ['ssl', 'crypto', 'pthread', 'curl', 'xerces-c', 'oadrsd'] | ||
|
||
sconsHelper.build('oadr', cppPath, cflags, libDir, libs, buildmode, "shared") | ||
|
||
|
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/Debug | ||
/Release | ||
/mac-Debug |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import glob | ||
import os | ||
import sconsHelper | ||
|
||
Import('cflags buildmode') | ||
|
||
cppPath = ['../xsd-4.0.0'] | ||
libDir = [] | ||
libs = ['xerces-c'] | ||
|
||
sconsHelper.build('oadrsd', cppPath, cflags, libDir, libs, buildmode, "shared") | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,179 @@ | ||
// Copyright (c) 2005-2011 Code Synthesis Tools CC | ||
// | ||
// This program was generated by CodeSynthesis XSD, an XML Schema to | ||
// C++ data binding compiler. | ||
// | ||
// This program is free software; you can redistribute it and/or modify | ||
// it under the terms of the GNU General Public License version 2 as | ||
// published by the Free Software Foundation. | ||
// | ||
// This program is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// GNU General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU General Public License | ||
// along with this program; if not, write to the Free Software | ||
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
// | ||
// In addition, as a special exception, Code Synthesis Tools CC gives | ||
// permission to link this program with the Xerces-C++ library (or with | ||
// modified versions of Xerces-C++ that use the same license as Xerces-C++), | ||
// and distribute linked combinations including the two. You must obey | ||
// the GNU General Public License version 2 in all respects for all of | ||
// the code used other than Xerces-C++. If you modify this copy of the | ||
// program, you may extend this exception to your version of the program, | ||
// but you are not obligated to do so. If you do not wish to do so, delete | ||
// this exception statement from your version. | ||
// | ||
// Furthermore, Code Synthesis Tools CC makes a special exception for | ||
// the Free/Libre and Open Source Software (FLOSS) which is described | ||
// in the accompanying FLOSSE file. | ||
// | ||
|
||
#include <xsd/cxx/pre.hxx> | ||
|
||
// Begin prologue. | ||
// | ||
// | ||
// End prologue. | ||
|
||
#include "AccumulationKind.hxx" | ||
|
||
namespace espi | ||
{ | ||
// AccumulationKind | ||
// | ||
|
||
AccumulationKind:: | ||
AccumulationKind (const char* s) | ||
: ::xml_schema::string (s) | ||
{ | ||
} | ||
|
||
AccumulationKind:: | ||
AccumulationKind (const ::std::string& s) | ||
: ::xml_schema::string (s) | ||
{ | ||
} | ||
|
||
AccumulationKind:: | ||
AccumulationKind (const AccumulationKind& o, | ||
::xml_schema::flags f, | ||
::xml_schema::container* c) | ||
: ::xml_schema::string (o, f, c) | ||
{ | ||
} | ||
} | ||
|
||
#include <xsd/cxx/xml/dom/parsing-source.hxx> | ||
|
||
#include <xsd/cxx/tree/type-factory-map.hxx> | ||
|
||
namespace _xsd | ||
{ | ||
static | ||
const ::xsd::cxx::tree::type_factory_plate< 0, char > | ||
type_factory_plate_init; | ||
} | ||
|
||
namespace espi | ||
{ | ||
// AccumulationKind | ||
// | ||
|
||
AccumulationKind:: | ||
AccumulationKind (const ::xercesc::DOMElement& e, | ||
::xml_schema::flags f, | ||
::xml_schema::container* c) | ||
: ::xml_schema::string (e, f, c) | ||
{ | ||
} | ||
|
||
AccumulationKind:: | ||
AccumulationKind (const ::xercesc::DOMAttr& a, | ||
::xml_schema::flags f, | ||
::xml_schema::container* c) | ||
: ::xml_schema::string (a, f, c) | ||
{ | ||
} | ||
|
||
AccumulationKind:: | ||
AccumulationKind (const ::std::string& s, | ||
const ::xercesc::DOMElement* e, | ||
::xml_schema::flags f, | ||
::xml_schema::container* c) | ||
: ::xml_schema::string (s, e, f, c) | ||
{ | ||
} | ||
|
||
AccumulationKind* AccumulationKind:: | ||
_clone (::xml_schema::flags f, | ||
::xml_schema::container* c) const | ||
{ | ||
return new class AccumulationKind (*this, f, c); | ||
} | ||
|
||
static | ||
const ::xsd::cxx::tree::type_factory_initializer< 0, char, AccumulationKind > | ||
_xsd_AccumulationKind_type_factory_init ( | ||
"AccumulationKind", | ||
"http://naesb.org/espi"); | ||
} | ||
|
||
#include <istream> | ||
#include <xsd/cxx/xml/sax/std-input-source.hxx> | ||
#include <xsd/cxx/tree/error-handler.hxx> | ||
|
||
namespace espi | ||
{ | ||
} | ||
|
||
#include <ostream> | ||
#include <xsd/cxx/tree/error-handler.hxx> | ||
#include <xsd/cxx/xml/dom/serialization-source.hxx> | ||
|
||
#include <xsd/cxx/tree/type-serializer-map.hxx> | ||
|
||
namespace _xsd | ||
{ | ||
static | ||
const ::xsd::cxx::tree::type_serializer_plate< 0, char > | ||
type_serializer_plate_init; | ||
} | ||
|
||
namespace espi | ||
{ | ||
void | ||
operator<< (::xercesc::DOMElement& e, const AccumulationKind& i) | ||
{ | ||
e << static_cast< const ::xml_schema::string& > (i); | ||
} | ||
|
||
void | ||
operator<< (::xercesc::DOMAttr& a, const AccumulationKind& i) | ||
{ | ||
a << static_cast< const ::xml_schema::string& > (i); | ||
} | ||
|
||
void | ||
operator<< (::xml_schema::list_stream& l, | ||
const AccumulationKind& i) | ||
{ | ||
l << static_cast< const ::xml_schema::string& > (i); | ||
} | ||
|
||
static | ||
const ::xsd::cxx::tree::type_serializer_initializer< 0, char, AccumulationKind > | ||
_xsd_AccumulationKind_type_serializer_init ( | ||
"AccumulationKind", | ||
"http://naesb.org/espi"); | ||
} | ||
|
||
// Begin epilogue. | ||
// | ||
// | ||
// End epilogue. | ||
|
||
#include <xsd/cxx/post.hxx> | ||
|