diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-07-07 15:44:20 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-07-07 15:44:20 +0200 |
commit | f98dcfc2360302753f9a8bf66ee8ccfe4366f0e7 (patch) | |
tree | a068abf3a21781f0a6450fc0fabdc606c1a4ddfb /tracker-rs/rs_impl/build_wrapped.bat | |
parent | 5f5ca66c58ad30d0c218b2da904aa3f722e18ebe (diff) |
tracker/rs: use static linkage
There's no reason not to link statically the impl library.
As suggested by @ph0b, use subdirs for each arch. This helps with object
file clobber.
Diffstat (limited to 'tracker-rs/rs_impl/build_wrapped.bat')
-rw-r--r-- | tracker-rs/rs_impl/build_wrapped.bat | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/tracker-rs/rs_impl/build_wrapped.bat b/tracker-rs/rs_impl/build_wrapped.bat index 2f547e95..7a67c7b8 100644 --- a/tracker-rs/rs_impl/build_wrapped.bat +++ b/tracker-rs/rs_impl/build_wrapped.bat @@ -1,4 +1,6 @@ -@IF DEFINED VS150COMNTOOLS ( +@echo off + +IF DEFINED VS150COMNTOOLS ( set vs_dir="%VS150COMNTOOLS%\..\..\VC" set vs_64=x86_amd64 ) ELSE ( @@ -6,5 +8,16 @@ set vs_64=amd64 ) -cmd /c %~dp0\build_x86.bat -cmd /c %~dp0\build_amd64.bat
\ No newline at end of file + +cd /d "%~dp0" +if %errorlevel% neq 0 exit 1 + +set rs_objs=ftnoir_tracker_rs_impl.obj libpxc.obj + +set rs_subdir=ia32 +set vs_var=x86 +cmd /c "call .\build_common.bat" + +set rs_subdir=amd64 +set vs_var=%vs_64% +cmd /c "call .\build_common.bat" |