Skip to content

Instantly share code, notes, and snippets.

@hank
Created April 3, 2011 17:52
Show Gist options
  • Select an option

  • Save hank/900615 to your computer and use it in GitHub Desktop.

Select an option

Save hank/900615 to your computer and use it in GitHub Desktop.
Builds a LXPanel plugin
env = Environment(
LIBPREFIX = "",
)
# Grab all the pkg-config stuff.
env.ParseConfig('pkg-config --cflags --libs gtk+-2.0')
conf = Configure(env)
if not conf.CheckLib("cairo"):
print 'Could not find cairo library.'
Exit(1)
conf.Finish()
plugin = env.SharedLibrary('example.c')
env.Install('/usr/lib/lxpanel/plugins', plugin)
env.Alias('install', '/usr/lib/lxpanel/plugins')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment