Check for unistd.h in waf, update cache on (un)install only
This commit is contained in:
parent
8495ffa571
commit
4e5afd5041
1 changed files with 16 additions and 13 deletions
3
wscript
3
wscript
|
@ -39,6 +39,8 @@ def configure (conf):
|
|||
conf.check_pkg ('libxml-2.0', destvar='LIBXML', vnum='2.6', mandatory=True)
|
||||
conf.check_pkg ('libsexy', destvar='LIBSEXY', vnum='0.1', mandatory=True)
|
||||
|
||||
conf.check_header ('unistd.h', 'HAVE_UNISTD_H')
|
||||
|
||||
if conf.find_program ('convert', var='CONVERT'):
|
||||
icons = 'yes'
|
||||
else:
|
||||
|
@ -85,6 +87,7 @@ def build (bld):
|
|||
install_files ('DATADIR', 'applications', 'midori.desktop')
|
||||
|
||||
def shutdown ():
|
||||
if Params.g_commands['install'] or Params.g_commands['uninstall']:
|
||||
dir = Common.path_install ('DATADIR', 'icons/hicolor')
|
||||
icon_cache_updated = False
|
||||
if not Params.g_options.destdir:
|
||||
|
|
Loading…
Reference in a new issue