@@ -2720,14 +2720,28 @@ def get_config_express():
2720
2720
# otherwise, disable it.
2721
2721
confautoprc = confautoprc .replace ('#st#' , '#' )
2722
2722
2723
- if PkgSkip ("ASSIMP" ):
2723
+ confautoprc = confautoprc .replace ('\r \n ' , '\n ' )
2724
+
2725
+ if PkgSkip ("ASSIMP" ) or GetLinkAllStatic ():
2724
2726
confautoprc = confautoprc .replace ("load-file-type p3assimp" , "#load-file-type p3assimp" )
2725
2727
2728
+ if PkgSkip ("EGG" ) or GetLinkAllStatic ():
2729
+ confautoprc = confautoprc .replace ("load-file-type egg pandaegg" , "#load-file-type egg pandaegg" )
2730
+
2731
+ if PkgSkip ("PANDATOOL" ) or PkgSkip ("EGG" ) or GetLinkAllStatic ():
2732
+ confautoprc = confautoprc .replace ("load-file-type p3ptloader" , "#load-file-type p3ptloader" )
2733
+
2734
+ if PkgSkip ("FFMPEG" ) or GetLinkAllStatic ():
2735
+ confautoprc = confautoprc .replace ("load-audio-type * p3ffmpeg" , "#load-audio-type * p3ffmpeg" )
2736
+ confautoprc = confautoprc .replace ("load-video-type * p3ffmpeg" , "#load-video-type * p3ffmpeg" )
2737
+
2726
2738
if (os .path .isfile ("makepanda/myconfig.in" )):
2727
2739
configprc = ReadFile ("makepanda/myconfig.in" )
2728
2740
else :
2729
2741
configprc = ReadFile ("makepanda/config.in" )
2730
2742
2743
+ configprc = configprc .replace ('\r \n ' , '\n ' )
2744
+
2731
2745
if (GetTarget () == 'windows' ):
2732
2746
configprc = configprc .replace ("$XDG_CACHE_HOME/panda3d" , "$USER_APPDATA/Panda3D-%s" % MAJOR_VERSION )
2733
2747
else :
@@ -2736,6 +2750,21 @@ def get_config_express():
2736
2750
if (GetTarget () == 'darwin' ):
2737
2751
configprc = configprc .replace ("$XDG_CACHE_HOME/panda3d" , "$HOME/Library/Caches/Panda3D-%s" % MAJOR_VERSION )
2738
2752
2753
+ if PkgSkip ("GL" ) or GetLinkAllStatic ():
2754
+ configprc = configprc .replace ("\n load-display pandagl" , "\n #load-display pandagl" )
2755
+
2756
+ if PkgSkip ("GLES" ) or GetLinkAllStatic ():
2757
+ configprc = configprc .replace ("\n #load-display pandagles" , "" )
2758
+
2759
+ if PkgSkip ("DX9" ) or GetLinkAllStatic ():
2760
+ configprc = configprc .replace ("\n #load-display pandadx9" , "" )
2761
+
2762
+ if PkgSkip ("TINYDISPLAY" ) or GetLinkAllStatic ():
2763
+ configprc = configprc .replace ("\n #load-display p3tinydisplay" , "" )
2764
+
2765
+ if PkgSkip ("OPENAL" ) or GetLinkAllStatic ():
2766
+ configprc = configprc .replace ("audio-library-name p3openal_audio" , "#audio-library-name p3openal_audio" )
2767
+
2739
2768
if GetTarget () == 'windows' :
2740
2769
# Convert to Windows newlines.
2741
2770
ConditionalWriteFile (GetOutputDir ()+ "/etc/Config.prc" , configprc , newline = '\r \n ' )
0 commit comments