X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=wscript;h=c8337253c23e1dd0cf6f2bd2b463b3c70362e036;hb=d801f4f01fba5c922829c2068c07364c58ae879e;hp=2af20956897275b58aaa4be70bc7e2d35414e2c7;hpb=61b3d190b7d826f712bbd79fbcf14ff9cf322e4b;p=dcpomatic.git diff --git a/wscript b/wscript index 2af209568..c8337253c 100644 --- a/wscript +++ b/wscript @@ -3,7 +3,7 @@ import os import sys APPNAME = 'dcpomatic' -VERSION = '1.25pre' +VERSION = '1.31pre' def options(opt): opt.load('compiler_cxx') @@ -51,11 +51,12 @@ def configure(conf): if conf.options.enable_debug: conf.env.append_value('CXXFLAGS', ['-mconsole']) conf.env.append_value('LINKFLAGS', ['-mconsole']) - conf.check(lib = 'ws2_32', uselib_store = 'WINSOCK2', msg = "Checking for library winsock2") - conf.check(lib = 'bfd', uselib_store = 'BFD', msg = "Checking for library bfd") - conf.check(lib = 'dbghelp', uselib_store = 'DBGHELP', msg = "Checking for library dbghelp") - conf.check(lib = 'iberty', uselib_store = 'IBERTY', msg = "Checking for library iberty") - conf.check(lib = 'shlwapi', uselib_store = 'SHLWAPI', msg = "Checking for library shlwapi") + conf.check(lib='ws2_32', uselib_store='WINSOCK2', msg="Checking for library winsock2") + conf.check(lib='bfd', uselib_store='BFD', msg="Checking for library bfd") + conf.check(lib='dbghelp', uselib_store='DBGHELP', msg="Checking for library dbghelp") + conf.check(lib='iberty', uselib_store='IBERTY', msg="Checking for library iberty") + conf.check(lib='shlwapi', uselib_store='SHLWAPI', msg="Checking for library shlwapi") + conf.check(lib='mswsock', uselib_store='MSWSOCK', msg="Checking for library mswsock") boost_lib_suffix = '-mt' boost_thread = 'boost_thread_win32-mt' @@ -73,11 +74,12 @@ def configure(conf): conf.env.append_value('CXXFLAGS', '-DDCPOMATIC_LINUX') # libxml2 seems to be linked against this on Ubuntu but it doesn't mention it in its .pc file conf.check_cfg(package='liblzma', args='--cflags --libs', uselib_store='LZMA', mandatory=True) - if conf.env.STATIC: - conf.check_cfg(package='gtk+-2.0', args='--cflags --libs', uselib_store='GTK', mandatory=True) - else: - # On Linux we need to be able to include to check GTK's version - conf.check_cfg(package='gtk+-2.0', args='--cflags', uselib_store='GTK', mandatory=True) + if not conf.env.DISABLE_GUI: + if conf.env.STATIC: + conf.check_cfg(package='gtk+-2.0', args='--cflags --libs', uselib_store='GTK', mandatory=True) + else: + # On Linux we need to be able to include to check GTK's version + conf.check_cfg(package='gtk+-2.0', args='--cflags', uselib_store='GTK', mandatory=True) # OSX-specific if conf.env.TARGET_OSX: