Browse Source

dtool depends on dtool_config.h too

David Rose 21 years ago
parent
commit
107d69ef37
2 changed files with 4 additions and 6 deletions
  1. 0 5
      dtool/Sources.pp
  2. 4 1
      dtool/pptempl/Depends.pp

+ 0 - 5
dtool/Sources.pp

@@ -4,8 +4,3 @@
 #define DIR_TYPE toplevel
 
 #define CONFIG_HEADER dtool_config.h
-#define SAMPLE_SOURCE_FILE src/dtoolbase/dtoolbase.cxx
-
-#define EXTRA_DIST \
-    Config.Irix.pp Config.Linux.pp Config.osx.pp Config.Win32.pp Config.Cygwin.pp \
-    LocalSetup.pp Package.pp

+ 4 - 1
dtool/pptempl/Depends.pp

@@ -6,7 +6,10 @@
 // determining build order.
 //
 
-#if $[or $[eq $[DIR_TYPE], src], $[eq $[DIR_TYPE], metalib]]
+#if $[eq $[DIR_TYPE], toplevel]
+  #define DEPENDABLE_HEADERS $[CONFIG_HEADER]
+
+#elif $[or $[eq $[DIR_TYPE], src], $[eq $[DIR_TYPE], metalib]]
 #if $[eq $[DEPEND_DIRS],]
 
   // DEPENDABLE_HEADERS is supposed to be the primary purpose of this