mirror of
https://github.com/Cantera/cantera.git
synced 2025-02-25 18:55:29 -06:00
legacy_headers option now installs Cantera.h
This commit is contained in:
@@ -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
38
platform/legacy/Cantera.h
Normal 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
|
||||
Reference in New Issue
Block a user