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

Fix, by removing, declare default for user-interface free feature.

Implement flags for user-interface feature in msvc and metrowerks.


[SVN r14748]
This commit is contained in:
Rene Rivera
2002-08-09 03:21:52 +00:00
parent 757cfebf9d
commit 9b0eb0bede
6 changed files with 28 additions and 8 deletions

View File

@@ -20,7 +20,7 @@ feature optimization : off speed space ;
feature inlining : off on full ;
feature debug-symbols : on off : ;
free-feature debug-store : object database ;
free-feature user-interface : console gui ;
free-feature user-interface : console gui ; # windows only, practically
feature wide-character-support : on off ;
feature exception-handling : on off ;
@@ -93,11 +93,9 @@ COMMON_PROPERTIES ?=
<struct-alignment>auto
<eh-model>default
<threading>single
<user-interface>console
<wide-character-support>on
<exception-handling>on
<rtti>on
<user-interface>console
<shared-linkable>false
# Borland link lines will need work to find the right libraries for unicode

View File

@@ -52,6 +52,12 @@ flags metrowerks CFLAGS <inlining>on : -inline on ;
flags metrowerks CFLAGS <inlining>full : -inline auto -inline level=8 ;
flags metrowerks CFLAGS <user-interface>console/<runtime-link>dynamic : -prefix UseDLLPrefix.h ;
flags metrowerks LINKFLAGS <user-interface>console : "-subsystem console" ;
flags metrowerks LINKFLAGS <user-interface>gui : "-subsystem windows" ;
flags metrowerks LINKFLAGS <user-interface>wince : "-subsystem wince" ;
flags metrowerks LINKFLAGS <user-interface>native : "-subsystem native" ;
flags metrowerks LINKFLAGS <user-interface>auto : "-subsystem auto" ;
flags metrowerks CFLAGS <eh-model>msvc : -exc ms ;
if ! $(BOOST_CODEWARRIOR_6)

View File

@@ -104,6 +104,12 @@ flags msvc NEEDLIBS <library-file> ;
flags msvc FINDLIBS <find-library> ;
flags msvc LINKFLAGS <target-type>$(SHARED_TYPES) : /DLL ;
flags msvc LINKFLAGS <user-interface>console : /subsystem:console ;
flags msvc LINKFLAGS <user-interface>gui : /subsystem:windows ;
flags msvc LINKFLAGS <user-interface>wince : /subsystem:windowsce ;
flags msvc LINKFLAGS <user-interface>native : /subsystem:native ;
flags msvc LINKFLAGS <user-interface>auto : /subsystem:posix ;
rule vc-set-pdb-file ( targets + : name )
{
@@ -136,7 +142,7 @@ rule Link-action ( target implib ? : sources + : target-type ? )
actions together vc-Link
{
$(VC_SETUP)
"$(VC_TOOL_PATH)$(VC_LINKER)" /nologo /subsystem:console $(NOINCREMENTAL) $(LINKFLAGS) $(PDB_LINKFLAG)"$(VC_PDB_FILE)" /out:"$(<[1])" /IMPLIB:"$(<[2])" /LIBPATH:"$(LIBPATH)" /LIBPATH:"$(STDLIBPATH)" "$(FINDLIBS:S=.lib)" @"$(>)"
"$(VC_TOOL_PATH)$(VC_LINKER)" /nologo $(NOINCREMENTAL) $(LINKFLAGS) $(PDB_LINKFLAG)"$(VC_PDB_FILE)" /out:"$(<[1])" /IMPLIB:"$(<[2])" /LIBPATH:"$(LIBPATH)" /LIBPATH:"$(STDLIBPATH)" "$(FINDLIBS:S=.lib)" @"$(>)"
}
#### Cc #####

View File

@@ -20,7 +20,7 @@ feature optimization : off speed space ;
feature inlining : off on full ;
feature debug-symbols : on off : ;
free-feature debug-store : object database ;
free-feature user-interface : console gui ;
free-feature user-interface : console gui ; # windows only, practically
feature wide-character-support : on off ;
feature exception-handling : on off ;
@@ -93,11 +93,9 @@ COMMON_PROPERTIES ?=
<struct-alignment>auto
<eh-model>default
<threading>single
<user-interface>console
<wide-character-support>on
<exception-handling>on
<rtti>on
<user-interface>console
<shared-linkable>false
# Borland link lines will need work to find the right libraries for unicode

View File

@@ -52,6 +52,12 @@ flags metrowerks CFLAGS <inlining>on : -inline on ;
flags metrowerks CFLAGS <inlining>full : -inline auto -inline level=8 ;
flags metrowerks CFLAGS <user-interface>console/<runtime-link>dynamic : -prefix UseDLLPrefix.h ;
flags metrowerks LINKFLAGS <user-interface>console : "-subsystem console" ;
flags metrowerks LINKFLAGS <user-interface>gui : "-subsystem windows" ;
flags metrowerks LINKFLAGS <user-interface>wince : "-subsystem wince" ;
flags metrowerks LINKFLAGS <user-interface>native : "-subsystem native" ;
flags metrowerks LINKFLAGS <user-interface>auto : "-subsystem auto" ;
flags metrowerks CFLAGS <eh-model>msvc : -exc ms ;
if ! $(BOOST_CODEWARRIOR_6)

View File

@@ -104,6 +104,12 @@ flags msvc NEEDLIBS <library-file> ;
flags msvc FINDLIBS <find-library> ;
flags msvc LINKFLAGS <target-type>$(SHARED_TYPES) : /DLL ;
flags msvc LINKFLAGS <user-interface>console : /subsystem:console ;
flags msvc LINKFLAGS <user-interface>gui : /subsystem:windows ;
flags msvc LINKFLAGS <user-interface>wince : /subsystem:windowsce ;
flags msvc LINKFLAGS <user-interface>native : /subsystem:native ;
flags msvc LINKFLAGS <user-interface>auto : /subsystem:posix ;
rule vc-set-pdb-file ( targets + : name )
{
@@ -136,7 +142,7 @@ rule Link-action ( target implib ? : sources + : target-type ? )
actions together vc-Link
{
$(VC_SETUP)
"$(VC_TOOL_PATH)$(VC_LINKER)" /nologo /subsystem:console $(NOINCREMENTAL) $(LINKFLAGS) $(PDB_LINKFLAG)"$(VC_PDB_FILE)" /out:"$(<[1])" /IMPLIB:"$(<[2])" /LIBPATH:"$(LIBPATH)" /LIBPATH:"$(STDLIBPATH)" "$(FINDLIBS:S=.lib)" @"$(>)"
"$(VC_TOOL_PATH)$(VC_LINKER)" /nologo $(NOINCREMENTAL) $(LINKFLAGS) $(PDB_LINKFLAG)"$(VC_PDB_FILE)" /out:"$(<[1])" /IMPLIB:"$(<[2])" /LIBPATH:"$(LIBPATH)" /LIBPATH:"$(STDLIBPATH)" "$(FINDLIBS:S=.lib)" @"$(>)"
}
#### Cc #####