Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

51 lines (44 sloc) 1.748 kB
# -*- coding: utf-8 -*-
#
# WAF build script for geany-plugins - GeanyLUA
#
# Copyright 2010 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
# $Id$
from waflib.Errors import ConfigurationError
from build.wafutils import check_cfg_cached
package_names = ['lua', 'lua5.1', 'lua51', 'lua-5.1']
def try_to_find_lua_package():
# try various package names as distributions like to use different ones
for package_name in package_names:
check_cfg_cached(conf,
package=package_name,
atleast_version='5.1',
mandatory=False,
uselib_store='LUA',
args='--cflags --libs')
if conf.env['HAVE_LUA'] == 1:
return True
return False
found_lua_package = try_to_find_lua_package()
if not found_lua_package:
raise ConfigurationError('You need Lua 5.1 for the GeanyLua plugin')
check_cfg_cached(conf,
package='gmodule-2.0',
mandatory=True,
uselib_store='GMODULE',
args='--cflags --libs')
Jump to Line
Something went wrong with that request. Please try again.