[openrtm-commit:01670] r2691 - in trunk/OpenRTM-aist: build win32/OpenRTM-aist
openrtm @ openrtm.org
openrtm @ openrtm.org
2016年 1月 8日 (金) 13:51:03 JST
Author: kawauchi
Date: 2016-01-08 13:51:03 +0900 (Fri, 08 Jan 2016)
New Revision: 2691
Modified:
trunk/OpenRTM-aist/build/cmakeconfgen.py
trunk/OpenRTM-aist/win32/OpenRTM-aist/build.bat.in
trunk/OpenRTM-aist/win32/OpenRTM-aist/rtm_config.vsprops
Log:
[compat, ->RELENG_1_1] Issue of r2678 has been modified. refs #3312
Modified: trunk/OpenRTM-aist/build/cmakeconfgen.py
===================================================================
--- trunk/OpenRTM-aist/build/cmakeconfgen.py 2015-12-28 08:52:51 UTC (rev 2690)
+++ trunk/OpenRTM-aist/build/cmakeconfgen.py 2016-01-08 04:51:03 UTC (rev 2691)
@@ -112,13 +112,9 @@
MESSAGE(STATUS "VC version is : ${CMAKE_GENERATOR} (${CMAKE_BITNESS}bit)")
if ("${CMAKE_BITNESS}" STREQUAL "32")
- if ($ENV{PROCESSOR_ARCHITECTURE} STREQUAL "x86")
- set(OPENRTM_DIR "C:/Program Files/OpenRTM-aist/${OPENRTM_VERSION}_${RTM_VC_VER}")
- else()
- set(OPENRTM_DIR "C:/Program Files (x86)/OpenRTM-aist/${OPENRTM_VERSION}_${RTM_VC_VER}")
- endif()
+ set(OPENRTM_DIR "$ENV{ProgramFiles}/OpenRTM-aist/${OPENRTM_VERSION}_${RTM_VC_VER}")
else()
- set(OPENRTM_DIR "C:/Program Files/OpenRTM-aist/${OPENRTM_VERSION}_${RTM_VC_VER}")
+ set(OPENRTM_DIR "$ENV{ProgramW6432}/OpenRTM-aist/${OPENRTM_VERSION}_${RTM_VC_VER}")
endif()
string(REGEX REPLACE "/$" "" OPENRTM_DIR "${OPENRTM_DIR}")
@@ -164,6 +160,9 @@
set(OPENRTM_IDLC [openrtm_idlc])
set(OPENRTM_IDLFLAGS [openrtm_idlflags])
+# OpenCV setting
+set(ENV{OpenCV_DIR} "${OPENRTM_DIR}")
+
message(STATUS "OpenRTM-aist configuration done")
message(STATUS " OMNIORB_DIR=${OMNIORB_DIR}")
@@ -190,6 +189,8 @@
message(STATUS " OPENRTM_IDL_WRAPPER=${OPENRTM_IDL_WRAPPER}")
message(STATUS " OPENRTM_IDL_WRAPPER_FLAGS=${OPENRTM_IDL_WRAPPER_FLAGS}")
+message(STATUS " OpenCV_DIR=$ENV{OpenCV_DIR}")
+
# end of OpenRTMConfig.cmake
"""
@@ -233,9 +234,11 @@
"COIL_DLLVER",
"COIL_VERSION",
"COIL_SHORTVER",
+ "COIL_DLL_SHORTVER",
"RTM_DLLVER",
"RTM_VERSION",
"RTM_SHORTVER",
+ "RTM_DLL_SHORTVER",
"OMNI_DLLVER",
"OMNI_VERSION",
"OMNI_SHORTVER",
Modified: trunk/OpenRTM-aist/win32/OpenRTM-aist/build.bat.in
===================================================================
--- trunk/OpenRTM-aist/win32/OpenRTM-aist/build.bat.in 2015-12-28 08:52:51 UTC (rev 2690)
+++ trunk/OpenRTM-aist/win32/OpenRTM-aist/build.bat.in 2016-01-08 04:51:03 UTC (rev 2691)
@@ -61,12 +61,18 @@
@rem ------------------------------------------------------------
@rem Copying Config.cmake
@rem ------------------------------------------------------------
-set RTM_DLLVER=%RTM_VERSION:.=%
+if %ARCH% == x86 set DLL_ARCH=
+if %ARCH% == x86_64 set DLL_ARCH=_x64
+
+set RTM_VC_VER=vc%VC_VERSION%
+set RTM_DLLVER=%RTM_VERSION:.=%_%RTM_VC_VER%%DLL_ARCH%
set RTM_SHORTVER=%RTM_VERSION:~0,3%
+set RTM_DLL_SHORTVER=%RTM_VERSION:.=%
set COIL_VERSION=%RTM_VERSION%
set COIL_DLLVER=%RTM_DLLVER%
set COIL_SHORTVER=%RTM_SHORTVER%
+set COIL_DLL_SHORTVER=%RTM_DLL_SHORTVER%
set OMNI_DLLVER=%OMNI_VERSION:.=%
set OMNI_SHORTVER=%OMNI_VERSION:~0,3%
@@ -114,7 +120,7 @@
)
if %VC_VERSION% == 14 (
call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86
- set VCTOOLSET=12.0
+ set VCTOOLSET=14.0
set PLATFORMTOOL=/p:PlatformToolset=v140
goto MSBUILDx86
)
@@ -177,7 +183,7 @@
)
if /i %VC_VERSION% == 14 (
call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64
- set VCTOOLSET=12.0
+ set VCTOOLSET=14.0
set PLATFORMTOOL=/p:PlatformToolset=v140
goto MSBUILDx64
)
Modified: trunk/OpenRTM-aist/win32/OpenRTM-aist/rtm_config.vsprops
===================================================================
--- trunk/OpenRTM-aist/win32/OpenRTM-aist/rtm_config.vsprops 2015-12-28 08:52:51 UTC (rev 2690)
+++ trunk/OpenRTM-aist/win32/OpenRTM-aist/rtm_config.vsprops 2016-01-08 04:51:03 UTC (rev 2691)
@@ -31,13 +31,17 @@
/>
<UserMacro
Name="rtm_dllver"
- Value="%RTM_DLLVER%_${RTM_VC_VER}"
+ Value="%RTM_DLLVER%"
/>
<UserMacro
- Name="rtm_dllver_x64"
- Value="%RTM_DLLVER%_${RTM_VC_VER}_x64"
+ Name="rtm_cmake_dllver"
+ Value="%RTM_DLL_SHORTVER%_${RTM_VC_VER}"
/>
<UserMacro
+ Name="rtm_cmake_dllver_x64"
+ Value="%RTM_DLL_SHORTVER%_${RTM_VC_VER}_x64"
+ />
+ <UserMacro
Name="rtm_version"
Value="%RTM_VERSION%"
/>
@@ -47,12 +51,16 @@
/>
<UserMacro
Name="coil_dllver"
- Value="%COIL_DLLVER%_${RTM_VC_VER}"
+ Value="%COIL_DLLVER%"
/>
<UserMacro
- Name="coil_dllver_x64"
- Value="%COIL_DLLVER%_${RTM_VC_VER}_x64"
+ Name="coil_cmake_dllver"
+ Value="%COIL_DLL_SHORTVER%_${RTM_VC_VER}"
/>
+ <UserMacro
+ Name="coil_cmake_dllver_x64"
+ Value="%COIL_DLL_SHORTVER%_${RTM_VC_VER}_x64"
+ />
<!-- omniORB macros -->
<UserMacro
Name="omni_includes"
@@ -93,20 +101,20 @@
/>
<UserMacro
Name="rtm_libd"
- Value="RTC$(rtm_dllver)d.lib $(coil_libd) $(omni_libd) advapi32.lib ws2_32.lib mswsock.lib $(user_libd)"
+ Value="RTC$(rtm_cmake_dllver)d.lib $(coil_libd) $(omni_libd) advapi32.lib ws2_32.lib mswsock.lib $(user_libd)"
/>
<UserMacro
Name="rtm_libd_x64"
- Value="RTC$(rtm_dllver_x64)d.lib $(coil_libd_x64) $(omni_libd) advapi32.lib ws2_32.lib mswsock.lib $(user_libd)"
+ Value="RTC$(rtm_cmake_dllver_x64)d.lib $(coil_libd_x64) $(omni_libd) advapi32.lib ws2_32.lib mswsock.lib $(user_libd)"
/>
<UserMacro
Name="rtm_lib"
- Value="RTC$(rtm_dllver).lib $(coil_lib) $(omni_lib) advapi32.lib ws2_32.lib mswsock.lib $(user_lib)"
+ Value="RTC$(rtm_cmake_dllver).lib $(coil_lib) $(omni_lib) advapi32.lib ws2_32.lib mswsock.lib $(user_lib)"
/>
<UserMacro
Name="rtm_lib_x64"
- Value="RTC$(rtm_dllver_x64).lib $(coil_lib_x64) $(omni_lib) advapi32.lib ws2_32.lib mswsock.lib $(user_lib)"
+ Value="RTC$(rtm_cmake_dllver_x64).lib $(coil_lib_x64) $(omni_lib) advapi32.lib ws2_32.lib mswsock.lib $(user_lib)"
/>
<UserMacro
Name="rtm_idlc"
@@ -119,19 +127,19 @@
<!-- coil macros -->
<UserMacro
Name="coil_lib"
- Value="coil$(coil_dllver).lib"
+ Value="coil$(coil_cmake_dllver).lib"
/>
<UserMacro
Name="coil_lib_x64"
- Value="coil$(coil_dllver_x64).lib"
+ Value="coil$(coil_cmake_dllver_x64).lib"
/>
<UserMacro
Name="coil_libd"
- Value="coil$(coil_dllver)d.lib"
+ Value="coil$(coil_cmake_dllver)d.lib"
/>
<UserMacro
Name="coil_libd_x64"
- Value="coil$(coil_dllver_x64)d.lib"
+ Value="coil$(coil_cmake_dllver_x64)d.lib"
/>
</VisualStudioPropertySheet>
More information about the openrtm-commit
mailing list