Mercurial > pyxpcom
diff xpcom/src/SConscript @ 8:9491ac848af1 default tip
The pyxpcom library now uses @executable_path. Refined the Makefile more.
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Thu, 08 May 2008 11:01:04 -0700 |
parents | 0eae0a3fbffa |
children |
line wrap: on
line diff
--- a/xpcom/src/SConscript Tue May 06 16:37:16 2008 -0700 +++ b/xpcom/src/SConscript Thu May 08 11:01:04 2008 -0700 @@ -1,6 +1,8 @@ +import os + Import("env") -env.SharedLibrary( +pyxpcom = env.SharedLibrary( source=["ErrorUtils.cpp", "PyGBase.cpp", "PyGModule.cpp", @@ -30,6 +32,13 @@ FRAMEWORKS=["Python"] ) +env.AddPostAction( + pyxpcom, + "install_name_tool -id @executable_path/%(libname)s %(lib)s" % + {"libname" : os.path.basename(pyxpcom[0].abspath), + "lib" : pyxpcom[0].abspath} + ) + loaderEnv = env.Copy() loaderEnv.Append(CPPPATH=[Dir(".")],