legacy_headers option now installs Cantera.h

This commit is contained in:
Ray Speth
2012-03-05 20:45:03 +00:00
parent 2e695a67de
commit 3a15fef000
2 changed files with 42 additions and 1 deletions

View File

@@ -954,10 +954,13 @@ if env['addInstallTargets']:
# Make symlinks to replicate old header directory structure
if env['legacy_headers']:
inst = env.Command(pjoin(instRoot, 'include', 'cantera', 'kernel'), [],
inst = env.Command(pjoin('$inst_incdir', 'kernel'), [],
Mkdir("$TARGET"))
installTargets.extend(inst)
inst = env.Install('$inst_incdir', 'platform/legacy/Cantera.h')
installTargets.extend(inst)
if env['OS'] == 'Windows':
cmd = Copy("$TARGET", "$SOURCE")
else:

38
platform/legacy/Cantera.h Normal file
View File

@@ -0,0 +1,38 @@
#ifndef CANTERA_H_INCL
#define CANTERA_H_INCL
// Legacy 'Cantera.h' header for applications that have not
// updated to the new header files.
#warning "Use of Cantera.h is deprecated. Please include required headers directly instead."
// definitions
#ifndef CANTERA_APP
#define CANTERA_APP
#endif
namespace Cantera_CXX{ }
using namespace Cantera_CXX;
#include "kernel/ct_defs.h"
// some useful functions
#include "kernel/global.h"
// the CanteraError exception class
#include "kernel/ctexceptions.h"
// The Cantera logger class
#include "kernel/logger.h"
// Include the timer
#include "kernel/clockWC.h"
// Include routines for reading and writing XML files
#include "kernel/xml.h"
// Include string utility routines
#include "kernel/stringUtils.h"
#endif