diff options
author | Michael Bien <[email protected]> | 2010-05-08 21:38:25 +0200 |
---|---|---|
committer | Michael Bien <[email protected]> | 2010-05-08 21:38:25 +0200 |
commit | c3871d2b3c7b71e2695ccd8302870a541d415f7c (patch) | |
tree | 58cc1f8a975d8ec8a4d4a2cc016604ccd704af43 /build.xml | |
parent | 0d8576e6ece2f450c636eebc8d65f227daf9999b (diff) |
started with dynamic-binding-only build option.
added user.libpath property for user specified library linking.
Diffstat (limited to 'build.xml')
-rw-r--r-- | build.xml | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -113,7 +113,7 @@ <mkdir dir="${obj.jocl.dir}/${namespace}" /> <mkdir dir="${natives.jocl.dir}/${namespace}" /> - + <cc outtype="shared" objdir="${obj.jocl.dir}/${namespace}" outfile="${natives.jocl.dir}/${namespace}/${output.lib.name}" @@ -170,17 +170,18 @@ <target name="jocl.configure.linker"> <linker id="linker.cfg.linux.jocl" extends="linker.cfg.linux"> - <syslibset dir="/usr/lib" libs="OpenCL"/> + <syslibset dir="/usr/lib" libs="OpenCL" if="static.binding" unless="user.libpath"/> + <syslibset dir="${user.libpath}" libs="OpenCL" if="user.libpath"/> </linker> <linker id="linker.cfg.linux.amd64.jocl" extends="linker.cfg.linux.amd64" > - <syslibset dir="/usr/lib" libs="OpenCL"/> + <syslibset dir="/usr/lib" libs="OpenCL" if="static.binding" unless="user.libpath"/> + <syslibset dir="${user.libpath}" libs="OpenCL" if="user.libpath"/> </linker> <linker id="linker.cfg.win32.mingw.jocl" extends="linker.cfg.win32.mingw"> <linkerarg value="-Wl,--kill-at" /> <!-- remove @ from function names --> - <syslibset dir="C:/Program Files (x86)/ATI Stream/lib/x86" libs="OpenCL"/> - <!-- <syslibset dir="C:/NVIDIAComputingSDK/OpenCL/common/lib/Win32" libs="OpenCL"/> --> + <syslibset dir="${user.libpath}" libs="OpenCL" if="static.binding"/> </linker> <linker id="linker.cfg.macosx.jocl" extends="linker.cfg.macosx"> |