2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-15 00:52:16 +00:00

Internalize build options into config header.

This commit is contained in:
Rene Rivera
2019-03-21 09:53:02 -05:00
parent 5ee7ebcf16
commit 3eceb036ef
39 changed files with 62 additions and 16 deletions

View File

@@ -162,14 +162,6 @@ case "$1" in
esac
BOOST_JAM_OPT_JAM="\
-DNDEBUG \
-DOPT_HEADER_CACHE_EXT \
-DOPT_GRAPH_DEBUG_EXT \
-DOPT_SEMAPHORE \
-DOPT_AT_FILES \
-DOPT_DEBUG_PROFILE \
-DJAM_DEBUGGER \
-DOPT_FIX_TARGET_VARIABLES_EXT \
-DOPT_IMPROVED_PATIENCE_EXT \
-DYYSTACKSIZE=5000 \
-DYYINITDEPTH=5000 \
-o b2"

View File

@@ -7,6 +7,7 @@
#ifndef JAM_BUILTINS_H
# define JAM_BUILTINS_H
# include "config.h"
# include "frames.h"
/*

View File

@@ -5,6 +5,7 @@
#ifndef CLASS_H_VP_2003_08_01
#define CLASS_H_VP_2003_08_01
#include "config.h"
#include "lists.h"
#include "frames.h"

View File

@@ -40,6 +40,7 @@
#ifndef COMMAND_SW20111118_H
#define COMMAND_SW20111118_H
#include "config.h"
#include "lists.h"
#include "rules.h"
#include "strings.h"

View File

@@ -17,6 +17,7 @@
#ifndef COMPILE_DWA20011022_H
#define COMPILE_DWA20011022_H
#include "config.h"
#include "frames.h"
#include "lists.h"
#include "object.h"

20
src/engine/config.h Normal file
View File

@@ -0,0 +1,20 @@
#ifndef B2_CONFIG_H
#define B2_CONFIG_H
/*
Copyright 2002-2018 Rene Rivera.
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt or copy at
http://www.boost.org/LICENSE_1_0.txt)
*/
#define OPT_HEADER_CACHE_EXT 1
#define OPT_GRAPH_DEBUG_EXT 1
#define OPT_SEMAPHORE 1
#define OPT_AT_FILES 1
#define OPT_DEBUG_PROFILE 1
#define JAM_DEBUGGER 1
#define OPT_FIX_TARGET_VARIABLES_EXT 1
#define OPT_IMPROVED_PATIENCE_EXT 1
#endif

View File

@@ -19,14 +19,6 @@ if "_%BOOST_JAM_TOOLSET%_" == "_intel-win32_" call :Config_INTEL_WIN32
if "_%BOOST_JAM_TOOLSET%_" == "_mingw_" call :Config_MINGW
set "BOOST_JAM_OPT_JAM=%BOOST_JAM_OPT_JAM% -DNT"
set "BOOST_JAM_OPT_JAM=%BOOST_JAM_OPT_JAM% -DNDEBUG"
set "BOOST_JAM_OPT_JAM=%BOOST_JAM_OPT_JAM% -DOPT_HEADER_CACHE_EXT"
set "BOOST_JAM_OPT_JAM=%BOOST_JAM_OPT_JAM% -DOPT_GRAPH_DEBUG_EXT"
set "BOOST_JAM_OPT_JAM=%BOOST_JAM_OPT_JAM% -DOPT_SEMAPHORE"
set "BOOST_JAM_OPT_JAM=%BOOST_JAM_OPT_JAM% -DOPT_AT_FILES"
set "BOOST_JAM_OPT_JAM=%BOOST_JAM_OPT_JAM% -DOPT_DEBUG_PROFILE"
set "BOOST_JAM_OPT_JAM=%BOOST_JAM_OPT_JAM% -DJAM_DEBUGGER"
set "BOOST_JAM_OPT_JAM=%BOOST_JAM_OPT_JAM% -DOPT_FIX_TARGET_VARIABLES_EXT"
set "BOOST_JAM_OPT_JAM=%BOOST_JAM_OPT_JAM% -DOPT_IMPROVED_PATIENCE_EXT"
set "BOOST_JAM_OPT_JAM=%BOOST_JAM_OPT_JAM% -DYYSTACKSIZE=5000"
set "BOOST_JAM_OPT_JAM=%BOOST_JAM_OPT_JAM% -DYYINITDEPTH=5000"
exit /b %errorlevel%

View File

@@ -11,6 +11,7 @@
#ifndef BOOST_JAM_CONSTANTS_H
#define BOOST_JAM_CONSTANTS_H
#include "config.h"
#include "object.h"
void constants_init( void );

View File

@@ -12,6 +12,7 @@
#ifndef CWD_H
#define CWD_H
#include "config.h"
#include "object.h"

View File

@@ -8,6 +8,7 @@
#ifndef BJAM_DEBUG_H
#define BJAM_DEBUG_H
#include "config.h"
#include "constants.h"
#include "object.h"

View File

@@ -8,6 +8,7 @@
#ifndef DEBUGGER_SW20150314_H
#define DEBUGGER_SW20150314_H
#include "config.h"
#include <setjmp.h>
#include "object.h"
#include "frames.h"

View File

@@ -15,6 +15,7 @@
#ifndef EXECCMD_H
#define EXECCMD_H
#include "config.h"
#include "lists.h"
#include "strings.h"
#include "timestamp.h"

View File

@@ -17,6 +17,7 @@
#ifndef FILESYS_DWA20011025_H
#define FILESYS_DWA20011025_H
#include "config.h"
#include "hash.h"
#include "lists.h"
#include "object.h"

View File

@@ -8,6 +8,7 @@
#ifndef FRAMES_DWA20011021_H
#define FRAMES_DWA20011021_H
#include "config.h"
#include "lists.h"
#include "modules.h"
#include "object.h"

View File

@@ -7,6 +7,7 @@
#ifndef FUNCTION_SW20111123_H
#define FUNCTION_SW20111123_H
#include "config.h"
#include "object.h"
#include "frames.h"
#include "lists.h"

View File

@@ -11,6 +11,7 @@
#ifndef BOOST_JAM_HASH_H
#define BOOST_JAM_HASH_H
#include "config.h"
#include "object.h"
/*

View File

@@ -25,6 +25,8 @@
* @boundname@ timestamp_sec timestamp_nsec @file@ @file@ @file@ ...
*/
#include "config.h"
#ifdef OPT_HEADER_CACHE_EXT
#include "jam.h"

View File

@@ -8,6 +8,7 @@
#ifndef HCACHE_H
#define HCACHE_H
#include "config.h"
#include "lists.h"
#include "regexp.h"
#include "rules.h"

View File

@@ -12,6 +12,7 @@
#ifndef HDRMACRO_SW20111118_H
#define HDRMACRO_SW20111118_H
#include "config.h"
#include "object.h"
#include "rules.h"

View File

@@ -11,6 +11,7 @@
#ifndef HEADERS_SW20111118_H
#define HEADERS_SW20111118_H
#include "config.h"
#include "object.h"
#include "rules.h"
#include "regexp.h"

View File

@@ -18,6 +18,8 @@
#ifndef JAM_H_VP_2003_08_01
#define JAM_H_VP_2003_08_01
#include "config.h"
#ifdef HAVE_PYTHON
#include <Python.h>
#endif

View File

@@ -41,6 +41,7 @@
#ifndef LISTS_DWA20011022_H
#define LISTS_DWA20011022_H
#include "config.h"
#include "object.h"
#ifdef HAVE_PYTHON

View File

@@ -11,6 +11,7 @@
#ifndef MAKE_SW20111118_H
#define MAKE_SW20111118_H
#include "config.h"
#include "lists.h"
#include "object.h"
#include "rules.h"

View File

@@ -8,6 +8,8 @@
#ifndef BJAM_MEM_H
#define BJAM_MEM_H
#include "config.h"
/* Standard C memory allocation. */
#include <stdlib.h>

View File

@@ -6,6 +6,7 @@
#ifndef MODULES_DWA10182001_H
#define MODULES_DWA10182001_H
#include "config.h"
#include "lists.h"
#include "object.h"

View File

@@ -7,6 +7,7 @@
#ifndef NATIVE_H_VP_2003_12_09
#define NATIVE_H_VP_2003_12_09
#include "config.h"
#include "function.h"
#include "frames.h"
#include "lists.h"

View File

@@ -11,6 +11,8 @@
#ifndef BOOST_JAM_OBJECT_H
#define BOOST_JAM_OBJECT_H
#include "config.h"
typedef struct _object OBJECT;
OBJECT * object_new( char const * const );

View File

@@ -11,6 +11,8 @@
* \ -) "Command line option."
*/
#include "config.h"
typedef struct bjam_option
{
char flag; /* filled in by getoption() */

View File

@@ -7,6 +7,7 @@
#ifndef BJAM_OUTPUT_H
#define BJAM_OUTPUT_H
#include "config.h"
#include "object.h"
#include "timestamp.h"

View File

@@ -17,6 +17,7 @@
#ifndef PARSE_DWA20011020_H
#define PARSE_DWA20011020_H
#include "config.h"
#include "frames.h"
#include "lists.h"
#include "modules.h"

View File

@@ -21,6 +21,7 @@
#ifndef PATHSYS_VP_20020211_H
#define PATHSYS_VP_20020211_H
#include "config.h"
#include "object.h"
#include "strings.h"

View File

@@ -7,6 +7,8 @@
#ifndef REGEXP_DWA20011023_H
#define REGEXP_DWA20011023_H
#include "config.h"
#define NSUBEXP 10
typedef struct regexp {
char const * startp[ NSUBEXP ];

View File

@@ -29,6 +29,7 @@
#ifndef RULES_DWA_20011020_H
#define RULES_DWA_20011020_H
#include "config.h"
#include "function.h"
#include "modules.h"
#include "timestamp.h"

View File

@@ -22,6 +22,7 @@
* lists without quoting.
*/
#include "config.h"
#include "lists.h"
#include "object.h"
#include "parse.h"

View File

@@ -11,6 +11,7 @@
#ifndef SEARCH_SW20111118_H
#define SEARCH_SW20111118_H
#include "config.h"
#include "object.h"
#include "timestamp.h"

View File

@@ -8,6 +8,7 @@
#ifndef STRINGS_DWA20011024_H
#define STRINGS_DWA20011024_H
#include "config.h"
#include <stddef.h>
typedef struct string

View File

@@ -6,6 +6,7 @@
#ifndef SUBST_JG20120722_H
#define SUBST_JG20120722_H
#include "config.h"
#include "object.h"
#include "regexp.h"

View File

@@ -11,6 +11,7 @@
#ifndef TIMESTAMP_H_SW_2011_11_18
#define TIMESTAMP_H_SW_2011_11_18
#include "config.h"
#include "object.h"
#ifdef OS_NT

View File

@@ -11,6 +11,7 @@
#ifndef VARIABLE_SW20111119_H
#define VARIABLE_SW20111119_H
#include "config.h"
#include "lists.h"
#include "object.h"