Skip to content

Commit

Permalink
Build globalization lib (dotnet#42166)
Browse files Browse the repository at this point in the history
* Build static lib for System.Globalization.Native

* link libSystem.Globalization.Native into the static host
  • Loading branch information
VSadov authored Oct 12, 2020
1 parent d30b067 commit bcc8412
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/installer/corehost/cli/apphost/static/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ if(CLR_CMAKE_TARGET_WIN32)
elseif(CLR_CMAKE_TARGET_LINUX)
set(CORECLR_LIBRARIES
${CORECLR_STATIC_LIB_LOCATION}/libcoreclr_static.a
${CORECLR_STATIC_LIB_LOCATION}/libSystem.Globalization.Native.a
${CORECLR_STATIC_LIB_LOCATION}/libcoreclrpal.a
${CORECLR_STATIC_LIB_LOCATION}/libpalrt.a
${CORECLR_STATIC_LIB_LOCATION}/libeventprovider.a
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,15 @@ if (GEN_SHARED_LIB)
install_with_stripped_symbols (System.Globalization.Native PROGRAMS .)
endif()

add_library(System.Globalization.Native_obj
OBJECT

add_library(System.Globalization.Native-static
STATIC
${NATIVEGLOBALIZATION_SOURCES}
)

set_target_properties(System.Globalization.Native_obj PROPERTIES OUTPUT_NAME System.Globalization.Native CLEAN_DIRECT_OUTPUT 1)
set_target_properties(System.Globalization.Native-static PROPERTIES OUTPUT_NAME System.Globalization.Native CLEAN_DIRECT_OUTPUT 1)

add_library(System.Globalization.Native-static INTERFACE)
target_sources(System.Globalization.Native-static INTERFACE $<TARGET_OBJECTS:System.Globalization.Native_obj>)
install (TARGETS System.Globalization.Native-static DESTINATION lib)

if(NOT CLR_CMAKE_TARGET_OSX AND NOT CLR_CMAKE_TARGET_IOS AND NOT CLR_CMAKE_TARGET_TVOS AND NOT CLR_CMAKE_TARGET_ANDROID)
if (GEN_SHARED_LIB)
Expand Down

0 comments on commit bcc8412

Please sign in to comment.