I've chosen to include all Joomla constants from  gae/joomla/defines.php, still not sure if any of these is a good approach.
Perhaps the cms would benefit from having `defined('XYZ') or define('XYZ', 'somthing')` for each of these constants. Dunno