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_common.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_common.bat')
-rw-r--r-- | tracker-rs/rs_impl/build_common.bat | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tracker-rs/rs_impl/build_common.bat b/tracker-rs/rs_impl/build_common.bat new file mode 100644 index 00000000..bd83fcd0 --- /dev/null +++ b/tracker-rs/rs_impl/build_common.bat @@ -0,0 +1,11 @@ +@echo off
+
+cd /d .\bin\%rs_subdir%
+if %errorlevel% neq 0 exit 1
+
+echo --- %rs_subdir%
+
+call %vs_dir%\vcvarsall %vs_var% && CL /c /GS- /nologo /Ox /DUNICODE /D_UNICODE /MT /I "%RSSDK_DIR%\opensource\include" ..\..\ftnoir_tracker_rs_impl.cpp "%RSSDK_DIR%\opensource\src\libpxc\libpxc.cpp" && lib %rs_objs% /OUT:rs-impl.lib
+
+if %errorlevel% neq 0 exit 1
+exit 0
|