*** empty log message ***

This commit is contained in:
David Rose 2000-10-19 20:17:29 +00:00
parent db5509f351
commit 808ecbd313

View File

@ -1,444 +1,444 @@
// //
// Global.pp // Global.pp
// //
// This file is read in before any of the individual Sources.pp files // This file is read in before any of the individual Sources.pp files
// are read. It defines a few global variables that are useful to all // are read. It defines a few global variables that are useful to all
// different kinds of build_types. // different kinds of build_types.
// //
// We start off by defining a number of map variables. These are // We start off by defining a number of map variables. These are
// special variables that can be used to look up a particular named // special variables that can be used to look up a particular named
// scope according to a key (that is, according to the value of some // scope according to a key (that is, according to the value of some
// variable defined within the scope). // variable defined within the scope).
// A named scope is defined using the #begin name .. #end name // A named scope is defined using the #begin name .. #end name
// sequence. In general, we use these sequences in the various // sequence. In general, we use these sequences in the various
// Sources.pp files to define the various targets to build. Each // Sources.pp files to define the various targets to build. Each
// named scope carries around its set of variable declarations. The // named scope carries around its set of variable declarations. The
// named scopes are associated with the dirname of the directory in // named scopes are associated with the dirname of the directory in
// which the Sources.pp file was found. // which the Sources.pp file was found.
// The first map variable lets us look up a particular library target // The first map variable lets us look up a particular library target
// by its target name. The syntax here indicates that we are // by its target name. The syntax here indicates that we are
// declaring a map variable called "all_libs" whose key is the // declaring a map variable called "all_libs" whose key is the
// variable $[TARGET] as defined in each instance of a named scope // variable $[TARGET] as defined in each instance of a named scope
// called "static_lib_target," "lib_target," and so on in every // called "static_lib_target," "lib_target," and so on in every
// Sources.pp file. (The */ refers to all the Sources.pp files. We // Sources.pp file. (The */ refers to all the Sources.pp files. We
// could also identify a particular file by its directory name, or // could also identify a particular file by its directory name, or
// omit the slash to refer to our own Sources.pp file.) // omit the slash to refer to our own Sources.pp file.)
// After defining this map variable, we can look up other variables // After defining this map variable, we can look up other variables
// that are defined for the corresponding target. For instances, // that are defined for the corresponding target. For instances,
// $[all_libs $[SOURCES],dconfig] will return the value of the SOURCES // $[all_libs $[SOURCES],dconfig] will return the value of the SOURCES
// variable as set for the dconfig library (that is, the expression // variable as set for the dconfig library (that is, the expression
// $[SOURCES] is evaluated within the named scope whose key is // $[SOURCES] is evaluated within the named scope whose key is
// "dconfig"--whose variable $[TARGET] was defined to be "dconfig"). // "dconfig"--whose variable $[TARGET] was defined to be "dconfig").
#map all_libs TARGET(*/static_lib_target */lib_target */noinst_lib_target */metalib_target) #map all_libs TARGET(*/static_lib_target */lib_target */noinst_lib_target */metalib_target)
// These allow us to determine whether a particular local library is a // These allow us to determine whether a particular local library is a
// static or a dynamic library. If the library name appears in the // static or a dynamic library. If the library name appears in the
// static_libs map, it is a static library (i.e. libname.a); // static_libs map, it is a static library (i.e. libname.a);
// otherwise, it is a dynamic library (libname.so). // otherwise, it is a dynamic library (libname.so).
#map static_libs TARGET(*/static_lib_target) #map static_libs TARGET(*/static_lib_target)
#map dynamic_libs TARGET(*/lib_target */noinst_lib_target */metalib_target) #map dynamic_libs TARGET(*/lib_target */noinst_lib_target */metalib_target)
// This lets us identify which metalib, if any, is including each // This lets us identify which metalib, if any, is including each
// named library. That is, $[module $[TARGET],name] will return // named library. That is, $[module $[TARGET],name] will return
// the name of the metalib that includes library name. // the name of the metalib that includes library name.
#map module COMPONENT_LIBS(*/metalib_target) #map module COMPONENT_LIBS(*/metalib_target)
// This lets up look up components of a particular metalib. // This lets up look up components of a particular metalib.
#map components TARGET(*/lib_target */noinst_lib_target) #map components TARGET(*/lib_target */noinst_lib_target)
// And this lets us look up source directories by dirname. // And this lets us look up source directories by dirname.
#map dirnames DIRNAME(*/) #map dirnames DIRNAME(*/)
// Define some various compile flags, derived from the variables set // Define some various compile flags, derived from the variables set
// in Config.pp. // in Config.pp.
#set INTERROGATE_PYTHON_INTERFACE $[and $[HAVE_PYTHON],$[INTERROGATE_PYTHON_INTERFACE]] #set INTERROGATE_PYTHON_INTERFACE $[and $[HAVE_PYTHON],$[INTERROGATE_PYTHON_INTERFACE]]
#define run_interrogate $[or $[INTERROGATE_C_INTERFACE],$[INTERROGATE_PYTHON_INTERFACE]] #define run_interrogate $[or $[INTERROGATE_C_INTERFACE],$[INTERROGATE_PYTHON_INTERFACE]]
#if $[HAVE_PYTHON] #if $[HAVE_PYTHON]
#define python_ipath $[wildcard $[PYTHON_IPATH]] #define python_ipath $[wildcard $[PYTHON_IPATH]]
#define python_lpath $[wildcard $[PYTHON_LPATH]] #define python_lpath $[wildcard $[PYTHON_LPATH]]
#endif #endif
#if $[HAVE_NSPR] #if $[HAVE_NSPR]
#define nspr_ipath $[wildcard $[NSPR_IPATH]] #define nspr_ipath $[wildcard $[NSPR_IPATH]]
#define nspr_lpath $[wildcard $[NSPR_LPATH]] #define nspr_lpath $[wildcard $[NSPR_LPATH]]
#define nspr_libs $[NSPR_LIBS] #define nspr_libs $[NSPR_LIBS]
#endif #endif
#if $[HAVE_ZLIB] #if $[HAVE_ZLIB]
#define zlib_ipath $[wildcard $[ZLIB_IPATH]] #define zlib_ipath $[wildcard $[ZLIB_IPATH]]
#define zlib_lpath $[wildcard $[ZLIB_LPATH]] #define zlib_lpath $[wildcard $[ZLIB_LPATH]]
#define zlib_libs $[ZLIB_LIBS] #define zlib_libs $[ZLIB_LIBS]
#endif #endif
#if $[HAVE_SOXST] #if $[HAVE_SOXST]
#define soxst_ipath $[wildcard $[SOXST_IPATH]] #define soxst_ipath $[wildcard $[SOXST_IPATH]]
#define soxst_lpath $[wildcard $[SOXST_LPATH]] #define soxst_lpath $[wildcard $[SOXST_LPATH]]
#define soxst_libs $[SOXST_LIBS] #define soxst_libs $[SOXST_LIBS]
#endif #endif
#if $[HAVE_GL] #if $[HAVE_GL]
#define gl_ipath $[wildcard $[GL_IPATH]] #define gl_ipath $[wildcard $[GL_IPATH]]
#define gl_lpath $[wildcard $[GL_LPATH]] #define gl_lpath $[wildcard $[GL_LPATH]]
#define gl_libs $[GL_LIBS] #define gl_libs $[GL_LIBS]
#endif #endif
#if $[HAVE_DX] #if $[HAVE_DX]
#define dx_ipath $[wildcard $[DX_IPATH]] #define dx_ipath $[wildcard $[DX_IPATH]]
#define dx_lpath $[wildcard $[DX_LPATH]] #define dx_lpath $[wildcard $[DX_LPATH]]
#define dx_libs $[DX_LIBS] #define dx_libs $[DX_LIBS]
#endif #endif
#if $[HAVE_VRPN] #if $[HAVE_VRPN]
#define vrpn_ipath $[wildcard $[VRPN_IPATH]] #define vrpn_ipath $[wildcard $[VRPN_IPATH]]
#define vrpn_lpath $[wildcard $[VRPN_LPATH]] #define vrpn_lpath $[wildcard $[VRPN_LPATH]]
#define vrpn_cflags $[VRPN_CFLAGS] #define vrpn_cflags $[VRPN_CFLAGS]
#define vrpn_libs $[VRPN_LIBS] #define vrpn_libs $[VRPN_LIBS]
#endif #endif
#if $[HAVE_MIKMOD] #if $[HAVE_MIKMOD]
#define mikmod_ipath $[wildcard $[MIKMOD_IPATH]] #define mikmod_ipath $[wildcard $[MIKMOD_IPATH]]
#define mikmod_lpath $[wildcard $[MIKMOD_LPATH]] #define mikmod_lpath $[wildcard $[MIKMOD_LPATH]]
#define mikmod_cflags $[MIKMOD_CFLAGS] #define mikmod_cflags $[MIKMOD_CFLAGS]
#define mikmod_libs $[MIKMOD_LIBS] #define mikmod_libs $[MIKMOD_LIBS]
#endif #endif
#if $[HAVE_GTKMM] #if $[HAVE_GTKMM]
#define gtkmm_ipath $[wildcard $[GTKMM_IPATH]] #define gtkmm_ipath $[wildcard $[GTKMM_IPATH]]
#define gtkmm_lpath $[wildcard $[GTKMM_LPATH]] #define gtkmm_lpath $[wildcard $[GTKMM_LPATH]]
#define gtkmm_cflags $[GTKMM_CFLAGS] #define gtkmm_cflags $[GTKMM_CFLAGS]
#define gtkmm_libs $[GTKMM_LIBS] #define gtkmm_libs $[GTKMM_LIBS]
#endif #endif
#if $[and $[HAVE_MAYA],$[MAYA_LOCATION]] #if $[and $[HAVE_MAYA],$[MAYA_LOCATION]]
#define maya_ipath $[MAYA_LOCATION]/include #define maya_ipath $[MAYA_LOCATION]/include
#define maya_lpath $[MAYA_LOCATION]/lib #define maya_lpath $[MAYA_LOCATION]/lib
#define maya_ld $[MAYA_LOCATION]/bin/mayald #define maya_ld $[MAYA_LOCATION]/bin/mayald
#endif #endif
#if $[HAVE_NET] #if $[HAVE_NET]
#define net_ipath $[wildcard $[NET_IPATH]] #define net_ipath $[wildcard $[NET_IPATH]]
#define net_lpath $[wildcard $[NET_LPATH]] #define net_lpath $[wildcard $[NET_LPATH]]
#define net_libs $[NET_LIBS] #define net_libs $[NET_LIBS]
#endif #endif
#if $[HAVE_AUDIO] #if $[HAVE_AUDIO]
#define audio_ipath $[wildcard $[AUDIO_IPATH]] #define audio_ipath $[wildcard $[AUDIO_IPATH]]
#define audio_lpath $[wildcard $[AUDIO_LPATH]] #define audio_lpath $[wildcard $[AUDIO_LPATH]]
#define audio_libs $[AUDIO_LIBS] #define audio_libs $[AUDIO_LIBS]
#endif #endif
// This variable, when evaluated in the scope of a particular directory, // This variable, when evaluated in the scope of a particular directory,
// will indicate true (i.e. nonempty) when the directory is truly built, // will indicate true (i.e. nonempty) when the directory is truly built,
// or false (empty) when the directory is not to be built. // or false (empty) when the directory is not to be built.
#defer build_directory \ #defer build_directory \
$[and \ $[and \
$[or $[not $[DIRECTORY_IF_PYTHON]],$[HAVE_PYTHON]], \ $[or $[not $[DIRECTORY_IF_PYTHON]],$[HAVE_PYTHON]], \
$[or $[not $[DIRECTORY_IF_NSPR]],$[HAVE_NSPR]], \ $[or $[not $[DIRECTORY_IF_NSPR]],$[HAVE_NSPR]], \
$[or $[not $[DIRECTORY_IF_ZLIB]],$[HAVE_ZLIB]], \ $[or $[not $[DIRECTORY_IF_ZLIB]],$[HAVE_ZLIB]], \
$[or $[not $[DIRECTORY_IF_SOXST]],$[HAVE_SOXST]], \ $[or $[not $[DIRECTORY_IF_SOXST]],$[HAVE_SOXST]], \
$[or $[not $[DIRECTORY_IF_GL]],$[HAVE_GL]], \ $[or $[not $[DIRECTORY_IF_GL]],$[HAVE_GL]], \
$[or $[not $[DIRECTORY_IF_DX]],$[HAVE_DX]], \ $[or $[not $[DIRECTORY_IF_DX]],$[HAVE_DX]], \
$[or $[not $[DIRECTORY_IF_GLX]],$[HAVE_GLX]], \ $[or $[not $[DIRECTORY_IF_GLX]],$[HAVE_GLX]], \
$[or $[not $[DIRECTORY_IF_GLUT]],$[HAVE_GLUT]], \ $[or $[not $[DIRECTORY_IF_GLUT]],$[HAVE_GLUT]], \
$[or $[not $[DIRECTORY_IF_WGL]],$[HAVE_WGL]], \ $[or $[not $[DIRECTORY_IF_WGL]],$[HAVE_WGL]], \
$[or $[not $[DIRECTORY_IF_RIB]],$[HAVE_RIB]], \ $[or $[not $[DIRECTORY_IF_RIB]],$[HAVE_RIB]], \
$[or $[not $[DIRECTORY_IF_PS2]],$[HAVE_PS2]], \ $[or $[not $[DIRECTORY_IF_PS2]],$[HAVE_PS2]], \
$[or $[not $[DIRECTORY_IF_SGIGL]],$[HAVE_SGIGL]], \ $[or $[not $[DIRECTORY_IF_SGIGL]],$[HAVE_SGIGL]], \
$[or $[not $[DIRECTORY_IF_VRPN]],$[HAVE_VRPN]], \ $[or $[not $[DIRECTORY_IF_VRPN]],$[HAVE_VRPN]], \
$[or $[not $[DIRECTORY_IF_GTKMM]],$[HAVE_GTKMM]], \ $[or $[not $[DIRECTORY_IF_GTKMM]],$[HAVE_GTKMM]], \
$[or $[not $[DIRECTORY_IF_MAYA]],$[HAVE_MAYA]], \ $[or $[not $[DIRECTORY_IF_MAYA]],$[HAVE_MAYA]], \
$[or $[not $[DIRECTORY_IF_NET]],$[HAVE_NET]], \ $[or $[not $[DIRECTORY_IF_NET]],$[HAVE_NET]], \
$[or $[not $[DIRECTORY_IF_AUDIO]],$[HAVE_AUDIO]], \ $[or $[not $[DIRECTORY_IF_AUDIO]],$[HAVE_AUDIO]], \
1 ] 1 ]
// This variable, when evaluated in the scope of a particular target, // This variable, when evaluated in the scope of a particular target,
// will indicated true when the target should be built, or false when // will indicated true when the target should be built, or false when
// the target is not to be built. // the target is not to be built.
#defer build_target \ #defer build_target \
$[and \ $[and \
$[or $[not $[TARGET_IF_PYTHON]],$[HAVE_PYTHON]], \ $[or $[not $[TARGET_IF_PYTHON]],$[HAVE_PYTHON]], \
$[or $[not $[TARGET_IF_NSPR]],$[HAVE_NSPR]], \ $[or $[not $[TARGET_IF_NSPR]],$[HAVE_NSPR]], \
$[or $[not $[TARGET_IF_ZLIB]],$[HAVE_ZLIB]], \ $[or $[not $[TARGET_IF_ZLIB]],$[HAVE_ZLIB]], \
$[or $[not $[TARGET_IF_SOXST]],$[HAVE_SOXST]], \ $[or $[not $[TARGET_IF_SOXST]],$[HAVE_SOXST]], \
$[or $[not $[TARGET_IF_GL]],$[HAVE_GL]], \ $[or $[not $[TARGET_IF_GL]],$[HAVE_GL]], \
$[or $[not $[TARGET_IF_DX]],$[HAVE_DX]], \ $[or $[not $[TARGET_IF_DX]],$[HAVE_DX]], \
$[or $[not $[TARGET_IF_GLX]],$[HAVE_GLX]], \ $[or $[not $[TARGET_IF_GLX]],$[HAVE_GLX]], \
$[or $[not $[TARGET_IF_GLUT]],$[HAVE_GLUT]], \ $[or $[not $[TARGET_IF_GLUT]],$[HAVE_GLUT]], \
$[or $[not $[TARGET_IF_WGL]],$[HAVE_WGL]], \ $[or $[not $[TARGET_IF_WGL]],$[HAVE_WGL]], \
$[or $[not $[TARGET_IF_RIB]],$[HAVE_RIB]], \ $[or $[not $[TARGET_IF_RIB]],$[HAVE_RIB]], \
$[or $[not $[TARGET_IF_PS2]],$[HAVE_PS2]], \ $[or $[not $[TARGET_IF_PS2]],$[HAVE_PS2]], \
$[or $[not $[TARGET_IF_SGIGL]],$[HAVE_SGIGL]], \ $[or $[not $[TARGET_IF_SGIGL]],$[HAVE_SGIGL]], \
$[or $[not $[TARGET_IF_VRPN]],$[HAVE_VRPN]], \ $[or $[not $[TARGET_IF_VRPN]],$[HAVE_VRPN]], \
$[or $[not $[TARGET_IF_GTKMM]],$[HAVE_GTKMM]], \ $[or $[not $[TARGET_IF_GTKMM]],$[HAVE_GTKMM]], \
$[or $[not $[TARGET_IF_MAYA]],$[HAVE_MAYA]], \ $[or $[not $[TARGET_IF_MAYA]],$[HAVE_MAYA]], \
$[or $[not $[TARGET_IF_NET]],$[HAVE_NET]], \ $[or $[not $[TARGET_IF_NET]],$[HAVE_NET]], \
$[or $[not $[TARGET_IF_AUDIO]],$[HAVE_AUDIO]], \ $[or $[not $[TARGET_IF_AUDIO]],$[HAVE_AUDIO]], \
1 ] 1 ]
// This takes advantage of the above two variables to get the actual // This takes advantage of the above two variables to get the actual
// list of local libraries we are to link with, eliminating those that // list of local libraries we are to link with, eliminating those that
// won't be built. // won't be built.
#defer active_local_libs \ #defer active_local_libs \
$[all_libs $[if $[and $[build_directory],$[build_target]],$[TARGET]],$[LOCAL_LIBS]] $[all_libs $[if $[and $[build_directory],$[build_target]],$[TARGET]],$[LOCAL_LIBS]]
#defer active_component_libs \ #defer active_component_libs \
$[all_libs $[if $[and $[build_directory],$[build_target]],$[TARGET]],$[COMPONENT_LIBS]] $[all_libs $[if $[and $[build_directory],$[build_target]],$[TARGET]],$[COMPONENT_LIBS]]
#defer active_libs $[active_local_libs] $[active_component_libs] #defer active_libs $[active_local_libs] $[active_component_libs]
// This subroutine will set up the sources variable to reflect the // This subroutine will set up the sources variable to reflect the
// complete set of sources for this target, and also set the // complete set of sources for this target, and also set the
// alt_cflags, alt_libs, etc. as appropriate according to how the // alt_cflags, alt_libs, etc. as appropriate according to how the
// various USE_* flags are set for the current target. // various USE_* flags are set for the current target.
// This variable returns the complete set of sources for the current // This variable returns the complete set of sources for the current
// target. // target.
#defer get_sources \ #defer get_sources \
$[SOURCES] \ $[SOURCES] \
$[if $[HAVE_ZLIB],$[IF_ZLIB_SOURCES]] \ $[if $[HAVE_ZLIB],$[IF_ZLIB_SOURCES]] \
$[if $[HAVE_PYTHON],$[IF_PYTHON_SOURCES]] $[if $[HAVE_PYTHON],$[IF_PYTHON_SOURCES]]
// This variable returns the set of sources that are to be // This variable returns the set of sources that are to be
// interrogated for the current target. // interrogated for the current target.
#defer get_igatescan \ #defer get_igatescan \
$[if $[and $[run_interrogate],$[IGATESCAN]], \ $[if $[and $[run_interrogate],$[IGATESCAN]], \
$[if $[eq $[IGATESCAN], all], \ $[if $[eq $[IGATESCAN], all], \
$[filter-out %.I %.lxx %.yxx %.N,$[get_sources]], \ $[filter-out %.I %.lxx %.yxx %.N,$[get_sources]], \
$[IGATESCAN]]] $[IGATESCAN]]]
// This variable returns the name of the interrogate database file // This variable returns the name of the interrogate database file
// that will be generated for a particular target, or empty string if // that will be generated for a particular target, or empty string if
// the target is not to be interrogated. // the target is not to be interrogated.
#defer get_igatedb \ #defer get_igatedb \
$[if $[and $[run_interrogate],$[IGATESCAN]], \ $[if $[and $[run_interrogate],$[IGATESCAN]], \
lib$[TARGET].in] lib$[TARGET].in]
// This variable returns the name of the interrogate module, if the // This variable returns the name of the interrogate module, if the
// current metalib target should include one, or empty string if it // current metalib target should include one, or empty string if it
// should not. // should not.
#defer get_igatemscan \ #defer get_igatemscan \
$[if $[and $[run_interrogate],$[components $[IGATESCAN],$[COMPONENT_LIBS]]], \ $[if $[and $[run_interrogate],$[components $[IGATESCAN],$[COMPONENT_LIBS]]], \
$[TARGET]] $[TARGET]]
// This function returns the appropriate cflags for the target, based // This function returns the appropriate cflags for the target, based
// on the various external packages this particular target claims to // on the various external packages this particular target claims to
// require. // require.
#defun get_cflags #defun get_cflags
#define alt_cflags $[nspr_cflags] $[python_cflags] #define alt_cflags $[nspr_cflags] $[python_cflags]
#if $[ne $[USE_ZLIB] $[components $[USE_ZLIB],$[COMPONENT_LIBS]],] #if $[ne $[USE_ZLIB] $[components $[USE_ZLIB],$[COMPONENT_LIBS]],]
#set alt_cflags $[alt_cflags] $[zlib_cflags] #set alt_cflags $[alt_cflags] $[zlib_cflags]
#endif #endif
#if $[ne $[USE_GL] $[components $[USE_GL],$[COMPONENT_LIBS]],] #if $[ne $[USE_GL] $[components $[USE_GL],$[COMPONENT_LIBS]],]
#set alt_cflags $[alt_cflags] $[gl_cflags] #set alt_cflags $[alt_cflags] $[gl_cflags]
#endif #endif
#if $[ne $[USE_DX] $[components $[USE_DX],$[COMPONENT_LIBS]],] #if $[ne $[USE_DX] $[components $[USE_DX],$[COMPONENT_LIBS]],]
#set alt_cflags $[alt_cflags] $[dx_cflags] #set alt_cflags $[alt_cflags] $[dx_cflags]
#endif #endif
#if $[ne $[USE_SOXST] $[components $[USE_SOXST],$[COMPONENT_LIBS]],] #if $[ne $[USE_SOXST] $[components $[USE_SOXST],$[COMPONENT_LIBS]],]
#set alt_cflags $[alt_cflags] $[soxst_cflags] #set alt_cflags $[alt_cflags] $[soxst_cflags]
#endif #endif
#if $[ne $[USE_NET] $[components $[USE_NET],$[COMPONENT_LIBS]],] #if $[ne $[USE_NET] $[components $[USE_NET],$[COMPONENT_LIBS]],]
#set alt_cflags $[alt_cflags] $[net_cflags] #set alt_cflags $[alt_cflags] $[net_cflags]
#endif #endif
#if $[ne $[USE_AUDIO] $[components $[USE_AUDIO],$[COMPONENT_LIBS]],] #if $[ne $[USE_AUDIO] $[components $[USE_AUDIO],$[COMPONENT_LIBS]],]
#set alt_cflags $[alt_cflags] $[audio_cflags] #set alt_cflags $[alt_cflags] $[audio_cflags]
#endif #endif
#if $[ne $[USE_MIKMOD] $[components $[USE_MIKMOD],$[COMPONENT_LIBS]],] #if $[ne $[USE_MIKMOD] $[components $[USE_MIKMOD],$[COMPONENT_LIBS]],]
#set alt_cflags $[alt_cflags] $[mikmod_cflags] #set alt_cflags $[alt_cflags] $[mikmod_cflags]
#endif #endif
#if $[ne $[USE_GTKMM] $[components $[USE_GTKMM],$[COMPONENT_LIBS]],] #if $[ne $[USE_GTKMM] $[components $[USE_GTKMM],$[COMPONENT_LIBS]],]
#set alt_cflags $[alt_cflags] $[gtkmm_cflags] #set alt_cflags $[alt_cflags] $[gtkmm_cflags]
#endif #endif
#if $[ne $[USE_MAYA] $[components $[USE_MAYA],$[COMPONENT_LIBS]],] #if $[ne $[USE_MAYA] $[components $[USE_MAYA],$[COMPONENT_LIBS]],]
#set alt_cflags $[alt_cflags] $[maya_cflags] #set alt_cflags $[alt_cflags] $[maya_cflags]
#endif #endif
$[alt_cflags] $[alt_cflags]
#end get_cflags #end get_cflags
// This function returns the appropriate include path for the target, // This function returns the appropriate include path for the target,
// based on the various external packages this particular target // based on the various external packages this particular target
// claims to require. This returns a space-separated set of directory // claims to require. This returns a space-separated set of directory
// names only; the -I switch is not included here. // names only; the -I switch is not included here.
#defun get_ipath #defun get_ipath
#define alt_ipath $[nspr_ipath] $[python_ipath] #define alt_ipath $[nspr_ipath] $[python_ipath]
#if $[ne $[USE_ZLIB] $[components $[USE_ZLIB],$[COMPONENT_LIBS]],] #if $[ne $[USE_ZLIB] $[components $[USE_ZLIB],$[COMPONENT_LIBS]],]
#set alt_ipath $[alt_ipath] $[zlib_ipath] #set alt_ipath $[alt_ipath] $[zlib_ipath]
#endif #endif
#if $[ne $[USE_GL] $[components $[USE_GL],$[COMPONENT_LIBS]],] #if $[ne $[USE_GL] $[components $[USE_GL],$[COMPONENT_LIBS]],]
#set alt_ipath $[alt_ipath] $[gl_ipath] #set alt_ipath $[alt_ipath] $[gl_ipath]
#endif #endif
#if $[ne $[USE_DX] $[components $[USE_DX],$[COMPONENT_LIBS]],] #if $[ne $[USE_DX] $[components $[USE_DX],$[COMPONENT_LIBS]],]
#set alt_ipath $[alt_ipath] $[dx_ipath] #set alt_ipath $[alt_ipath] $[dx_ipath]
#endif #endif
#if $[ne $[USE_SOXST] $[components $[USE_SOXST],$[COMPONENT_LIBS]],] #if $[ne $[USE_SOXST] $[components $[USE_SOXST],$[COMPONENT_LIBS]],]
#set alt_ipath $[alt_ipath] $[soxst_ipath] #set alt_ipath $[alt_ipath] $[soxst_ipath]
#endif #endif
#if $[ne $[USE_NET] $[components $[USE_NET],$[COMPONENT_LIBS]],] #if $[ne $[USE_NET] $[components $[USE_NET],$[COMPONENT_LIBS]],]
#set alt_ipath $[alt_ipath] $[net_ipath] #set alt_ipath $[alt_ipath] $[net_ipath]
#endif #endif
#if $[ne $[USE_AUDIO] $[components $[USE_AUDIO],$[COMPONENT_LIBS]],] #if $[ne $[USE_AUDIO] $[components $[USE_AUDIO],$[COMPONENT_LIBS]],]
#set alt_ipath $[alt_ipath] $[audio_ipath] #set alt_ipath $[alt_ipath] $[audio_ipath]
#endif #endif
#if $[ne $[USE_MIKMOD] $[components $[USE_MIKMOD],$[COMPONENT_LIBS]],] #if $[ne $[USE_MIKMOD] $[components $[USE_MIKMOD],$[COMPONENT_LIBS]],]
#set alt_ipath $[alt_ipath] $[mikmod_ipath] #set alt_ipath $[alt_ipath] $[mikmod_ipath]
#endif #endif
#if $[ne $[USE_GTKMM] $[components $[USE_GTKMM],$[COMPONENT_LIBS]],] #if $[ne $[USE_GTKMM] $[components $[USE_GTKMM],$[COMPONENT_LIBS]],]
#set alt_ipath $[alt_ipath] $[gtkmm_ipath] #set alt_ipath $[alt_ipath] $[gtkmm_ipath]
#endif #endif
#if $[ne $[USE_MAYA] $[components $[USE_MAYA],$[COMPONENT_LIBS]],] #if $[ne $[USE_MAYA] $[components $[USE_MAYA],$[COMPONENT_LIBS]],]
#set alt_ipath $[alt_ipath] $[maya_ipath] #set alt_ipath $[alt_ipath] $[maya_ipath]
#endif #endif
$[alt_ipath] $[alt_ipath]
#end get_ipath #end get_ipath
// This function returns the appropriate library search path for the // This function returns the appropriate library search path for the
// target, based on the various external packages this particular // target, based on the various external packages this particular
// target claims to require. This returns a space-separated set of // target claims to require. This returns a space-separated set of
// directory names only; the -L switch is not included here. // directory names only; the -L switch is not included here.
#defun get_lpath #defun get_lpath
#define alt_lpath $[nspr_lpath] $[python_lpath] #define alt_lpath $[nspr_lpath] $[python_lpath]
#if $[ne $[USE_ZLIB] $[components $[USE_ZLIB],$[COMPONENT_LIBS]],] #if $[ne $[USE_ZLIB] $[components $[USE_ZLIB],$[COMPONENT_LIBS]],]
#set alt_lpath $[alt_lpath] $[zlib_lpath] #set alt_lpath $[alt_lpath] $[zlib_lpath]
#endif #endif
#if $[ne $[USE_GL] $[components $[USE_GL],$[COMPONENT_LIBS]],] #if $[ne $[USE_GL] $[components $[USE_GL],$[COMPONENT_LIBS]],]
#set alt_lpath $[alt_lpath] $[gl_lpath] #set alt_lpath $[alt_lpath] $[gl_lpath]
#endif #endif
#if $[ne $[USE_DX] $[components $[USE_DX],$[COMPONENT_LIBS]],] #if $[ne $[USE_DX] $[components $[USE_DX],$[COMPONENT_LIBS]],]
#set alt_lpath $[alt_lpath] $[dx_lpath] #set alt_lpath $[alt_lpath] $[dx_lpath]
#endif #endif
#if $[ne $[USE_SOXST] $[components $[USE_SOXST],$[COMPONENT_LIBS]],] #if $[ne $[USE_SOXST] $[components $[USE_SOXST],$[COMPONENT_LIBS]],]
#set alt_lpath $[alt_lpath] $[soxst_lpath] #set alt_lpath $[alt_lpath] $[soxst_lpath]
#endif #endif
#if $[ne $[USE_NET] $[components $[USE_NET],$[COMPONENT_LIBS]],] #if $[ne $[USE_NET] $[components $[USE_NET],$[COMPONENT_LIBS]],]
#set alt_lpath $[alt_lpath] $[net_lpath] #set alt_lpath $[alt_lpath] $[net_lpath]
#endif #endif
#if $[ne $[USE_AUDIO] $[components $[USE_AUDIO],$[COMPONENT_LIBS]],] #if $[ne $[USE_AUDIO] $[components $[USE_AUDIO],$[COMPONENT_LIBS]],]
#set alt_lpath $[alt_lpath] $[audio_lpath] #set alt_lpath $[alt_lpath] $[audio_lpath]
#endif #endif
#if $[ne $[USE_MIKMOD] $[components $[USE_MIKMOD],$[COMPONENT_LIBS]],] #if $[ne $[USE_MIKMOD] $[components $[USE_MIKMOD],$[COMPONENT_LIBS]],]
#set alt_lpath $[alt_lpath] $[mikmod_lpath] #set alt_lpath $[alt_lpath] $[mikmod_lpath]
#endif #endif
#if $[ne $[USE_GTKMM] $[components $[USE_GTKMM],$[COMPONENT_LIBS]],] #if $[ne $[USE_GTKMM] $[components $[USE_GTKMM],$[COMPONENT_LIBS]],]
#set alt_lpath $[alt_lpath] $[gtkmm_lpath] #set alt_lpath $[alt_lpath] $[gtkmm_lpath]
#endif #endif
#if $[ne $[USE_MAYA] $[components $[USE_MAYA],$[COMPONENT_LIBS]],] #if $[ne $[USE_MAYA] $[components $[USE_MAYA],$[COMPONENT_LIBS]],]
#set alt_lpath $[alt_lpath] $[maya_lpath] #set alt_lpath $[alt_lpath] $[maya_lpath]
#endif #endif
$[alt_lpath] $[alt_lpath]
#end get_lpath #end get_lpath
// This function returns the appropriate set of library names to link // This function returns the appropriate set of library names to link
// with for the target, based on the various external packages this // with for the target, based on the various external packages this
// particular target claims to require. This returns a // particular target claims to require. This returns a
// space-separated set of library names only; the -l switch is not // space-separated set of library names only; the -l switch is not
// included here. // included here.
#defun get_libs #defun get_libs
#define alt_libs $[nspr_libs] $[python_libs] #define alt_libs $[nspr_libs] $[python_libs]
#if $[ne $[USE_ZLIB] $[components $[USE_ZLIB],$[COMPONENT_LIBS]],] #if $[ne $[USE_ZLIB] $[components $[USE_ZLIB],$[COMPONENT_LIBS]],]
#set alt_libs $[alt_libs] $[zlib_libs] #set alt_libs $[alt_libs] $[zlib_libs]
#endif #endif
#if $[ne $[USE_GL] $[components $[USE_GL],$[COMPONENT_LIBS]],] #if $[ne $[USE_GL] $[components $[USE_GL],$[COMPONENT_LIBS]],]
#set alt_libs $[alt_libs] $[gl_libs] #set alt_libs $[alt_libs] $[gl_libs]
#endif #endif
#if $[ne $[USE_DX] $[components $[USE_DX],$[COMPONENT_LIBS]],] #if $[ne $[USE_DX] $[components $[USE_DX],$[COMPONENT_LIBS]],]
#set alt_libs $[alt_libs] $[dx_libs] #set alt_libs $[alt_libs] $[dx_libs]
#endif #endif
#if $[ne $[USE_SOXST] $[components $[USE_SOXST],$[COMPONENT_LIBS]],] #if $[ne $[USE_SOXST] $[components $[USE_SOXST],$[COMPONENT_LIBS]],]
#set alt_libs $[alt_libs] $[soxst_libs] #set alt_libs $[alt_libs] $[soxst_libs]
#endif #endif
#if $[ne $[USE_NET] $[components $[USE_NET],$[COMPONENT_LIBS]],] #if $[ne $[USE_NET] $[components $[USE_NET],$[COMPONENT_LIBS]],]
#set alt_libs $[alt_libs] $[net_libs] #set alt_libs $[alt_libs] $[net_libs]
#endif #endif
#if $[ne $[USE_AUDIO] $[components $[USE_AUDIO],$[COMPONENT_LIBS]],] #if $[ne $[USE_AUDIO] $[components $[USE_AUDIO],$[COMPONENT_LIBS]],]
#set alt_libs $[alt_libs] $[audio_libs] #set alt_libs $[alt_libs] $[audio_libs]
#endif #endif
#if $[ne $[USE_MIKMOD] $[components $[USE_MIKMOD],$[COMPONENT_LIBS]],] #if $[ne $[USE_MIKMOD] $[components $[USE_MIKMOD],$[COMPONENT_LIBS]],]
#set alt_libs $[alt_libs] $[mikmod_libs] #set alt_libs $[alt_libs] $[mikmod_libs]
#endif #endif
#if $[ne $[USE_GTKMM] $[components $[USE_GTKMM],$[COMPONENT_LIBS]],] #if $[ne $[USE_GTKMM] $[components $[USE_GTKMM],$[COMPONENT_LIBS]],]
#set alt_libs $[alt_libs] $[gtkmm_libs] #set alt_libs $[alt_libs] $[gtkmm_libs]
#endif #endif
#if $[ne $[USE_MAYA] $[components $[USE_MAYA],$[COMPONENT_LIBS]],] #if $[ne $[USE_MAYA] $[components $[USE_MAYA],$[COMPONENT_LIBS]],]
#set alt_libs $[alt_libs] $[maya_libs] #set alt_libs $[alt_libs] $[maya_libs]
#endif #endif
#if $[UNIX_PLATFORM] #if $[UNIX_PLATFORM]
#set alt_libs $[alt_libs] $[UNIX_SYS_LIBS] $[components $[UNIX_SYS_LIBS],$[COMPONENT_LIBS]] #set alt_libs $[alt_libs] $[UNIX_SYS_LIBS] $[components $[UNIX_SYS_LIBS],$[COMPONENT_LIBS]]
#endif #endif
$[alt_libs] $[alt_libs]
#end get_libs #end get_libs
// This function returns the appropriate value for ld for the target. // This function returns the appropriate value for ld for the target.
#defun get_ld #defun get_ld
#if $[ne $[USE_MAYA] $[components $[USE_MAYA],$[COMPONENT_LD]],] #if $[ne $[USE_MAYA] $[components $[USE_MAYA],$[COMPONENT_LD]],]
$[maya_ld] $[maya_ld]
#endif #endif
#end get_ld #end get_ld
// Define a few directories that will be useful. // Define a few directories that will be useful.
#define so_dir $[ODIR_SHARED] #define so_dir $[ODIR_SHARED]
#define st_dir $[ODIR_STATIC] #define st_dir $[ODIR_STATIC]
#define install_dir $[$[upcase $[PACKAGE]]_INSTALL] #define install_dir $[$[upcase $[PACKAGE]]_INSTALL]
#if $[eq $[install_dir],] #if $[eq $[install_dir],]
#error Variable $[upcase $[PACKAGE]]_INSTALL is not set! Cannot install! #error Variable $[upcase $[PACKAGE]]_INSTALL is not set! Cannot install!
#endif #endif
#define other_trees #define other_trees
#foreach tree $[NEEDS_TREES] #foreach tree $[NEEDS_TREES]
#define tree_install $[$[upcase $[tree]]_INSTALL] #define tree_install $[$[upcase $[tree]]_INSTALL]
#if $[eq $[tree_install],] #if $[eq $[tree_install],]
Warning: Variable $[upcase $[tree]]_INSTALL is not set! Warning: Variable $[upcase $[tree]]_INSTALL is not set!
#else #else
#set other_trees $[other_trees] $[tree_install] #set other_trees $[other_trees] $[tree_install]
#endif #endif
#end tree #end tree
#define install_lib_dir $[install_dir]/lib #define install_lib_dir $[install_dir]/lib
#define install_bin_dir $[install_dir]/bin #define install_bin_dir $[install_dir]/bin
#define install_headers_dir $[install_dir]/include #define install_headers_dir $[install_dir]/include
#define install_data_dir $[install_dir]/shared #define install_data_dir $[install_dir]/shared
#define install_igatedb_dir $[install_dir]/etc #define install_igatedb_dir $[install_dir]/etc
#define install_config_dir $[install_dir]/etc #define install_config_dir $[install_dir]/etc
#if $[ne $[DTOOL_INSTALL],] #if $[ne $[DTOOL_INSTALL],]
#define install_parser_inc_dir $[DTOOL_INSTALL]/include/parser-inc #define install_parser_inc_dir $[DTOOL_INSTALL]/include/parser-inc
#else #else
#define install_parser_inc_dir $[install_headers_dir]/parser-inc #define install_parser_inc_dir $[install_headers_dir]/parser-inc
#endif #endif
// Set up the correct interrogate options. // Set up the correct interrogate options.
#defer interrogate_options \ #defer interrogate_options \
-DCPPPARSER -D__cplusplus $[SYSTEM_IGATE_FLAGS] \ -DCPPPARSER -D__cplusplus $[SYSTEM_IGATE_FLAGS] \
-S$[install_parser_inc_dir] $[target_ipath:%=-I%] \ -S$[install_parser_inc_dir] $[target_ipath:%=-I%] \
$[filter -D%,$[get_cflags] $[C++FLAGS]] \ $[filter -D%,$[get_cflags] $[C++FLAGS]] \
$[INTERROGATE_OPTIONS] \ $[INTERROGATE_OPTIONS] \
$[if $[INTERROGATE_PYTHON_INTERFACE],-python] \ $[if $[INTERROGATE_PYTHON_INTERFACE],-python] \
$[if $[INTERROGATE_C_INTERFACE],-c] $[if $[INTERROGATE_C_INTERFACE],-c]
// Include the global definitions for this particular build_type, if // Include the global definitions for this particular build_type, if
// the file is there. // the file is there.
#sinclude $[GLOBAL_TYPE_FILE] #sinclude $[GLOBAL_TYPE_FILE]