[haiku-development] HAIKU_DEFINES TARGET_DEFINES ... what's the difference?

  • From: Matt Madia <mattmadia@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Sun, 25 Jul 2010 19:45:06 +0000

I'm looking at implementing if-else conditionals in AboutSystem &
Installer's rdefs.

What's difference between HAIKU_DEFINES and TARGET_DEFINES?

In ReleaseBuildProfiles, both are modified
---
#HAIKU_DEFINES += HAIKU_OFFICIAL_RELEASE ;
#TARGET_DEFINES += HAIKU_OFFICIAL_RELEASE ;

Though in BuildSetup, only HAIKU_DEFINES are modified
---
 switch $(HAIKU_DISTRO_COMPATIBILITY) {
      case official   : HAIKU_DEFINES += HAIKU_DISTRO_COMPATIBILITY_OFFICIAL ;
      case compatible : HAIKU_DEFINES += HAIKU_DISTRO_COMPATIBILITY_COMPATIBLE ;
      case "default"  : HAIKU_DEFINES += HAIKU_DISTRO_COMPATIBILITY_DEFAULT ;

Would it be worthwhile to modify both in that section?

--mmadia

Other related posts: