|
|
|
@ -29,11 +29,6 @@ def can_build():
|
|
|
|
print("X11 not found.. x11 disabled.")
|
|
|
|
print("X11 not found.. x11 disabled.")
|
|
|
|
return False
|
|
|
|
return False
|
|
|
|
|
|
|
|
|
|
|
|
ssl_error=os.system("pkg-config openssl --modversion > /dev/null ")
|
|
|
|
|
|
|
|
if (ssl_error):
|
|
|
|
|
|
|
|
print("OpenSSL not found.. x11 disabled.")
|
|
|
|
|
|
|
|
return False
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
x11_error=os.system("pkg-config xcursor --modversion > /dev/null ")
|
|
|
|
x11_error=os.system("pkg-config xcursor --modversion > /dev/null ")
|
|
|
|
if (x11_error):
|
|
|
|
if (x11_error):
|
|
|
|
print("xcursor not found.. x11 disabled.")
|
|
|
|
print("xcursor not found.. x11 disabled.")
|
|
|
|
@ -61,8 +56,9 @@ def get_opts():
|
|
|
|
def get_flags():
|
|
|
|
def get_flags():
|
|
|
|
|
|
|
|
|
|
|
|
return [
|
|
|
|
return [
|
|
|
|
('builtin_zlib', 'no'),
|
|
|
|
('builtin_zlib', 'yes'),
|
|
|
|
("openssl", "yes"),
|
|
|
|
("openssl", "builtin"),
|
|
|
|
|
|
|
|
("freetype", "builtin"),
|
|
|
|
("theora","no"),
|
|
|
|
("theora","no"),
|
|
|
|
]
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
@ -121,18 +117,23 @@ def configure(env):
|
|
|
|
|
|
|
|
|
|
|
|
elif (env["target"]=="debug"):
|
|
|
|
elif (env["target"]=="debug"):
|
|
|
|
|
|
|
|
|
|
|
|
env.Append(CCFLAGS=['-g2', '-Wall','-DDEBUG_ENABLED','-DDEBUG_MEMORY_ENABLED'])
|
|
|
|
env.Append(CCFLAGS=['-g2', '-DDEBUG_ENABLED','-DDEBUG_MEMORY_ENABLED'])
|
|
|
|
|
|
|
|
|
|
|
|
env.ParseConfig('pkg-config x11 --cflags --libs')
|
|
|
|
env.ParseConfig('pkg-config x11 --cflags --libs')
|
|
|
|
env.ParseConfig('pkg-config xinerama --cflags --libs')
|
|
|
|
env.ParseConfig('pkg-config xinerama --cflags --libs')
|
|
|
|
env.ParseConfig('pkg-config xcursor --cflags --libs')
|
|
|
|
env.ParseConfig('pkg-config xcursor --cflags --libs')
|
|
|
|
env.ParseConfig('pkg-config openssl --cflags --libs')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (env["openssl"]=="yes"):
|
|
|
|
|
|
|
|
env.ParseConfig('pkg-config openssl --cflags --libs')
|
|
|
|
|
|
|
|
|
|
|
|
env.ParseConfig('pkg-config freetype2 --cflags --libs')
|
|
|
|
if (env["freetype"]!="no"):
|
|
|
|
env.Append(CCFLAGS=['-DFREETYPE_ENABLED'])
|
|
|
|
env.Append(CCFLAGS=['-DFREETYPE_ENABLED'])
|
|
|
|
|
|
|
|
if (env["freetype"]=="builtin"):
|
|
|
|
|
|
|
|
env.Append(CPPPATH=['#tools/freetype'])
|
|
|
|
|
|
|
|
env.Append(CPPPATH=['#tools/freetype/freetype/include'])
|
|
|
|
|
|
|
|
else:
|
|
|
|
|
|
|
|
env.ParseConfig('pkg-config freetype2 --cflags --libs')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
env.Append(CPPFLAGS=['-DOPENGL_ENABLED','-DGLEW_ENABLED'])
|
|
|
|
env.Append(CPPFLAGS=['-DOPENGL_ENABLED','-DGLEW_ENABLED'])
|
|
|
|
env.Append(CPPFLAGS=["-DALSA_ENABLED"])
|
|
|
|
env.Append(CPPFLAGS=["-DALSA_ENABLED"])
|
|
|
|
|
|
|
|
|
|
|
|
@ -145,17 +146,19 @@ def configure(env):
|
|
|
|
print("PulseAudio development libraries not found, disabling driver")
|
|
|
|
print("PulseAudio development libraries not found, disabling driver")
|
|
|
|
|
|
|
|
|
|
|
|
env.Append(CPPFLAGS=['-DX11_ENABLED','-DUNIX_ENABLED','-DGLES2_ENABLED','-DGLES_OVER_GL'])
|
|
|
|
env.Append(CPPFLAGS=['-DX11_ENABLED','-DUNIX_ENABLED','-DGLES2_ENABLED','-DGLES_OVER_GL'])
|
|
|
|
env.Append(LIBS=['GL', 'GLU', 'pthread','asound','z']) #TODO detect linux/BSD!
|
|
|
|
env.Append(LIBS=['GL', 'pthread', 'asound']) #TODO detect linux/BSD!
|
|
|
|
|
|
|
|
if (env["builtin_zlib"]=="no"):
|
|
|
|
|
|
|
|
env.Append(LIBS=['z'])
|
|
|
|
#env.Append(CPPFLAGS=['-DMPC_FIXED_POINT'])
|
|
|
|
#env.Append(CPPFLAGS=['-DMPC_FIXED_POINT'])
|
|
|
|
|
|
|
|
|
|
|
|
#host compiler is default..
|
|
|
|
#host compiler is default..
|
|
|
|
|
|
|
|
|
|
|
|
if (is64 and env["bits"]=="32"):
|
|
|
|
if (is64 and env["bits"]=="32"):
|
|
|
|
env.Append(CPPFLAGS=['-m32'])
|
|
|
|
env.Append(CPPFLAGS=['-m32'])
|
|
|
|
env.Append(LINKFLAGS=['-m32','-L/usr/lib/i386-linux-gnu'])
|
|
|
|
env.Append(LINKFLAGS=['-m32'])
|
|
|
|
elif (not is64 and env["bits"]=="64"):
|
|
|
|
elif (not is64 and env["bits"]=="64"):
|
|
|
|
env.Append(CPPFLAGS=['-m64'])
|
|
|
|
env.Append(CPPFLAGS=['-m64'])
|
|
|
|
env.Append(LINKFLAGS=['-m64','-L/usr/lib/i686-linux-gnu'])
|
|
|
|
env.Append(LINKFLAGS=['-m64'])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import methods
|
|
|
|
import methods
|
|
|
|
|