2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-14 12:42:11 +00:00

Support dlls without import library.

This patch makes <suppress-import-lib> property
take effect as telling Boost.Build that no
import lib will be created.

Actually, I think the name is not good enough.
Also, it appears that NOENTRY is orthogonal to
import lib.
This commit is contained in:
bernhard-b
2014-08-04 20:10:12 +02:00
committed by Vladimir Prus
parent 53a33d00b5
commit 82d7b648eb

View File

@@ -1343,7 +1343,10 @@ local rule register-toolset-really ( )
OBJ SEARCHED_LIB STATIC_LIB IMPORT_LIB : EXE : <toolset>msvc ] ;
generators.register [ new msvc-linking-generator msvc.link.dll :
OBJ SEARCHED_LIB STATIC_LIB IMPORT_LIB : SHARED_LIB IMPORT_LIB :
<toolset>msvc ] ;
<toolset>msvc <suppress-import-lib>false ] ;
generators.register [ new msvc-linking-generator msvc.link.dll :
OBJ SEARCHED_LIB STATIC_LIB IMPORT_LIB : SHARED_LIB :
<toolset>msvc <suppress-import-lib>true ] ;
generators.register-archiver msvc.archive : OBJ : STATIC_LIB : <toolset>msvc ;
generators.register-c-compiler msvc.compile.c++ : CPP : OBJ : <toolset>msvc ;
@@ -1458,6 +1461,8 @@ local rule register-toolset-really ( )
toolset.flags msvc.link FINDLIBS_SA <find-shared-library> ;
toolset.flags msvc.link LIBRARY_OPTION <toolset>msvc : "" : unchecked ;
toolset.flags msvc.link LIBRARIES_MENTIONED_BY_FILE : <library-file> ;
toolset.flags msvc.link.dll LINKFLAGS <suppress-import-lib>true : /NOENTRY ;
}
toolset.flags msvc.archive AROPTIONS <archiveflags> ;