Created
April 3, 2011 17:52
-
-
Save hank/900615 to your computer and use it in GitHub Desktop.
Builds a LXPanel plugin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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