Add <contrib-lib> bakefile tag. Like <wx-lib> except that in VC++ '.dsw' files
it creates a dependency on a '.dsp' file under contrib instead of under lib. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35151 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -35,4 +35,16 @@
|
||||
<srcdir>$(CONTRIB_HDR_DIR)</srcdir>
|
||||
<install-to>$(INCLUDEDIR)/wx-$(WX_RELEASE)$(WX_FLAVOUR)</install-to>
|
||||
</template>
|
||||
|
||||
<!-- Link against one contrib library. Value must be literal! -->
|
||||
<define-tag name="contrib-lib" rules="exe,dll,module">
|
||||
<sys-lib>$(wxwin.libToLink(value))</sys-lib>
|
||||
<ldlibs>$(wxwin.extraLdflags(value))</ldlibs>
|
||||
<if cond="IS_MSVC_PRJ=='1' and MONOLITHIC=='0'">
|
||||
<depends-on-dsp>
|
||||
$(wxwin.makeContribDspDependency(value))
|
||||
</depends-on-dsp>
|
||||
</if>
|
||||
</define-tag>
|
||||
|
||||
</makefile>
|
||||
|
@@ -151,3 +151,7 @@ def headersOnly(files):
|
||||
def makeDspDependency(lib):
|
||||
"""Returns suitable entry for <depends-on-dsp> for main libs."""
|
||||
return '%s:$(nativePaths(WXTOPDIR))build\\msw\\wx_%s.dsp' % (lib,lib)
|
||||
|
||||
def makeContribDspDependency(lib):
|
||||
"""Returns suitable entry for <depends-on-dsp> for contrib libs."""
|
||||
return '%s:$(nativePaths(WXTOPDIR))contrib\\build\\%s\\%s.dsp' % (lib,lib,lib)
|
||||
|
Reference in New Issue
Block a user