]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed DSW dependencies for samples
authorVáclav Slavík <vslavik@fastmail.fm>
Thu, 14 Aug 2003 16:18:41 +0000 (16:18 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Thu, 14 Aug 2003 16:18:41 +0000 (16:18 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22866 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

build/bakefiles/common.bkl
build/bakefiles/wxwin.py

index 7aba0ab1dcc5721eca229af52ce7d9cd3e03ac74..1edb1ad4f327c9d949cd2cf14029b3bd2c80022c 100644 (file)
@@ -462,10 +462,8 @@ $(TAB)copy "$(DOLLAR)(InputPath)" $(LIBDIRNAME)\wx\setup.h
     <!-- Link against one wxWin library. Value must be literal! -->
     <define-tag name="wx-lib" rules="exe,dll,module">
         <sys-lib>$(wxwin.libToLink(value))</sys-lib>
-        <if cond="FORMAT=='msvc6prj'">
-            <depends-on-dsp>
-                $(value):$(nativePaths(WXTOPDIR))build\msw\wx_$(value).dsp
-            </depends-on-dsp>
+        <if cond="FORMAT=='msvc6prj' and MONOLITHIC=='0'">
+            <depends-on-dsp>$(wxwin.makeDspDependency(value))</depends-on-dsp>
         </if>
     </define-tag>
 
index bf8b2cd09214f152444f61dce71ca3889188d975..3423c64a8b5c1b3ed2d86a35d9d62f25e38bf9dc 100644 (file)
@@ -125,3 +125,22 @@ def headersOnly(files):
                 retval.append(s)
         return '%s%s%s' % (prf, ' '.join(retval), suf)
     return utils.substitute2(files, callback)
+
+
+def makeDspDependency(lib):
+    """Returns suitable entry for <depends-on-dsp> for main libs."""
+
+    DEPS_TABLE = {
+        'core':'base',
+        'adv':'core',
+        'html':'core',
+        'xml':'base',
+        'net':'base',
+        'odbc':'base',
+        'dbgrid':'adv,odbc',
+    }
+    if lib in DEPS_TABLE:
+        deps = ':%s' % DEPS_TABLE[lib]
+    else:
+        deps = ''
+    return '%s:$(nativePaths(WXTOPDIR))build\msw\wx_%s.dsp%s' % (lib,lib,deps)