Browse Source

use underscores instead of dots in platform separators

David Rose 16 years ago
parent
commit
7f4481ef2d
2 changed files with 11 additions and 8 deletions
  1. 1 0
      dtool/LocalSetup.pp
  2. 10 8
      dtool/src/dtoolbase/dtool_platform.h

+ 1 - 0
dtool/LocalSetup.pp

@@ -687,5 +687,6 @@ $[cdefine IS_LINUX]
 $[cdefine IS_FREEBSD]
 $[cdefine BUILD_IPHONE]
 $[cdefine DTOOL_PLATFORM]
+$[cdefine UNIVERSAL_BINARIES]
 
 #end dtool_config.h

+ 10 - 8
dtool/src/dtoolbase/dtool_platform.h

@@ -34,30 +34,32 @@
 #elif defined(__APPLE__)
 #if defined(BUILD_IPHONE)
 #define DTOOL_PLATFORM "iphone"
+#elif defined(UNIVERSAL_BINARIES)
+#define DTOOL_PLATFORM "osx"
 #elif defined(__ppc__)
-#define DTOOL_PLATFORM "osx.ppc"
+#define DTOOL_PLATFORM "osx_ppc"
 #else
-#define DTOOL_PLATFORM "osx.i386"
+#define DTOOL_PLATFORM "osx_i386"
 #endif
 
 #elif defined(__FreeBSD__)
 #if defined(__x86_64)
-#define DTOOL_PLATFORM "freebsd.amd64"
+#define DTOOL_PLATFORM "freebsd_amd64"
 #else
-#define DTOOL_PLATFORM "freebsd.i386"
+#define DTOOL_PLATFORM "freebsd_i386"
 #endif
 
 #elif defined(__x86_64)
-#define DTOOL_PLATFORM "linux.amd64"
+#define DTOOL_PLATFORM "linux_amd64"
 
 #elif defined(__i386)
-#define DTOOL_PLATFORM "linux.i386"
+#define DTOOL_PLATFORM "linux_i386"
 
 #elif defined(__arm__)
-#define DTOOL_PLATFORM "linux.arm"
+#define DTOOL_PLATFORM "linux_arm"
 
 #elif defined(__ppc__)
-#define DTOOL_PLATFORM "linux.ppc"
+#define DTOOL_PLATFORM "linux_ppc"
 
 #else
 #error "Can't determine platform; please define DTOOL_PLATFORM in Config.pp file."