mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
Merge pull request #1129 from bmiklautz/osx_static_build
client/common: create a combined .a on mac
This commit is contained in:
@@ -61,3 +61,16 @@ if(BUILD_TESTING)
|
||||
add_subdirectory(test)
|
||||
endif()
|
||||
|
||||
if(IOS AND MONOLITHIC_BUILD AND (NOT BUILD_SHARED_LIBS))
|
||||
# generate combined library
|
||||
foreach(af ${${MODULE_PREFIX}_LIBS})
|
||||
get_target_property(LOC ${af} LOCATION)
|
||||
if ((NOT (${LOC} MATCHES ".*libfreerdp.a$")) AND (NOT (${LOC} MATCHES ".*libwinpr.a$")))
|
||||
set(ALIST ${ALIST} ${LOC})
|
||||
endif()
|
||||
endforeach()
|
||||
get_target_property(LOC ${MODULE_NAME} LOCATION)
|
||||
set(ALIST ${ALIST} ${LOC})
|
||||
message(${ALIST})
|
||||
add_custom_command(TARGET ${MODULE_NAME} POST_BUILD COMMAND libtool -static -o libfreerdp-client-combined.a ${ALIST})
|
||||
endif()
|
||||
|
||||
@@ -118,6 +118,7 @@
|
||||
C495F01816B937F90041304E /* libssl.a in Frameworks */ = {isa = PBXBuildFile; fileRef = C495F01616B937F90041304E /* libssl.a */; };
|
||||
C495F01A16B938210041304E /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C495F01916B938210041304E /* Security.framework */; };
|
||||
C495F01E16B938CB0041304E /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C495F01D16B938CA0041304E /* SystemConfiguration.framework */; };
|
||||
C4B6A8821701979900AA836E /* libfreerdp-client-combined.a in Frameworks */ = {isa = PBXBuildFile; fileRef = C4B6A8811701979900AA836E /* libfreerdp-client-combined.a */; };
|
||||
C4C31C6F16BAD1890087BB12 /* Default-568h@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = C4C31C6E16BAD1890087BB12 /* Default-568h@2x.png */; };
|
||||
/* End PBXBuildFile section */
|
||||
|
||||
@@ -280,6 +281,7 @@
|
||||
C495F01616B937F90041304E /* libssl.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libssl.a; path = @FREERDP_IOS_EXTERNAL_SSL_PATH@/lib/libssl.a; sourceTree = "<group>"; };
|
||||
C495F01916B938210041304E /* Security.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Security.framework; path = System/Library/Frameworks/Security.framework; sourceTree = SDKROOT; };
|
||||
C495F01D16B938CA0041304E /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = System/Library/Frameworks/SystemConfiguration.framework; sourceTree = SDKROOT; };
|
||||
C4B6A8811701979900AA836E /* libfreerdp-client-combined.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = "libfreerdp-client-combined.a"; path = "../common/libfreerdp-client-combined.a"; sourceTree = "<group>"; };
|
||||
C4C31C6E16BAD1890087BB12 /* Default-568h@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Default-568h@2x.png"; path = "Resources/Default-568h@2x.png"; sourceTree = SOURCE_ROOT; };
|
||||
/* End PBXFileReference section */
|
||||
|
||||
@@ -297,6 +299,7 @@
|
||||
C495EE3816B8372D0041304E /* CoreGraphics.framework in Frameworks */,
|
||||
C495F01A16B938210041304E /* Security.framework in Frameworks */,
|
||||
C495F01E16B938CB0041304E /* SystemConfiguration.framework in Frameworks */,
|
||||
C4B6A8821701979900AA836E /* libfreerdp-client-combined.a in Frameworks */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
@@ -323,6 +326,7 @@
|
||||
C495EE3216B8372D0041304E /* Frameworks */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
C4B6A8811701979900AA836E /* libfreerdp-client-combined.a */,
|
||||
C495EFAA16B912C40041304E /* libfreerdp.a */,
|
||||
C495EFAD16B913980041304E /* libwinpr.a */,
|
||||
C495F01516B937F80041304E /* libcrypto.a */,
|
||||
@@ -744,9 +748,7 @@
|
||||
GCC_C_LANGUAGE_STANDARD = gnu99;
|
||||
GCC_DYNAMIC_NO_PIC = NO;
|
||||
GCC_OPTIMIZATION_LEVEL = 0;
|
||||
GCC_PREPROCESSOR_DEFINITIONS = (
|
||||
"DEBUG=1",
|
||||
);
|
||||
GCC_PREPROCESSOR_DEFINITIONS = "DEBUG=1";
|
||||
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
|
||||
GCC_WARN_ABOUT_RETURN_TYPE = YES;
|
||||
GCC_WARN_UNINITIALIZED_AUTOS = YES;
|
||||
|
||||
Reference in New Issue
Block a user