소스 검색

disable building mpg123 conditionally

cxgeorge 24 년 전
부모
커밋
3c2e1c7b91
3개의 변경된 파일10개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      dtool/Config.pp
  2. 5 0
      dtool/pptempl/Global.pp
  3. 2 0
      panda/src/mpg123/Sources.pp

+ 3 - 0
dtool/Config.pp

@@ -322,6 +322,9 @@
 #define RAD_MSS_LIBS Mss32
 #defer HAVE_RAD_MSS $[libtest $[RAD_MSS_LPATH],$[RAD_MSS_LIBS]]
 
+// Is Panda using the mpg123 library to play mp3, requiring it be built?
+#define USE_MPG123 1
+
 // Is Gtk-- installed?  How should we run the gtkmm-config program?
 // This matters only to programs in PANDATOOL.
 #define GTKMM_CONFIG gtkmm-config

+ 5 - 0
dtool/pptempl/Global.pp

@@ -208,6 +208,9 @@
      #define AUDIO_IPATH $[RAD_MSS_IPATH]
      #define AUDIO_LPATH $[RAD_MSS_LPATH]
      #define AUDIO_LIBS $[RAD_MSS_LIBS]
+     
+     // Miles will play mp3, so we dont need the mpg123 lib
+     #define USE_MPG123 
 #endif   
 
 #if $[HAVE_AUDIO]
@@ -243,6 +246,7 @@
      $[or $[not $[DIRECTORY_IF_IPC]],$[HAVE_IPC]], \
      $[or $[not $[DIRECTORY_IF_NET]],$[HAVE_NET]], \
      $[or $[not $[DIRECTORY_IF_AUDIO]],$[HAVE_AUDIO]], \
+     $[or $[not $[DIRECTORY_IF_MPG123]],$[USE_MPG123]], \
      $[or $[not $[DIRECTORY_IF_INTERROGATE]],$[HAVE_INTERROGATE]], \
       1 ]
 
@@ -273,6 +277,7 @@
      $[or $[not $[TARGET_IF_IPC]],$[HAVE_IPC]], \
      $[or $[not $[TARGET_IF_NET]],$[HAVE_NET]], \
      $[or $[not $[TARGET_IF_AUDIO]],$[HAVE_AUDIO]], \
+     $[or $[not $[TARGET_IF_MPG123]],$[USE_MPG123]], \
       1 ]
 
 // This takes advantage of the above two variables to get the actual

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

@@ -1,3 +1,5 @@
+#define DIRECTORY_IF_MPG123 yes
+
 #begin static_lib_target
   #define TARGET mpg123
   #define SOURCES \