Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
1c0b32b
from prototype
VSadov Nov 12, 2020
4adfaa6
fix OSX
VSadov Nov 12, 2020
0facc65
fix for Android
VSadov Nov 16, 2020
a2ab07c
treat "libSystem.Globalization.Native" as QCall in mono too (for now).
VSadov Nov 17, 2020
2b2f800
fix for wasm
VSadov Nov 19, 2020
8c4e514
current
VSadov Nov 20, 2020
6e584b4
remove no longer needed hacks
VSadov Nov 20, 2020
ba71464
Undo confusing changes for now
VSadov Nov 20, 2020
4563d69
fix pedantic errors on GCC
VSadov Nov 20, 2020
51281d6
delete gPalGlobalizationNative
VSadov Nov 21, 2020
25369f4
pass overrider from the host
VSadov Nov 21, 2020
e6fca93
default override
VSadov Nov 21, 2020
c11612f
default PInvoke override runs after optional host-provided overrider.
VSadov Nov 23, 2020
d3f4abe
Some PR feedback (mostly related to code, not the CMake stuff).
VSadov Nov 25, 2020
79453c7
more coding PR feedback
VSadov Dec 1, 2020
becda0e
Deleted "libraries-native" folder.
VSadov Dec 1, 2020
932b5fe
unifying tryrun.cmake into 1 common file
VSadov Dec 2, 2020
3f5cea9
factor out adding lib-specific dependencies into one place (per nativ…
VSadov Dec 3, 2020
8d2b6b9
cleanup: entirely remove tryrun.cmake propagation in eng, gen-buildsy…
VSadov Dec 3, 2020
9b7476f
remove "clrcompression.dll" and "libSystem.IO.Compression.Native.dyli…
VSadov Dec 3, 2020
8a02254
mono: refactor Globalization lookup into `default_resolve_dllimport`.
VSadov Dec 3, 2020
f22e9fd
set FEATURE_DISTRO_AGNOSTIC_SSL according to __PortableBuild
VSadov Dec 3, 2020
e539a1a
CORECLR_CALLING_CONVENTION for the host callback types
VSadov Dec 3, 2020
06dad00
revert change in pal_gssapi.h
VSadov Dec 3, 2020
ac026ba
keep the #include "pal_config.h"
VSadov Dec 4, 2020
eb62c4a
refactor common parts of entrypoints.c into entrypoints.h
VSadov Dec 4, 2020
2f45a47
rename OverrideEntry --> DllImportEntry
VSadov Dec 4, 2020
7b2bdef
extra libs as CMake functions
VSadov Dec 4, 2020
7ab3211
use macros instead of functions in extra_libs.cmake
VSadov Dec 4, 2020
7bf0a63
mono formatting style in src/mono/mono/metadata/native-library.c
VSadov Dec 4, 2020
d3a15fa
mono: Remaining stylistic nits.
VSadov Dec 4, 2020
6c55b68
do not set DFEATURE_DISTRO_AGNOSTIC_SSL on iOS, Android, tvOS
VSadov Dec 7, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
use macros instead of functions in extra_libs.cmake
  • Loading branch information
VSadov committed Dec 5, 2020
commit 7ab3211de1c5a22c263b3eb611a0393a874f2723
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

function(append_extra_compression_libs NativeLibsExtra)
macro(append_extra_compression_libs NativeLibsExtra)
if (CLR_CMAKE_TARGET_BROWSER)
# nothing special to link
elseif (CLR_CMAKE_TARGET_ANDROID)
Expand All @@ -10,5 +10,5 @@ function(append_extra_compression_libs NativeLibsExtra)
else ()
find_package(ZLIB REQUIRED)
endif ()
set(${NativeLibsExtra} ${${NativeLibsExtra}} ${ZLIB_LIBRARIES} PARENT_SCOPE)
endfunction(append_extra_compression_libs)
list(APPEND ${NativeLibsExtra} ${ZLIB_LIBRARIES})
endmacro()
17 changes: 7 additions & 10 deletions src/libraries/Native/Unix/System.Native/extra_libs.cmake
Original file line number Diff line number Diff line change
@@ -1,21 +1,18 @@

function(append_extra_system_libs NativeLibsExtra)
set(EXTRA_LIBS)

macro(append_extra_system_libs NativeLibsExtra)
if (CLR_CMAKE_TARGET_LINUX AND NOT CLR_CMAKE_TARGET_ANDROID)
list(APPEND EXTRA_LIBS rt)
list(APPEND ${NativeLibsExtra} rt)
elseif (CLR_CMAKE_TARGET_FREEBSD)
list(APPEND EXTRA_LIBS pthread)
list(APPEND ${NativeLibsExtra} pthread)
if (HAVE_INOTIFY)
find_library(INOTIFY_LIBRARY inotify HINTS /usr/local/lib)
list(APPEND EXTRA_LIBS ${INOTIFY_LIBRARY})
list(APPEND ${NativeLibsExtra} ${INOTIFY_LIBRARY})
endif ()
elseif (CLR_CMAKE_TARGET_SUNOS)
list(APPEND EXTRA_LIBS socket)
list(APPEND ${NativeLibsExtra} socket)
endif ()

if (CLR_CMAKE_TARGET_IOS OR CLR_CMAKE_TARGET_TVOS)
list(APPEND EXTRA_LIBS "-framework Foundation")
list(APPEND ${NativeLibsExtra} "-framework Foundation")
endif ()
set(${NativeLibsExtra} ${${NativeLibsExtra}} ${EXTRA_LIBS} PARENT_SCOPE)
endfunction(append_extra_system_libs)
endmacro()
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

function(append_extra_security_libs NativeLibsExtra)
macro(append_extra_security_libs NativeLibsExtra)
if (HAVE_GSSFW_HEADERS)
find_library(LIBGSS NAMES GSS)
if(LIBGSS STREQUAL LIBGSS-NOTFOUND)
Expand All @@ -19,5 +19,5 @@ function(append_extra_security_libs NativeLibsExtra)
endif()
endif()

set(${NativeLibsExtra} ${${NativeLibsExtra}} ${LIBGSS} PARENT_SCOPE)
endfunction(append_extra_compression_libs)
list(APPEND ${NativeLibsExtra} ${LIBGSS})
endmacro()
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

function(append_extra_cryptography_libs NativeLibsExtra)
macro(append_extra_cryptography_libs NativeLibsExtra)
if(CMAKE_STATIC_LIB_LINK)
set(CMAKE_FIND_LIBRARY_SUFFIXES .a)
endif(CMAKE_STATIC_LIB_LINK)
Expand Down Expand Up @@ -32,10 +32,8 @@ function(append_extra_cryptography_libs NativeLibsExtra)

if (FEATURE_DISTRO_AGNOSTIC_SSL)
# Link with libdl.so to get the dlopen / dlsym / dlclose
set(EXTRA_LIBS dl)
list(APPEND ${NativeLibsExtra} dl)
else()
set(EXTRA_LIBS ${OPENSSL_CRYPTO_LIBRARY} ${OPENSSL_SSL_LIBRARY})
list(APPEND ${NativeLibsExtra} ${OPENSSL_CRYPTO_LIBRARY} ${OPENSSL_SSL_LIBRARY})
endif()

set(${NativeLibsExtra} ${${NativeLibsExtra}} ${EXTRA_LIBS} PARENT_SCOPE)
endfunction(append_extra_cryptography_libs)
endmacro()