SF.net SVN: geany-plugins:[282] trunk/wscript

eht16 at users.sourceforge.net eht16 at xxxxx
Tue Nov 4 19:52:21 UTC 2008


Revision: 282
          http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=282&view=rev
Author:   eht16
Date:     2008-11-04 19:52:21 +0000 (Tue, 04 Nov 2008)

Log Message:
-----------
Add support for building the 'ttyhelper' binary for the geanydebug plugin.
Add a 'PREFIX' macro to the config.h files for each plugin.

Modified Paths:
--------------
    trunk/wscript

Modified: trunk/wscript
===================================================================
--- trunk/wscript	2008-11-03 19:02:02 UTC (rev 281)
+++ trunk/wscript	2008-11-04 19:52:21 UTC (rev 282)
@@ -206,6 +206,7 @@
 			conf.define('VERSION', p.version, 1)
 			conf.define('PACKAGE', p.name, 1)
 			conf.define('GETTEXT_PACKAGE', p.name, 1)
+			conf.define('PREFIX', conf.env['PREFIX'], 1)
 			conf.write_config_header(os.path.join(p.name, 'config.h'))
 
 	Utils.pprint('BLUE', 'Summary:')
@@ -261,6 +262,9 @@
 		if p.name == 'geanylua':
 			build_lua(bld, p, libs) # build additional lib for the lua plugin
 
+		if p.name == 'geanydebug':
+			build_debug(bld, p, libs) # build additional binary for the debug plugin
+
 		obj					        = bld.new_task_gen('cc', 'shlib')
 		obj.source			        = p.sources
 		obj.includes				= p.includes
@@ -292,7 +296,14 @@
 	obj.install_path			= '${DATADIR}/geany/plugins/geanylua'
 
 
+def build_debug(bld, p, libs):
+	obj					        = bld.new_task_gen('cc', 'program')
+	obj.source			        = [ 'geanydebug/src/ttyhelper.c' ]
+	obj.includes				= p.includes
+	obj.target			        = 'geanydebug_ttyhelper'
+	obj.uselib		            = libs
 
+
 def init():
 	if Options.options.list_plugins:
 		Utils.pprint('GREEN', \


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Plugins-Commits mailing list