Permalink
Browse files

Added an scons build file.

  • Loading branch information...
1 parent ab3f196 commit 0a71e6e23ec39158a91bda6204d5e8bf0f1afdd3 @jmkacz committed Jul 3, 2011
Showing with 19 additions and 0 deletions.
  1. +19 −0 helloworld/SConstruct
View
@@ -0,0 +1,19 @@
+import os
+import os.path
+
+env = Environment()
+
+# Populates CPPFLAGS and LIBS.
+#env.ParseConfig("pkg-config --cflags --libs purple")
+env.ParseConfig("pkg-config --cflags purple")
+
+env.Append(CPPFLAGS=["-Wall","-g", "-O2", "-fPIC"])
+
+plugin = env.SharedLibrary(target = "helloworld", source = ["helloworld.c"])
+
+install_pathb = '/usr/lib/pidgin/helloworld.so'
+if not os.access('/usr', os.W_OK):
+ install_path = os.path.expanduser('~/.purple/plugins/helloworld.so')
+env.InstallAs(install_path, plugin)
+env.Alias('install', [install_path])
+

0 comments on commit 0a71e6e

Please sign in to comment.