-
Notifications
You must be signed in to change notification settings - Fork 593
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update macos build #2638
Update macos build #2638
Changes from all commits
1b97bbc
70febaf
bfe1f60
8d19413
f0622e9
24859ae
00395a1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,7 +47,7 @@ | |
# endif | ||
# endif | ||
|
||
# if !defined(__FreeBSD__) && defined(ICE_API_EXPORTS) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure if we can remove this |
||
# if !defined(__FreeBSD__) | ||
# include <cxxabi.h> | ||
# include <execinfo.h> | ||
# include <stdint.h> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,8 +5,7 @@ | |
$(project)_libraries = Ice | ||
|
||
Ice_targetdir := $(libdir) | ||
Ice_cppflags = $(IceUtil_cppflags) | ||
Ice[shared]_cppflags := -DICE_API_EXPORTS | ||
Ice_cppflags = -DICE_API_EXPORTS $(IceUtil_cppflags) | ||
|
||
Ice_sliceflags := --include-dir Ice | ||
Ice_libs := bz2 | ||
|
@@ -16,7 +15,11 @@ Ice_extra_sources := $(filter-out src/Ice/SSL/OpenSSL%.cpp src/Ice/SSL/Sch | |
else | ||
Ice_extra_sources := $(filter-out src/Ice/SSL/SecureTransport%.cpp src/Ice/SSL/Schannel%.cpp, $(wildcard src/Ice/SSL/*.cpp)) | ||
endif | ||
|
||
Ice_excludes = src/Ice/DLLMain.cpp | ||
Ice[shared]_excludes = src/Ice/RegisterPluginsInit_min.cpp | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That's how I can use the same flags for static/shared build and yet get a small configuration-specific behavior: include a different impl file depending on the configuration. |
||
Ice[xcodesdk]_excludes = src/Ice/RegisterPluginsInit_min.cpp | ||
Ice[static]_excludes = src/Ice/RegisterPluginsInit_all.cpp | ||
|
||
ifeq ($(os),Linux) | ||
ifeq ($(shell pkg-config --exists libsystemd 2> /dev/null && echo yes),yes) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,13 +2,12 @@ | |
// Copyright (c) ZeroC, Inc. All rights reserved. | ||
// | ||
|
||
#include "RegisterPluginsInit.h" | ||
#include "Ice/CommunicatorF.h" | ||
#include "Ice/Initialize.h" | ||
#include "RegisterPluginsInit.h" | ||
|
||
extern "C" | ||
{ | ||
Ice::Plugin* createStringConverter(const Ice::CommunicatorPtr&, const std::string&, const Ice::StringSeq&); | ||
Ice::Plugin* createIceUDP(const Ice::CommunicatorPtr&, const std::string&, const Ice::StringSeq&); | ||
Ice::Plugin* createIceTCP(const Ice::CommunicatorPtr&, const std::string&, const Ice::StringSeq&); | ||
Ice::Plugin* createIceWS(const Ice::CommunicatorPtr&, const std::string&, const Ice::StringSeq&); | ||
|
@@ -20,11 +19,7 @@ IceInternal::RegisterPluginsInit::RegisterPluginsInit() | |
Ice::registerPluginFactory("IceTCP", createIceTCP, true); | ||
Ice::registerPluginFactory("IceSSL", createIceSSL, true); | ||
|
||
// | ||
// Include the UDP and WS transport plugins with non-static builds. | ||
// | ||
#if defined(ICE_API_EXPORTS) | ||
// Include the UDP and WS transport plugins with "shared" builds. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That's the implementation (_all) we want to use/include in all builds, except the configuration=static build. |
||
Ice::registerPluginFactory("IceUDP", createIceUDP, true); | ||
Ice::registerPluginFactory("IceWS", createIceWS, true); | ||
#endif | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// | ||
// Copyright (c) ZeroC, Inc. All rights reserved. | ||
// | ||
|
||
#include "Ice/CommunicatorF.h" | ||
#include "Ice/Initialize.h" | ||
#include "RegisterPluginsInit.h" | ||
|
||
extern "C" | ||
{ | ||
Ice::Plugin* createIceTCP(const Ice::CommunicatorPtr&, const std::string&, const Ice::StringSeq&); | ||
Ice::Plugin* createIceSSL(const Ice::CommunicatorPtr&, const std::string&, const Ice::StringSeq&); | ||
} | ||
|
||
IceInternal::RegisterPluginsInit::RegisterPluginsInit() | ||
{ | ||
Ice::registerPluginFactory("IceTCP", createIceTCP, true); | ||
Ice::registerPluginFactory("IceSSL", createIceSSL, true); | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -98,6 +98,7 @@ def getFilters(self, mapping, config): | |
"IceSSL/configuration", | ||
"IceDiscovery/simple", | ||
"IceGrid/simple", | ||
"IceUtil/stacktrace", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Enable this test for static builds. Otherwise, it's hard to see if we have an issue with backtraces and static builds! |
||
"Glacier2/application", | ||
], | ||
["Ice/library", "Ice/plugin"], | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reverted an earlier commit that add "[shared]". We want to use exactly the same flags for static and shared builds on macos.