Add Raspberry Pi automatic environment setup

Patch by derhass.

Requested at
<http://www.dxx-rebirth.com/frm/index.php/topic,1048.msg17426/topicseen.html#msg17426>.
This commit is contained in:
Kp 2013-05-03 22:52:57 +00:00
parent d268169eb0
commit ace1902ef7

View file

@ -237,6 +237,17 @@ class DXXCommon:
if( self.user_settings.use_tracker == 1 ):
env.Append( CPPDEFINES = [ 'USE_TRACKER' ] )
# Raspberry Pi?
if (self.user_settings.raspberrypi == 1):
print "using Raspberry Pi vendor libs in %s" % self.user_settings.rpi_vc_path
env.Append(CPPDEFINES = ['RPI', 'WORDS_NEED_ALIGNMENT'])
env.Append(CPPPATH = [
self.user_settings.rpi_vc_path+'/include',
self.user_settings.rpi_vc_path+'/include/interface/vcos/pthreads',
self.user_settings.rpi_vc_path+'/include/interface/vmcs_host/linux'])
self.platform_settings.lflags += ' -L' + self.user_settings.rpi_vc_path + '/lib'
self.platform_settings.libs += ['bcm_host']
class DXXProgram(DXXCommon):
# version number
VERSION_MAJOR = 0