diff options
author | Gaurav Khanna <gkhanna@microsoft.com> | 2016-09-06 12:42:14 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-06 12:42:14 -0700 |
commit | 84ce20baf0707e9e50f4fda6f483d0c9f3e8f622 (patch) | |
tree | 148e16e2fec01306ae16f8ebc85c12d0cfc019fc /tests | |
parent | 0e1c7eb886ecf819f166a422d79eaa977258228a (diff) | |
parent | 3c6879b82a3a0134709ec21816cbcf71314c4b1a (diff) | |
download | coreclr-84ce20baf0707e9e50f4fda6f483d0c9f3e8f622.tar.gz coreclr-84ce20baf0707e9e50f4fda6f483d0c9f3e8f622.tar.bz2 coreclr-84ce20baf0707e9e50f4fda6f483d0c9f3e8f622.zip |
Merge pull request #6922 from gkhanna79/WinArm32
Enable Arm32 Test Build
Diffstat (limited to 'tests')
16 files changed, 28 insertions, 0 deletions
diff --git a/tests/setup-runtime-dependencies.cmd b/tests/setup-runtime-dependencies.cmd index 2cc2d773a2..6369457af8 100755 --- a/tests/setup-runtime-dependencies.cmd +++ b/tests/setup-runtime-dependencies.cmd @@ -35,6 +35,12 @@ goto Usage if not defined __OutputDir goto Usage if not defined __Arch goto Usage +REM Check if the platform is supported +if /i %__Arch% == "arm" ( + echo No runtime dependencies for Arm32. + exit /b 0 + ) + REM ========================================================================================= REM === REM === Check if dotnet CLI and necessary directories exist diff --git a/tests/src/Interop/ArrayMarshalling/BoolArray/CMakeLists.txt b/tests/src/Interop/ArrayMarshalling/BoolArray/CMakeLists.txt index 8cc5be3bed..da43913b33 100644 --- a/tests/src/Interop/ArrayMarshalling/BoolArray/CMakeLists.txt +++ b/tests/src/Interop/ArrayMarshalling/BoolArray/CMakeLists.txt @@ -5,6 +5,7 @@ set(SOURCES MarshalBoolArrayNative.cpp) # add the executable add_library (MarshalBoolArrayNative SHARED ${SOURCES}) +target_link_libraries(MarshalBoolArrayNative ${LINK_LIBRARIES_ADDITIONAL}) # add the install targets install (TARGETS MarshalBoolArrayNative DESTINATION bin) diff --git a/tests/src/Interop/ArrayMarshalling/ByValArray/CMakeLists.txt b/tests/src/Interop/ArrayMarshalling/ByValArray/CMakeLists.txt index 9c13ce0526..043339cd08 100644 --- a/tests/src/Interop/ArrayMarshalling/ByValArray/CMakeLists.txt +++ b/tests/src/Interop/ArrayMarshalling/ByValArray/CMakeLists.txt @@ -5,6 +5,7 @@ set(SOURCES MarshalArrayByValNative.cpp) # add the executable add_library (MarshalArrayByValNative SHARED ${SOURCES}) +target_link_libraries(MarshalArrayByValNative ${LINK_LIBRARIES_ADDITIONAL}) # add the install targets install (TARGETS MarshalArrayByValNative DESTINATION bin) diff --git a/tests/src/Interop/BestFitMapping/CMakeLists.txt b/tests/src/Interop/BestFitMapping/CMakeLists.txt index 23b45ece1f..8971ec3a66 100755 --- a/tests/src/Interop/BestFitMapping/CMakeLists.txt +++ b/tests/src/Interop/BestFitMapping/CMakeLists.txt @@ -4,6 +4,7 @@ set(SOURCES BestFitMappingNative.cpp ) # add the executable add_library (BestFitMappingNative SHARED ${SOURCES}) +target_link_libraries(BestFitMappingNative ${LINK_LIBRARIES_ADDITIONAL}) #get_cmake_property(_variableNames VARIABLES) #foreach (_variableName ${_variableNames}) diff --git a/tests/src/Interop/CMakeLists.txt b/tests/src/Interop/CMakeLists.txt index cf2cada7a6..fc6ee5d2e6 100644 --- a/tests/src/Interop/CMakeLists.txt +++ b/tests/src/Interop/CMakeLists.txt @@ -1,4 +1,12 @@ +if(WIN32) + if(CLR_CMAKE_HOST_ARCH STREQUAL arm) + list(APPEND LINK_LIBRARIES_ADDITIONAL + ole32.lib + ) + endif(CLR_CMAKE_HOST_ARCH STREQUAL arm) +endif(WIN32) + include_directories(common) add_subdirectory(NativeCallable) add_subdirectory(PrimitiveMarshalling/Bool) diff --git a/tests/src/Interop/FuncPtrAsDelegateParam/CMakeLists.txt b/tests/src/Interop/FuncPtrAsDelegateParam/CMakeLists.txt index 3fa62f1b84..3393155189 100644 --- a/tests/src/Interop/FuncPtrAsDelegateParam/CMakeLists.txt +++ b/tests/src/Interop/FuncPtrAsDelegateParam/CMakeLists.txt @@ -5,6 +5,7 @@ set(SOURCES FuncPtrAsDelegateParamNative.cpp ) # add the executable add_library (FuncPtrAsDelegateParamNative SHARED ${SOURCES}) +target_link_libraries(FuncPtrAsDelegateParamNative ${LINK_LIBRARIES_ADDITIONAL}) # add the install targets install (TARGETS FuncPtrAsDelegateParamNative DESTINATION bin)
\ No newline at end of file diff --git a/tests/src/Interop/NativeCallable/CMakeLists.txt b/tests/src/Interop/NativeCallable/CMakeLists.txt index 5236b3c873..e8ab51f8ef 100644 --- a/tests/src/Interop/NativeCallable/CMakeLists.txt +++ b/tests/src/Interop/NativeCallable/CMakeLists.txt @@ -4,6 +4,7 @@ set(SOURCES NativeCallableDll.cpp ) # add the executable add_library (NativeCallableDll SHARED ${SOURCES}) +target_link_libraries(NativeCallableDll ${LINK_LIBRARIES_ADDITIONAL}) # add the install targets install (TARGETS NativeCallableDll DESTINATION bin) diff --git a/tests/src/Interop/PrimitiveMarshalling/Bool/CMakeLists.txt b/tests/src/Interop/PrimitiveMarshalling/Bool/CMakeLists.txt index 9170660fc0..4877b53a7a 100644 --- a/tests/src/Interop/PrimitiveMarshalling/Bool/CMakeLists.txt +++ b/tests/src/Interop/PrimitiveMarshalling/Bool/CMakeLists.txt @@ -4,6 +4,7 @@ set(SOURCES BoolNative.cpp ) # add the executable add_library (BoolNative SHARED ${SOURCES}) +target_link_libraries(BoolNative ${LINK_LIBRARIES_ADDITIONAL}) #get_cmake_property(_variableNames VARIABLES) #foreach (_variableName ${_variableNames}) diff --git a/tests/src/Interop/PrimitiveMarshalling/EnumMarshalling/CMakeLists.txt b/tests/src/Interop/PrimitiveMarshalling/EnumMarshalling/CMakeLists.txt index 42eaff6394..70dffaa54e 100644 --- a/tests/src/Interop/PrimitiveMarshalling/EnumMarshalling/CMakeLists.txt +++ b/tests/src/Interop/PrimitiveMarshalling/EnumMarshalling/CMakeLists.txt @@ -4,6 +4,7 @@ set(SOURCES MarshalEnumNative.cpp ) # add the executable add_library (MarshalEnumNative SHARED ${SOURCES}) +target_link_libraries(MarshalEnumNative ${LINK_LIBRARIES_ADDITIONAL}) # add the install targets install (TARGETS MarshalEnumNative DESTINATION bin)
\ No newline at end of file diff --git a/tests/src/Interop/PrimitiveMarshalling/UIntPtr/CMakeLists.txt b/tests/src/Interop/PrimitiveMarshalling/UIntPtr/CMakeLists.txt index a748623ab3..62ce00481b 100644 --- a/tests/src/Interop/PrimitiveMarshalling/UIntPtr/CMakeLists.txt +++ b/tests/src/Interop/PrimitiveMarshalling/UIntPtr/CMakeLists.txt @@ -5,6 +5,7 @@ set(SOURCES UIntPtrNative.cpp ) # add the executable add_library (UIntPtrNative SHARED ${SOURCES}) +target_link_libraries(UIntPtrNative ${LINK_LIBRARIES_ADDITIONAL}) # add the install targets install (TARGETS UIntPtrNative DESTINATION bin)
\ No newline at end of file diff --git a/tests/src/Interop/RefCharArray/CMakeLists.txt b/tests/src/Interop/RefCharArray/CMakeLists.txt index d8f902cf67..e07b407ab0 100755 --- a/tests/src/Interop/RefCharArray/CMakeLists.txt +++ b/tests/src/Interop/RefCharArray/CMakeLists.txt @@ -4,6 +4,7 @@ set(SOURCES RefCharArrayNative.cpp ) # add the executable add_library (RefCharArrayNative SHARED ${SOURCES}) +target_link_libraries(RefCharArrayNative ${LINK_LIBRARIES_ADDITIONAL}) #get_cmake_property(_variableNames VARIABLES) #foreach (_variableName ${_variableNames}) diff --git a/tests/src/Interop/SimpleStruct/CMakeLists.txt b/tests/src/Interop/SimpleStruct/CMakeLists.txt index 4f990270df..a797a2680b 100644 --- a/tests/src/Interop/SimpleStruct/CMakeLists.txt +++ b/tests/src/Interop/SimpleStruct/CMakeLists.txt @@ -5,6 +5,7 @@ set(SOURCES SimpleStructNative.cpp ) # add the executable add_library (SimpleStructNative SHARED ${SOURCES}) +target_link_libraries(SimpleStructNative ${LINK_LIBRARIES_ADDITIONAL}) # add the install targets install (TARGETS SimpleStructNative DESTINATION bin)
\ No newline at end of file diff --git a/tests/src/Interop/StringMarshalling/LPSTR/CMakeLists.txt b/tests/src/Interop/StringMarshalling/LPSTR/CMakeLists.txt index b4dcd2c384..aa3fd76ff6 100755 --- a/tests/src/Interop/StringMarshalling/LPSTR/CMakeLists.txt +++ b/tests/src/Interop/StringMarshalling/LPSTR/CMakeLists.txt @@ -4,6 +4,7 @@ set(SOURCES LPSTRTestNative.cpp ) # add the executable add_library (LPSTRTestNative SHARED ${SOURCES}) +target_link_libraries(LPSTRTestNative ${LINK_LIBRARIES_ADDITIONAL}) # add the install targets install (TARGETS LPSTRTestNative DESTINATION bin)
\ No newline at end of file diff --git a/tests/src/Interop/StringMarshalling/LPTSTR/CMakeLists.txt b/tests/src/Interop/StringMarshalling/LPTSTR/CMakeLists.txt index f55984834c..f99a6e5ab7 100755 --- a/tests/src/Interop/StringMarshalling/LPTSTR/CMakeLists.txt +++ b/tests/src/Interop/StringMarshalling/LPTSTR/CMakeLists.txt @@ -4,6 +4,7 @@ set(SOURCES LPTSTRTestNative.cpp ) # add the executable add_library (LPTSTRTestNative SHARED ${SOURCES}) +target_link_libraries(LPTSTRTestNative ${LINK_LIBRARIES_ADDITIONAL}) # add the install targets install (TARGETS LPTSTRTestNative DESTINATION bin)
\ No newline at end of file diff --git a/tests/src/Interop/StringMarshalling/UTF8/CMakeLists.txt b/tests/src/Interop/StringMarshalling/UTF8/CMakeLists.txt index 1e8edbf563..37c952df10 100644 --- a/tests/src/Interop/StringMarshalling/UTF8/CMakeLists.txt +++ b/tests/src/Interop/StringMarshalling/UTF8/CMakeLists.txt @@ -4,6 +4,7 @@ set(SOURCES UTF8TestNative.cpp ) # add the executable add_library (UTF8TestNative SHARED ${SOURCES}) +target_link_libraries(UTF8TestNative ${LINK_LIBRARIES_ADDITIONAL}) # add the install targets install (TARGETS UTF8TestNative DESTINATION bin)
\ No newline at end of file diff --git a/tests/src/Interop/StructMarshalling/PInvoke/CMakeLists.txt b/tests/src/Interop/StructMarshalling/PInvoke/CMakeLists.txt index dc1e16f241..860c2e8c80 100644 --- a/tests/src/Interop/StructMarshalling/PInvoke/CMakeLists.txt +++ b/tests/src/Interop/StructMarshalling/PInvoke/CMakeLists.txt @@ -5,6 +5,7 @@ set(SOURCES MarshalStructAsParamDLL.cpp) # add the executable add_library (MarshalStructAsParam SHARED ${SOURCES}) +target_link_libraries(MarshalStructAsParam ${LINK_LIBRARIES_ADDITIONAL}) # add the install targets install (TARGETS MarshalStructAsParam DESTINATION bin)
\ No newline at end of file |