Browse Source

*** empty log message ***

David Rose 25 years ago
parent
commit
26650d16eb

+ 23 - 12
dtool/Config.pp

@@ -163,6 +163,29 @@
 #define MIKMOD_CONFIG libmikmod-config
 #define MIKMOD_CONFIG libmikmod-config
 #defer HAVE_MIKMOD $[bintest $[MIKMOD_CONFIG]]
 #defer HAVE_MIKMOD $[bintest $[MIKMOD_CONFIG]]
 
 
+// Do you want to build the network interface?  What additional libraries
+// are required?
+#define NET_IPATH
+#define NET_LPATH
+#if $[eq $[PLATFORM],Win32]
+  #define NET_LIBS ws2_32.lib
+#else
+  #define NET_LIBS
+#endif
+#define HAVE_NET 1
+
+// Do you want to build the audio interface?  What additional
+// libraries are required?
+#define AUDIO_IPATH
+#define AUDIO_LPATH
+#if $[eq $[PLATFORM],Win32]
+  #define AUDIO_LIBS winmm.lib dsound.lib user32.lib ole32.lib dxguid.lib
+#else
+  #define AUDIO_LIBS
+#endif
+#define HAVE_AUDIO 1
+
+
 // Is Gtk-- installed?  How should we run the gtkmm-config program?
 // Is Gtk-- installed?  How should we run the gtkmm-config program?
 // This matters only to programs in PANDATOOL.
 // This matters only to programs in PANDATOOL.
 #define GTKMM_CONFIG gtkmm-config
 #define GTKMM_CONFIG gtkmm-config
@@ -172,18 +195,6 @@
 #define MAYA_LOCATION /usr/aw/maya2.5
 #define MAYA_LOCATION /usr/aw/maya2.5
 #defer HAVE_MAYA $[isdir $[MAYA_LOCATION]]
 #defer HAVE_MAYA $[isdir $[MAYA_LOCATION]]
 
 
-// What additional libraries must we link with for network-dependent
-// code?
-#if $[eq $[PLATFORM],Win32]
-  #define NET_LIBS ws2_32.lib
-#endif
-
-// What additional libraries must we link with for audio-dependent
-// code?
-#if $[eq $[PLATFORM],Win32]
-  #define AUDIO_LIBS winmm.lib dsound.lib user32.lib ole32.lib dxguid.lib
-#endif
-
 
 
 //////////////////////////////////////////////////////////////////////
 //////////////////////////////////////////////////////////////////////
 // There are also some additional variables that control specific
 // There are also some additional variables that control specific

+ 14 - 0
dtool/LocalSetup.pp

@@ -121,6 +121,20 @@ $[define] HAVE_MIKMOD 1
 $[undef] HAVE_MIKMOD
 $[undef] HAVE_MIKMOD
 #endif
 #endif
 
 
+/* Define if we want to compile the net code.  */
+#if $[HAVE_NET]
+$[define] HAVE_NET 1
+#else
+$[undef] HAVE_NET
+#endif
+
+/* Define if we want to compile the audio code.  */
+#if $[HAVE_AUDIO]
+$[define] HAVE_AUDIO 1
+#else
+$[undef] HAVE_AUDIO
+#endif
+
 /* Define if we have a gettimeofday() function. */
 /* Define if we have a gettimeofday() function. */
 #if $[HAVE_GETTIMEOFDAY]
 #if $[HAVE_GETTIMEOFDAY]
 $[define] HAVE_GETTIMEOFDAY 1
 $[define] HAVE_GETTIMEOFDAY 1

+ 2 - 0
dtool/Package.pp

@@ -52,6 +52,8 @@
 #set HAVE_DX $[HAVE_DX]
 #set HAVE_DX $[HAVE_DX]
 #set HAVE_RIB $[HAVE_RIB]
 #set HAVE_RIB $[HAVE_RIB]
 #set HAVE_MIKMOD $[HAVE_MIKMOD]
 #set HAVE_MIKMOD $[HAVE_MIKMOD]
+#set HAVE_NET $[HAVE_NET]
+#set HAVE_AUDIO $[HAVE_AUDIO]
 #set HAVE_GTKMM $[HAVE_GTKMM]
 #set HAVE_GTKMM $[HAVE_GTKMM]
 #set HAVE_MAYA $[HAVE_MAYA]
 #set HAVE_MAYA $[HAVE_MAYA]
 
 

+ 1 - 0
panda/src/audio/Sources.pp

@@ -1,4 +1,5 @@
 #define OTHER_LIBS dtool
 #define OTHER_LIBS dtool
+#define DIRECTORY_IF_AUDIO yes
 
 
 #begin lib_target
 #begin lib_target
   #define USE_AUDIO yes
   #define USE_AUDIO yes

+ 1 - 0
panda/src/audiotraits/Sources.pp

@@ -1,4 +1,5 @@
 #define OTHER_LIBS dtool
 #define OTHER_LIBS dtool
+#define DIRECTORY_IF_AUDIO yes
 
 
 #begin lib_target
 #begin lib_target
   #define TARGET audio_load_midi
   #define TARGET audio_load_midi

+ 2 - 0
panda/src/net/Sources.pp

@@ -1,4 +1,6 @@
 #define OTHER_LIBS interrogatedb:c dconfig:c dtoolutil:c dtoolbase:c dtool:m
 #define OTHER_LIBS interrogatedb:c dconfig:c dtoolutil:c dtoolbase:c dtool:m
+#define DIRECTORY_IF_NET yes
+#define USE_NET yes
 
 
 #begin lib_target
 #begin lib_target
   #define TARGET net
   #define TARGET net