diff options
author | Bernard Normier <bernard@zeroc.com> | 2016-05-09 19:30:54 -0400 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2016-05-09 19:30:54 -0400 |
commit | db4206bee14d8cd4e53e82e2848ae8cbc1cb47a2 (patch) | |
tree | 2c534974d2fa0c302c8fada7f55c1c92cc5414e0 | |
parent | Conflict fixes from previous commit (diff) | |
download | ice-db4206bee14d8cd4e53e82e2848ae8cbc1cb47a2.tar.bz2 ice-db4206bee14d8cd4e53e82e2848ae8cbc1cb47a2.tar.xz ice-db4206bee14d8cd4e53e82e2848ae8cbc1cb47a2.zip |
Removed libIceUtil and libSlice
58 files changed, 122 insertions, 178 deletions
diff --git a/config/Make.project.rules b/config/Make.project.rules index 7f40c96c25e..b43fcb08ee4 100644 --- a/config/Make.project.rules +++ b/config/Make.project.rules @@ -411,8 +411,8 @@ $$($5_objdir)/$$(call source-to-dependency,$$($2_sources)): | $$($5_objdir) # # Object rules # -$$(eval $$(call make-objects,$$($2_srcdir),$$($1_generated_srcdir),$$($5_objdir),\ - $$($2_sources),$$($5_dependencies),$$($5_cppflags),$$($1_slicecompiler),$$($5_platform),$$($5_config))) +$$(foreach d,$$($2_srcdirs),$$(eval $$(call make-objects,$$d,$$($1_generated_srcdir),$$($5_objdir),\ + $$($2_sources),$$($5_dependencies),$$($5_cppflags),$$($1_slicecompiler),$$($5_platform),$$($5_config)))) # # Target rule @@ -534,9 +534,11 @@ $2_sources := $$(foreach e,$(source-extensions),$$(wildcard $$($2_srcdir)/*.$$( ifneq ($$($2_slicedir),) $2_sources += $$(wildcard $$($2_slicedir)/*.ice) endif +$2_sources += $$($2_extra_sources) $2_sources := $$(call unique,$$($2_sources)) endif $2_sources := $$(filter-out $$(patsubst $(lang_srcdir)/%,%,$$($2_excludes)),$$($2_sources)) +$2_srcdirs := $$(call files-to-dirs,$$($2_sources)) # # Compute the list of slice files from the sources and gather the location diff --git a/cpp/config/Make.rules b/cpp/config/Make.rules index 2160712170d..d591fedf590 100644 --- a/cpp/config/Make.rules +++ b/cpp/config/Make.rules @@ -39,9 +39,11 @@ coreandstub_components += IceXML IceBT endif # -# Build all the projects with the shared configuration +# Build all the projects with the shared configuration, except IceUtil and Slice +# that are static-only # shared_projects = % +shared_excludes = IceUtil Slice # # Build only few components with the static configuration (core and stubs) @@ -133,7 +135,7 @@ endef # define create-cpp-test-project $1_srcext := cpp -$1_dependencies := $$(or $$($1_dependencies),TestCommon Ice IceUtil) +$1_dependencies := $$(or $$($1_dependencies),TestCommon Ice) # Also link with IceSSL and IceBT (Debian/Ubuntu) when compiling with the static configuration $1_dependencies[static] := $$(or $$($1_dependencies[static]),IceSSL $(if $(filter debian ubuntu,$(linux_id)),IceBT)) diff --git a/cpp/src/Glacier2/Makefile.mk b/cpp/src/Glacier2/Makefile.mk index 5b3ef8f7dee..313aa258dad 100644 --- a/cpp/src/Glacier2/Makefile.mk +++ b/cpp/src/Glacier2/Makefile.mk @@ -10,7 +10,7 @@ $(project)_programs := glacier2router $(project)_sliceflags := --include-dir Glacier2 $(project)_generated_includedir := $(project)/generated/Glacier2 -$(project)_dependencies := Glacier2 IceSSL Ice IceUtil +$(project)_dependencies := Glacier2 IceSSL Ice glacier2router_targetdir := $(bindir) diff --git a/cpp/src/Glacier2CryptPermissionsVerifier/Makefile.mk b/cpp/src/Glacier2CryptPermissionsVerifier/Makefile.mk index 203c8322826..97980df7750 100644 --- a/cpp/src/Glacier2CryptPermissionsVerifier/Makefile.mk +++ b/cpp/src/Glacier2CryptPermissionsVerifier/Makefile.mk @@ -10,7 +10,7 @@ $(project)_libraries += Glacier2CryptPermissionsVerifier Glacier2CryptPermissionsVerifier_targetdir := $(libdir) -Glacier2CryptPermissionsVerifier_dependencies := Glacier2 Ice IceUtil +Glacier2CryptPermissionsVerifier_dependencies := Glacier2 Ice Glacier2CryptPermissionsVerifier_system_libs := $(CRYPT_OS_LIBS) Glacier2CryptPermissionsVerifier_cppflags := -DCRYPT_PERMISSIONS_VERIFIER_API_EXPORTS diff --git a/cpp/src/Glacier2Lib/Makefile.mk b/cpp/src/Glacier2Lib/Makefile.mk index 89e0fdb4add..b2d11113706 100644 --- a/cpp/src/Glacier2Lib/Makefile.mk +++ b/cpp/src/Glacier2Lib/Makefile.mk @@ -10,8 +10,8 @@ $(project)_libraries := Glacier2 Glacier2_targetdir := $(libdir) -Glacier2_dependencies := Ice IceUtil +Glacier2_dependencies := Ice Glacier2_cppflags := -DGLACIER2_API_EXPORTS Glacier2_sliceflags := --include-dir Glacier2 --dll-export GLACIER2_API -projects += $(project)
\ No newline at end of file +projects += $(project) diff --git a/cpp/src/Ice/Makefile.mk b/cpp/src/Ice/Makefile.mk index cc3dbc55b5e..50ace93ca83 100644 --- a/cpp/src/Ice/Makefile.mk +++ b/cpp/src/Ice/Makefile.mk @@ -10,11 +10,20 @@ $(project)_libraries = Ice Ice_targetdir := $(libdir) -Ice_dependencies := IceUtil -Ice_cppflags := -DICE_API_EXPORTS +Ice_cppflags = -DICE_API_EXPORTS -DICE_UTIL_API_EXPORTS + +ifeq ($(DEFAULT_MUTEX_PROTOCOL), PrioInherit) + Ice_cppflags += -DICE_PRIO_INHERIT +endif + +ifeq ($(libbacktrace),yes) + Ice_cppflags += -DICE_LIBBACKTRACE +endif + Ice_sliceflags := --include-dir Ice --dll-export ICE_API Ice_libs := bz2 -Ice_system_libs := $(ICE_OS_LIBS) +Ice_system_libs := $(ICE_OS_LIBS) $(ICEUTIL_OS_LIBS) +Ice_extra_sources := $(wildcard src/IceUtil/*.cpp) Ice_excludes := $(currentdir)/DLLMain.cpp projects += $(project) diff --git a/cpp/src/IceBT/Makefile.mk b/cpp/src/IceBT/Makefile.mk index 294d466aff3..d56d94486a7 100644 --- a/cpp/src/IceBT/Makefile.mk +++ b/cpp/src/IceBT/Makefile.mk @@ -12,8 +12,8 @@ ifneq ($(filter debian ubuntu,$(linux_id)),) $(project)_libraries := IceBT IceBT_targetdir := $(libdir) -IceBT_dependencies := IceXML Ice IceUtil -IceBT_cppflags := -DICEBT_API_EXPORTS `pkg-config --cflags dbus-1` +IceBT_dependencies := IceXML Ice +IceBT_cppflags := -DICEBT_API_EXPORTS `pkg-config --cflags dbus-1` IceBT_system_libs := $(SSL_OS_LIBS) `pkg-config --libs dbus-1` IceBT_sliceflags := --include-dir IceBT --dll-export ICESSL_API diff --git a/cpp/src/IceBox/Makefile.mk b/cpp/src/IceBox/Makefile.mk index f1499a055b0..5bf8618e6b8 100644 --- a/cpp/src/IceBox/Makefile.mk +++ b/cpp/src/IceBox/Makefile.mk @@ -9,7 +9,7 @@ $(project)_libraries := IceBox $(project)_programs := icebox iceboxadmin -$(project)_dependencies := Ice IceUtil +$(project)_dependencies := Ice $(project)_sliceflags := --include-dir IceBox --dll-export ICEBOX_API IceBox_targetdir := $(libdir) diff --git a/cpp/src/IceDB/Makefile.mk b/cpp/src/IceDB/Makefile.mk index aae68b10770..e5d51fdc930 100644 --- a/cpp/src/IceDB/Makefile.mk +++ b/cpp/src/IceDB/Makefile.mk @@ -10,7 +10,7 @@ $(project)_libraries = IceDB IceDB_targetdir := $(libdir) -IceDB_dependencies := Ice IceUtil +IceDB_dependencies := Ice IceDB_libs := lmdb IceDB_cppflags := -DICE_DB_API_EXPORTS diff --git a/cpp/src/IceDiscovery/Makefile.mk b/cpp/src/IceDiscovery/Makefile.mk index 67ee53b1c8f..d20dd7923b3 100644 --- a/cpp/src/IceDiscovery/Makefile.mk +++ b/cpp/src/IceDiscovery/Makefile.mk @@ -10,7 +10,7 @@ $(project)_libraries := IceDiscovery IceDiscovery_targetdir := $(libdir) -IceDiscovery_dependencies := Ice IceUtil +IceDiscovery_dependencies := Ice IceDiscovery_sliceflags := --include-dir IceDiscovery IceDiscovery_generated_includedir := $(project)/generated/IceDiscovery IceDiscovery_cppflags := -DICE_DISCOVERY_API_EXPORTS diff --git a/cpp/src/IceGrid/Makefile.mk b/cpp/src/IceGrid/Makefile.mk index 62ac0cfb951..9df3222c8b5 100644 --- a/cpp/src/IceGrid/Makefile.mk +++ b/cpp/src/IceGrid/Makefile.mk @@ -67,7 +67,7 @@ local_admin_srcs = Internal.ice \ $(project)_programs = icegridnode icegridregistry icegridadmin icegriddb $(project)_sliceflags := -Isrc --include-dir IceGrid $(project)_generated_includedir := $(project)/generated/IceGrid -$(project)_dependencies := IceGrid Glacier2 Ice IceUtil +$(project)_dependencies := IceGrid Glacier2 Ice $(project)_targetdir := $(bindir) icegridnode_sources := $(addprefix $(currentdir)/,$(local_node_srcs) $(local_registry_srcs) IceGridNode.cpp) diff --git a/cpp/src/IceGridLib/Makefile.mk b/cpp/src/IceGridLib/Makefile.mk index 26f2111a5fb..289fdbd90f7 100644 --- a/cpp/src/IceGridLib/Makefile.mk +++ b/cpp/src/IceGridLib/Makefile.mk @@ -10,7 +10,7 @@ $(project)_libraries := IceGrid IceGrid_targetdir := $(libdir) -IceGrid_dependencies := Glacier2 Ice IceUtil +IceGrid_dependencies := Glacier2 Ice IceGrid_sliceflags := --include-dir IceGrid --dll-export ICE_GRID_API projects += $(project) diff --git a/cpp/src/IceLocatorDiscovery/Makefile.mk b/cpp/src/IceLocatorDiscovery/Makefile.mk index 5acb7ad9706..717e477b85c 100644 --- a/cpp/src/IceLocatorDiscovery/Makefile.mk +++ b/cpp/src/IceLocatorDiscovery/Makefile.mk @@ -10,7 +10,7 @@ $(project)_libraries := IceLocatorDiscovery IceLocatorDiscovery_targetdir := $(libdir) -IceLocatorDiscovery_dependencies := Ice IceUtil +IceLocatorDiscovery_dependencies := Ice IceLocatorDiscovery_sliceflags := --include-dir IceLocatorDiscovery IceLocatorDiscovery_generated_includedir := $(project)/generated/IceLocatorDiscovery IceLocatorDiscovery_cppflags := -DICE_LOCATOR_DISCOVERY_API_EXPORTS diff --git a/cpp/src/IcePatch2/Makefile.mk b/cpp/src/IcePatch2/Makefile.mk index eb1cc23045b..d240a492424 100644 --- a/cpp/src/IcePatch2/Makefile.mk +++ b/cpp/src/IcePatch2/Makefile.mk @@ -8,7 +8,7 @@ # ********************************************************************** $(project)_programs := icepatch2server icepatch2client icepatch2calc -$(project)_dependencies := IcePatch2 Ice IceUtil +$(project)_dependencies := IcePatch2 Ice $(project)_targetdir := $(bindir) icepatch2server_sources := $(addprefix $(currentdir)/,FileServerI.cpp Server.cpp) diff --git a/cpp/src/IcePatch2Lib/Makefile.mk b/cpp/src/IcePatch2Lib/Makefile.mk index e63a56ab3c8..f55856ccd2b 100644 --- a/cpp/src/IcePatch2Lib/Makefile.mk +++ b/cpp/src/IcePatch2Lib/Makefile.mk @@ -10,7 +10,7 @@ $(project)_libraries := IcePatch2 IcePatch2_targetdir := $(libdir) -IcePatch2_dependencies := Ice IceUtil +IcePatch2_dependencies := Ice IcePatch2_libs := bz2 IcePatch2_sliceflags := --include-dir IcePatch2 --dll-export ICE_PATCH2_API IcePatch2_cppflags := -Wno-deprecated-declarations diff --git a/cpp/src/IceSSL/Makefile.mk b/cpp/src/IceSSL/Makefile.mk index 1655ce978df..d9616562624 100644 --- a/cpp/src/IceSSL/Makefile.mk +++ b/cpp/src/IceSSL/Makefile.mk @@ -10,8 +10,8 @@ $(project)_libraries := IceSSL IceSSL_targetdir := $(libdir) -IceSSL_dependencies := Ice IceUtil -IceSSL_cppflags := -DICESSL_API_EXPORTS +IceSSL_dependencies := Ice +IceSSL_cppflags := -DICESSL_API_EXPORTS IceSSL_system_libs := $(SSL_OS_LIBS) IceSSL_sliceflags := --include-dir IceSSL --dll-export ICESSL_API diff --git a/cpp/src/IceStorm/Makefile.mk b/cpp/src/IceStorm/Makefile.mk index 7390a46b291..31c3e0ffebb 100644 --- a/cpp/src/IceStorm/Makefile.mk +++ b/cpp/src/IceStorm/Makefile.mk @@ -11,7 +11,7 @@ $(project)_libraries := IceStormService $(project)_programs := icestormadmin icestormdb $(project)_sliceflags := -Isrc --include-dir IceStorm $(project)_generated_includedir := $(project)/generated/IceStorm -$(project)_dependencies := IceStorm Ice IceUtil +$(project)_dependencies := IceStorm Ice IceStormService_targetdir := $(libdir) IceStormService_dependencies := IceGrid Glacier2 IceBox IceDB diff --git a/cpp/src/IceStormLib/Makefile.mk b/cpp/src/IceStormLib/Makefile.mk index 0a04d593b0f..3e12c553418 100644 --- a/cpp/src/IceStormLib/Makefile.mk +++ b/cpp/src/IceStormLib/Makefile.mk @@ -10,7 +10,7 @@ $(project)_libraries := IceStorm IceStorm_targetdir := $(libdir) -IceStorm_dependencies := Ice IceUtil +IceStorm_dependencies := Ice IceStorm_sliceflags := --include-dir IceStorm --dll-export ICE_STORM_LIB_API projects += $(project) diff --git a/cpp/src/IceUtil/Exception.cpp b/cpp/src/IceUtil/UtilException.cpp index b0c25c75324..b0c25c75324 100644 --- a/cpp/src/IceUtil/Exception.cpp +++ b/cpp/src/IceUtil/UtilException.cpp diff --git a/cpp/src/IceUtil/msbuild/iceutil++11/iceutil++11.vcxproj b/cpp/src/IceUtil/msbuild/iceutil++11/iceutil++11.vcxproj index f944daa86bf..f22527e8f3f 100644 --- a/cpp/src/IceUtil/msbuild/iceutil++11/iceutil++11.vcxproj +++ b/cpp/src/IceUtil/msbuild/iceutil++11/iceutil++11.vcxproj @@ -1,4 +1,4 @@ -<?xml version="1.0" encoding="utf-8"?> +<?xml version="1.0" encoding="utf-8"?> <Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <ItemGroup Label="ProjectConfigurations"> <ProjectConfiguration Include="Debug|Win32"> @@ -101,7 +101,7 @@ <ClCompile Include="..\..\ConvertUTF.cpp" /> <ClCompile Include="..\..\CountDownLatch.cpp" /> <ClCompile Include="..\..\CtrlCHandler.cpp" /> - <ClCompile Include="..\..\Exception.cpp" /> + <ClCompile Include="..\..\UtilException.cpp" /> <ClCompile Include="..\..\FileUtil.cpp" /> <ClCompile Include="..\..\InputUtil.cpp" /> <ClCompile Include="..\..\MutexProtocol.cpp" /> diff --git a/cpp/src/IceUtil/msbuild/iceutil++11/iceutil++11.vcxproj.filters b/cpp/src/IceUtil/msbuild/iceutil++11/iceutil++11.vcxproj.filters index 73a009d9230..c097d85db0f 100644 --- a/cpp/src/IceUtil/msbuild/iceutil++11/iceutil++11.vcxproj.filters +++ b/cpp/src/IceUtil/msbuild/iceutil++11/iceutil++11.vcxproj.filters @@ -1,4 +1,4 @@ -<?xml version="1.0" encoding="utf-8"?> +<?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <ItemGroup> <Filter Include="Source Files"> @@ -30,7 +30,7 @@ <ClCompile Include="..\..\CtrlCHandler.cpp"> <Filter>Source Files</Filter> </ClCompile> - <ClCompile Include="..\..\Exception.cpp"> + <ClCompile Include="..\..\UtilException.cpp"> <Filter>Source Files</Filter> </ClCompile> <ClCompile Include="..\..\FileUtil.cpp"> @@ -224,4 +224,4 @@ <Filter>Resource Files</Filter> </ResourceCompile> </ItemGroup> -</Project>
\ No newline at end of file +</Project> diff --git a/cpp/src/IceUtil/msbuild/iceutil/iceutil.vcxproj b/cpp/src/IceUtil/msbuild/iceutil/iceutil.vcxproj index 75ee6bc1647..4a824edef45 100644 --- a/cpp/src/IceUtil/msbuild/iceutil/iceutil.vcxproj +++ b/cpp/src/IceUtil/msbuild/iceutil/iceutil.vcxproj @@ -1,4 +1,4 @@ -<?xml version="1.0" encoding="utf-8"?> +<?xml version="1.0" encoding="utf-8"?> <Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <ItemGroup Label="ProjectConfigurations"> <ProjectConfiguration Include="Debug|Win32"> @@ -100,7 +100,7 @@ <ClCompile Include="..\..\ConvertUTF.cpp" /> <ClCompile Include="..\..\CountDownLatch.cpp" /> <ClCompile Include="..\..\CtrlCHandler.cpp" /> - <ClCompile Include="..\..\Exception.cpp" /> + <ClCompile Include="..\..\UtilException.cpp" /> <ClCompile Include="..\..\FileUtil.cpp" /> <ClCompile Include="..\..\InputUtil.cpp" /> <ClCompile Include="..\..\MutexProtocol.cpp" /> diff --git a/cpp/src/IceUtil/msbuild/iceutil/iceutil.vcxproj.filters b/cpp/src/IceUtil/msbuild/iceutil/iceutil.vcxproj.filters index 7fdbf281f23..f008d4bf690 100644 --- a/cpp/src/IceUtil/msbuild/iceutil/iceutil.vcxproj.filters +++ b/cpp/src/IceUtil/msbuild/iceutil/iceutil.vcxproj.filters @@ -1,4 +1,4 @@ -<?xml version="1.0" encoding="utf-8"?> +<?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <ItemGroup> <Filter Include="Source Files"> @@ -30,7 +30,7 @@ <ClCompile Include="..\..\CtrlCHandler.cpp"> <Filter>Source Files</Filter> </ClCompile> - <ClCompile Include="..\..\Exception.cpp"> + <ClCompile Include="..\..\UtilException.cpp"> <Filter>Source Files</Filter> </ClCompile> <ClCompile Include="..\..\FileUtil.cpp"> @@ -224,4 +224,4 @@ <Filter>Resource Files</Filter> </ResourceCompile> </ItemGroup> -</Project>
\ No newline at end of file +</Project> diff --git a/cpp/src/IceUtil/msbuild/iceutiluwp++11/iceutiluwp++11.vcxproj b/cpp/src/IceUtil/msbuild/iceutiluwp++11/iceutiluwp++11.vcxproj index abd4f073d95..f1812c98174 100644 --- a/cpp/src/IceUtil/msbuild/iceutiluwp++11/iceutiluwp++11.vcxproj +++ b/cpp/src/IceUtil/msbuild/iceutiluwp++11/iceutiluwp++11.vcxproj @@ -1,4 +1,4 @@ -<?xml version="1.0" encoding="utf-8"?> +<?xml version="1.0" encoding="utf-8"?> <Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <ItemGroup Label="ProjectConfigurations"> <ProjectConfiguration Include="Debug|ARM"> @@ -132,7 +132,7 @@ <ClCompile Include="..\..\Cond.cpp" /> <ClCompile Include="..\..\ConvertUTF.cpp" /> <ClCompile Include="..\..\CountDownLatch.cpp" /> - <ClCompile Include="..\..\Exception.cpp" /> + <ClCompile Include="..\..\UtilException.cpp" /> <ClCompile Include="..\..\FileUtil.cpp" /> <ClCompile Include="..\..\InputUtil.cpp" /> <ClCompile Include="..\..\MutexProtocol.cpp" /> @@ -200,4 +200,4 @@ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> <ImportGroup Label="ExtensionTargets"> </ImportGroup> -</Project>
\ No newline at end of file +</Project> diff --git a/cpp/src/IceUtil/msbuild/iceutiluwp++11/iceutiluwp++11.vcxproj.filters b/cpp/src/IceUtil/msbuild/iceutiluwp++11/iceutiluwp++11.vcxproj.filters index 0923c6f6835..1c5653d5a4e 100644 --- a/cpp/src/IceUtil/msbuild/iceutiluwp++11/iceutiluwp++11.vcxproj.filters +++ b/cpp/src/IceUtil/msbuild/iceutiluwp++11/iceutiluwp++11.vcxproj.filters @@ -1,4 +1,4 @@ -<?xml version="1.0" encoding="utf-8"?> +<?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <ItemGroup> <ClCompile Include="..\..\ArgVector.cpp"> @@ -13,7 +13,7 @@ <ClCompile Include="..\..\CountDownLatch.cpp"> <Filter>Source Files</Filter> </ClCompile> - <ClCompile Include="..\..\Exception.cpp"> + <ClCompile Include="..\..\UtilException.cpp"> <Filter>Source Files</Filter> </ClCompile> <ClCompile Include="..\..\FileUtil.cpp"> @@ -213,4 +213,4 @@ <UniqueIdentifier>{4a95b250-fe90-4762-9440-47baf982c6c4}</UniqueIdentifier> </Filter> </ItemGroup> -</Project>
\ No newline at end of file +</Project> diff --git a/cpp/src/IceXML/Makefile.mk b/cpp/src/IceXML/Makefile.mk index 753f8fac685..488555e76ce 100644 --- a/cpp/src/IceXML/Makefile.mk +++ b/cpp/src/IceXML/Makefile.mk @@ -10,8 +10,8 @@ $(project)_libraries := IceXML IceXML_targetdir := $(libdir) -IceXML_dependencies := IceUtil -IceXML_cppflags := -DICE_XML_API_EXPORTS +IceXML_dependencies := Ice +IceXML_cppflags := -DICE_XML_API_EXPORTS IceXML_libs := expat projects += $(project) diff --git a/cpp/src/Slice/Util.cpp b/cpp/src/Slice/SliceUtil.cpp index e0c490fa937..e0c490fa937 100644 --- a/cpp/src/Slice/Util.cpp +++ b/cpp/src/Slice/SliceUtil.cpp diff --git a/cpp/src/Slice/msbuild/slice.vcxproj b/cpp/src/Slice/msbuild/slice.vcxproj index 6ad0a588a50..fb9d0403baa 100644 --- a/cpp/src/Slice/msbuild/slice.vcxproj +++ b/cpp/src/Slice/msbuild/slice.vcxproj @@ -1,4 +1,4 @@ -<?xml version="1.0" encoding="utf-8"?> +<?xml version="1.0" encoding="utf-8"?> <Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <ItemGroup Label="ProjectConfigurations"> <ProjectConfiguration Include="Debug|Win32"> @@ -105,7 +105,7 @@ <ClCompile Include="..\Ruby.cpp" /> <ClCompile Include="..\RubyUtil.cpp" /> <ClCompile Include="..\Scanner.cpp" /> - <ClCompile Include="..\Util.cpp" /> + <ClCompile Include="..\SliceUtil.cpp" /> </ItemGroup> <ItemGroup> <ClInclude Include="..\..\..\include\Slice\Checksum.h" /> diff --git a/cpp/src/Slice/msbuild/slice.vcxproj.filters b/cpp/src/Slice/msbuild/slice.vcxproj.filters index 1757a2aa8b9..9f612ab2529 100644 --- a/cpp/src/Slice/msbuild/slice.vcxproj.filters +++ b/cpp/src/Slice/msbuild/slice.vcxproj.filters @@ -1,4 +1,4 @@ -<?xml version="1.0" encoding="utf-8"?> +<?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <ItemGroup> <Filter Include="Source Files"> @@ -74,7 +74,7 @@ <ClCompile Include="..\Scanner.cpp"> <Filter>Source Files</Filter> </ClCompile> - <ClCompile Include="..\Util.cpp"> + <ClCompile Include="..\SliceUtil.cpp"> <Filter>Source Files</Filter> </ClCompile> </ItemGroup> @@ -134,4 +134,4 @@ <ItemGroup> <None Include="packages.config" /> </ItemGroup> -</Project>
\ No newline at end of file +</Project> diff --git a/cpp/test/Common/Makefile.mk b/cpp/test/Common/Makefile.mk index f4dd1d776d4..6403a45309a 100644 --- a/cpp/test/Common/Makefile.mk +++ b/cpp/test/Common/Makefile.mk @@ -11,7 +11,7 @@ $(project)_libraries = TestCommon $(project)_noinstall := 1 TestCommon_targetdir := lib -TestCommon_dependencies := Ice IceUtil +TestCommon_dependencies := Ice TestCommon_sliceflags := --dll-export TEST_API TestCommon_cppflags := -DTEST_API_EXPORTS -I$(includedir) -I$(project) -Itest/include diff --git a/cpp/test/Glacier2/dynamicFiltering/Makefile.mk b/cpp/test/Glacier2/dynamicFiltering/Makefile.mk index 5545484237e..dde95aa40d5 100644 --- a/cpp/test/Glacier2/dynamicFiltering/Makefile.mk +++ b/cpp/test/Glacier2/dynamicFiltering/Makefile.mk @@ -7,7 +7,7 @@ # # ********************************************************************** -$(test)_dependencies = Glacier2 Ice IceUtil TestCommon +$(test)_dependencies = Glacier2 Ice TestCommon $(test)_client_sources = Client.cpp Test.ice diff --git a/cpp/test/Glacier2/sessionControl/Makefile.mk b/cpp/test/Glacier2/sessionControl/Makefile.mk index 39e93bceac6..64810ff1f4f 100644 --- a/cpp/test/Glacier2/sessionControl/Makefile.mk +++ b/cpp/test/Glacier2/sessionControl/Makefile.mk @@ -7,7 +7,7 @@ # # ********************************************************************** -$(test)_dependencies = Glacier2 Ice IceUtil TestCommon +$(test)_dependencies = Glacier2 Ice TestCommon $(test)_client_sources = Client.cpp Session.ice diff --git a/cpp/test/Ice/info/Makefile.mk b/cpp/test/Ice/info/Makefile.mk index 434ad5349fa..eb728bd5bbf 100644 --- a/cpp/test/Ice/info/Makefile.mk +++ b/cpp/test/Ice/info/Makefile.mk @@ -8,6 +8,6 @@ # ********************************************************************** $(test)_client_sources = Test.ice TestI.cpp Client.cpp AllTests.cpp -$(test)_dependencies = IceSSL Ice IceUtil TestCommon +$(test)_dependencies = IceSSL Ice TestCommon tests += $(test)
\ No newline at end of file diff --git a/cpp/test/Ice/services/Makefile.mk b/cpp/test/Ice/services/Makefile.mk index 7d7ff76732f..2e5f1cd7e09 100644 --- a/cpp/test/Ice/services/Makefile.mk +++ b/cpp/test/Ice/services/Makefile.mk @@ -7,6 +7,6 @@ # # ********************************************************************** -$(test)_dependencies = Glacier2 IceStorm IceGrid Ice IceUtil TestCommon +$(test)_dependencies = Glacier2 IceStorm IceGrid Ice TestCommon tests += $(test)
\ No newline at end of file diff --git a/cpp/test/IceDiscovery/simple/Makefile.mk b/cpp/test/IceDiscovery/simple/Makefile.mk index 70d52e49241..6a37be70a15 100644 --- a/cpp/test/IceDiscovery/simple/Makefile.mk +++ b/cpp/test/IceDiscovery/simple/Makefile.mk @@ -7,6 +7,6 @@ # # ********************************************************************** -$(test)_dependencies = IceDiscovery Ice IceUtil TestCommon +$(test)_dependencies = IceDiscovery Ice TestCommon tests += $(test) diff --git a/cpp/test/IceGrid/simple/Makefile.mk b/cpp/test/IceGrid/simple/Makefile.mk index c8346e72030..00a01bcb0ed 100644 --- a/cpp/test/IceGrid/simple/Makefile.mk +++ b/cpp/test/IceGrid/simple/Makefile.mk @@ -7,6 +7,6 @@ # # ********************************************************************** -$(test)_dependencies = IceLocatorDiscovery IceGrid Glacier2 Ice IceUtil TestCommon +$(test)_dependencies = IceLocatorDiscovery IceGrid Glacier2 Ice TestCommon tests += $(test)
\ No newline at end of file diff --git a/cpp/test/IceSSL/configuration/Makefile.mk b/cpp/test/IceSSL/configuration/Makefile.mk index b0c9b1f2ab1..84b17c74c80 100644 --- a/cpp/test/IceSSL/configuration/Makefile.mk +++ b/cpp/test/IceSSL/configuration/Makefile.mk @@ -7,6 +7,6 @@ # # ********************************************************************** -$(test)_dependencies = IceSSL Ice IceUtil TestCommon +$(test)_dependencies = IceSSL Ice TestCommon tests += $(test) diff --git a/cpp/test/IceStorm/federation/Makefile.mk b/cpp/test/IceStorm/federation/Makefile.mk index de316f2bbda..8d735359c70 100644 --- a/cpp/test/IceStorm/federation/Makefile.mk +++ b/cpp/test/IceStorm/federation/Makefile.mk @@ -8,7 +8,7 @@ # ********************************************************************** $(test)_programs = publisher subscriber -$(test)_dependencies = IceStorm Ice IceUtil TestCommon +$(test)_dependencies = IceStorm Ice TestCommon $(test)_publisher_sources = Publisher.cpp Event.ice $(test)_subscriber_sources = Subscriber.cpp Event.ice diff --git a/cpp/test/IceStorm/federation2/Makefile.mk b/cpp/test/IceStorm/federation2/Makefile.mk index 012bbe6da48..9315d0a6a59 100644 --- a/cpp/test/IceStorm/federation2/Makefile.mk +++ b/cpp/test/IceStorm/federation2/Makefile.mk @@ -8,7 +8,7 @@ # ********************************************************************** $(test)_programs = publisher subscriber -$(test)_dependencies = IceStorm Ice IceUtil TestCommon +$(test)_dependencies = IceStorm Ice TestCommon $(test)_publisher_sources = Publisher.cpp Event.ice $(test)_subscriber_sources = Subscriber.cpp Event.ice diff --git a/cpp/test/IceStorm/rep1/Makefile.mk b/cpp/test/IceStorm/rep1/Makefile.mk index 5155cc324f6..aba2205cdaa 100644 --- a/cpp/test/IceStorm/rep1/Makefile.mk +++ b/cpp/test/IceStorm/rep1/Makefile.mk @@ -8,7 +8,7 @@ # ********************************************************************** $(test)_programs = publisher subscriber sub -$(test)_dependencies = IceStorm Ice IceUtil TestCommon +$(test)_dependencies = IceStorm Ice TestCommon $(test)_publisher_sources = Publisher.cpp Single.ice $(test)_subscriber_sources = Subscriber.cpp Single.ice diff --git a/cpp/test/IceStorm/repgrid/Makefile.mk b/cpp/test/IceStorm/repgrid/Makefile.mk index 437b6c6b36f..a6bd78d5e33 100644 --- a/cpp/test/IceStorm/repgrid/Makefile.mk +++ b/cpp/test/IceStorm/repgrid/Makefile.mk @@ -7,7 +7,7 @@ # # ********************************************************************** -$(test)_dependencies = IceStorm Ice IceUtil TestCommon +$(test)_dependencies = IceStorm Ice TestCommon $(test)_client_sources = Client.cpp Single.ice diff --git a/cpp/test/IceStorm/repstress/Makefile.mk b/cpp/test/IceStorm/repstress/Makefile.mk index 63d03c56fb7..1dade11fe2d 100644 --- a/cpp/test/IceStorm/repstress/Makefile.mk +++ b/cpp/test/IceStorm/repstress/Makefile.mk @@ -8,7 +8,7 @@ # ********************************************************************** $(test)_programs = publisher subscriber control -$(test)_dependencies = IceStorm Ice IceUtil TestCommon +$(test)_dependencies = IceStorm Ice TestCommon $(test)_publisher_sources = Publisher.cpp Single.ice Controller.ice $(test)_subscriber_sources = Subscriber.cpp Single.ice Controller.ice diff --git a/cpp/test/IceStorm/single/Makefile.mk b/cpp/test/IceStorm/single/Makefile.mk index 60694e4883d..2ed64d34d89 100644 --- a/cpp/test/IceStorm/single/Makefile.mk +++ b/cpp/test/IceStorm/single/Makefile.mk @@ -8,7 +8,7 @@ # ********************************************************************** $(test)_programs = publisher subscriber -$(test)_dependencies = IceStorm Ice IceUtil TestCommon +$(test)_dependencies = IceStorm Ice TestCommon $(test)_publisher_sources = Publisher.cpp Single.ice $(test)_subscriber_sources = Subscriber.cpp Single.ice diff --git a/cpp/test/IceStorm/stress/Makefile.mk b/cpp/test/IceStorm/stress/Makefile.mk index 96cfdfccc30..cbd00e516bb 100644 --- a/cpp/test/IceStorm/stress/Makefile.mk +++ b/cpp/test/IceStorm/stress/Makefile.mk @@ -8,7 +8,7 @@ # ********************************************************************** $(test)_programs = publisher subscriber -$(test)_dependencies = IceStorm Ice IceUtil TestCommon +$(test)_dependencies = IceStorm Ice TestCommon $(test)_publisher_sources = Publisher.cpp Event.ice $(test)_subscriber_sources = Subscriber.cpp Event.ice diff --git a/cpp/test/IceUtil/stacktrace/StackTrace.debug-release.OSX b/cpp/test/IceUtil/stacktrace/StackTrace.debug-release.OSX index 8f02f6229d8..754ca4c9302 100644 --- a/cpp/test/IceUtil/stacktrace/StackTrace.debug-release.OSX +++ b/cpp/test/IceUtil/stacktrace/StackTrace.debug-release.OSX @@ -1,4 +1,4 @@ - 0 IceUtil::NullHandleException::NullHandleException(char const*, int) in libIceUtil.3.7a0.dylib + 0 IceUtil::NullHandleException::NullHandleException(char const*, int) in libIce.3.7a0.dylib 1 (anonymous namespace)::Thrower::fifth in client 2 (anonymous namespace)::Thrower::forth in client 3 (anonymous namespace)::Thrower::third in client diff --git a/cpp/test/IceUtil/stacktrace/StackTrace.debug.OSX b/cpp/test/IceUtil/stacktrace/StackTrace.debug.OSX index aaafd456370..878bf41ba65 100644 --- a/cpp/test/IceUtil/stacktrace/StackTrace.debug.OSX +++ b/cpp/test/IceUtil/stacktrace/StackTrace.debug.OSX @@ -1,6 +1,6 @@ - 0 IceUtil::Exception::Exception(char const*, int) in libIceUtil.3.7a0.dylib - 1 IceUtil::NullHandleException::NullHandleException(char const*, int) in libIceUtil.3.7a0.dylib - 2 IceUtil::NullHandleException::NullHandleException(char const*, int) in libIceUtil.3.7a0.dylib + 0 IceUtil::Exception::Exception(char const*, int) in libIce.3.7a0.dylib + 1 IceUtil::NullHandleException::NullHandleException(char const*, int) in libIce.3.7a0.dylib + 2 IceUtil::NullHandleException::NullHandleException(char const*, int) in libIce.3.7a0.dylib 3 (anonymous namespace)::Thrower::fifth() in client 4 (anonymous namespace)::Thrower::forth() in client 5 (anonymous namespace)::Thrower::third() in client diff --git a/cpp/test/IceUtil/stacktrace/StackTrace.release.OSX b/cpp/test/IceUtil/stacktrace/StackTrace.release.OSX index 3bb0ce97ea5..615e28e9cb9 100644 --- a/cpp/test/IceUtil/stacktrace/StackTrace.release.OSX +++ b/cpp/test/IceUtil/stacktrace/StackTrace.release.OSX @@ -1,3 +1,3 @@ - 0 IceUtil::NullHandleException::NullHandleException(char const*, int) in libIceUtil.3.7a0.dylib + 0 IceUtil::NullHandleException::NullHandleException(char const*, int) in libIce.3.7a0.dylib 1 main in client 2 start in libdyld.dylib
\ No newline at end of file diff --git a/objective-c/Makefile b/objective-c/Makefile index ebe7227a707..a524fbe2224 100644 --- a/objective-c/Makefile +++ b/objective-c/Makefile @@ -17,7 +17,7 @@ include $(lang_srcdir)/config/Make.rules # Load C++ dependencies # $(eval $(call load-translator-dependencies,$(top_srcdir)/cpp/src/slice2objc)) -$(eval $(call load-dependencies,$(addprefix $(top_srcdir)/cpp/src/,IceUtil Slice Ice IceSSL))) +$(eval $(call load-dependencies,$(addprefix $(top_srcdir)/cpp/src/,Ice IceSSL))) # # Load source projects diff --git a/objective-c/config/Make.rules.Darwin b/objective-c/config/Make.rules.Darwin deleted file mode 100644 index ba80e55440f..00000000000 --- a/objective-c/config/Make.rules.Darwin +++ /dev/null @@ -1,91 +0,0 @@ -# ********************************************************************** -# -# Copyright (c) 2003-2016 ZeroC, Inc. All rights reserved. -# -# This copy of Ice is licensed to you under the terms described in the -# ICE_LICENSE file included in this distribution. -# -# ********************************************************************** - -# -# This file is included by Make.rules when uname is Darwin. -# - -OSX_TARGET_MIN_SDK_VERSION = 10.9 - -CC = xcrun clang -CXX = xcrun clang++ - -CPPFLAGS += -pthread -fvisibility=hidden -OBJCFLAGS += -Wall -Werror -mmacosx-version-min=$(OSX_TARGET_MIN_SDK_VERSION) - -# -# By default we build x86_64 binaries. -# -ifeq ($(OBJCARCHFLAGS),) - OBJCARCHFLAGS := -arch x86_64 -endif - -ifeq ($(OPTIMIZE),yes) - OBJCFLAGS := $(OBJCARCHFLAGS) -O2 -DNDEBUG $(OBJCFLAGS) -else - OBJCFLAGS := $(OBJCARCHFLAGS) -g $(OBJCFLAGS) -endif - -LOADER_PATH = @loader_path - -ifeq ($(RPATH_DIR),) - ifdef ice_src_dist - RPATH_DIR = @loader_path/$(libdir) - else - RPATH_DIR = $(ice_dir)/$(libsubdir) - endif -endif - -# -# Clear rpath setting when doing a system install -# -ifeq ($(ice_dir),/usr) - RPATH_DIR = -endif - -ifneq ($(RPATH_DIR),) - LDEXEFLAGS = -Wl,-rpath,$(RPATH_DIR) - ifndef ice_src_dist - LDEXEFLAGS += -Wl,-rpath,@loader_path/$(testlibdir) - endif -endif - -ifdef ice_src_dist - rpathlink = -Wl,-rpath,$(1) -endif - -# -# Enable ARC for targets in demo/ and test/ subdirectories -# when COMPILE_WITH_ARC is defined. -# -ifneq ($(findstring demo/,${CURDIR}),) - TARGET_SUPPORT_ARC = yes -endif - -ifneq ($(findstring test/,${CURDIR}),) - TARGET_SUPPORT_ARC = yes -endif - -ifeq ($(TARGET_SUPPORT_ARC),yes) - ifeq ($(COMPILE_WITH_ARC),yes) - # - # Don't add these to OBJCFLAGS flex and bison generated files used in - # some demos doesn't support ARC. - # - ARCFLAGS = -fobjc-arc -fobjc-arc-exceptions - endif -endif - -mklib = libtool -static -o $(1) $(2) -mkshlib = $(CXX) -dynamiclib $(LDFLAGS) -o $(1) -install_name @rpath/$(2) $(3) $(4) - -BASELIBS = -L$(ice_cpp_dir)/$(libsubdir) -lIce -lIceUtil -framework Foundation -LIBS = -lIceObjC$(libsuffix) -framework Foundation -ICESSL_LIBS = -lIceSSLObjC$(libsuffix) -TEST_LIBS = -lTestCommonObjC $(LIBS) diff --git a/objective-c/src/Ice/Makefile.mk b/objective-c/src/Ice/Makefile.mk index bea8e25498d..c04fb70e6cd 100644 --- a/objective-c/src/Ice/Makefile.mk +++ b/objective-c/src/Ice/Makefile.mk @@ -12,7 +12,7 @@ $(project)_libraries = IceObjC IceObjC_targetdir := $(libdir) IceObjC_cppflags := -DICE_API_EXPORTS -I$(project) -I$(top_srcdir)/cpp/include -I$(top_srcdir)/cpp/include/generated IceObjC_sliceflags := --include-dir objc/Ice --dll-export ICE_API -IceObjC_dependencies := Ice IceUtil +IceObjC_dependencies := Ice IceObjC_slicedir := $(slicedir)/Ice IceObjC_includedir := $(includedir)/objc/Ice IceObjC_excludes := $(slicedir)/Ice/ValueFactory.ice \ diff --git a/objective-c/src/IceSSL/Makefile.mk b/objective-c/src/IceSSL/Makefile.mk index f79c05e5d62..3e1bdabaefa 100644 --- a/objective-c/src/IceSSL/Makefile.mk +++ b/objective-c/src/IceSSL/Makefile.mk @@ -12,7 +12,7 @@ $(project)_libraries = IceSSLObjC IceSSLObjC_targetdir := $(libdir) IceSSLObjC_cppflags := -DICESSL_API_EXPORTS -Isrc/Ice -I$(top_srcdir)/cpp/include -I$(top_srcdir)/cpp/include/generated IceSSLObjC_sliceflags := --include-dir objc/IceSSL --dll-export ICESSL_API -IceSSLObjC_dependencies := IceObjC Ice IceUtil +IceSSLObjC_dependencies := IceObjC Ice IceSSLObjC_slicedir := $(slicedir)/IceSSL IceSSLObjC_includedir := $(includedir)/objc/IceSSL diff --git a/php/Makefile b/php/Makefile index 95003946833..8d85e16fdb2 100644 --- a/php/Makefile +++ b/php/Makefile @@ -16,7 +16,7 @@ include $(top_srcdir)/config/Make.rules # Load C++ dependencies # $(eval $(call load-translator-dependencies,$(top_srcdir)/cpp/src/slice2php)) -$(eval $(call load-dependencies,$(addprefix $(top_srcdir)/cpp/src/,IceUtil Slice Ice IceSSL IceDiscovery IceLocatorDiscovery))) +$(eval $(call load-dependencies,$(addprefix $(top_srcdir)/cpp/src/,Ice IceSSL IceDiscovery IceLocatorDiscovery))) # # Load php rules after loading C++ dependencies diff --git a/php/src/php5/Makefile.mk b/php/src/php5/Makefile.mk index 12b4b0003c0..38043d01e92 100644 --- a/php/src/php5/Makefile.mk +++ b/php/src/php5/Makefile.mk @@ -13,9 +13,14 @@ IcePHP_target := php-module IcePHP_targetname := IcePHP IcePHP_targetdir := $(lang_srcdir)/lib IcePHP_installdir := $(install_phplibdir) -IcePHP_cppflags := -I$(project) -I$(top_srcdir)/cpp/include -I$(top_srcdir)/cpp/include/generated $(php_cppflags) +IcePHP_cppflags := -I$(project) -I$(top_srcdir)/cpp/include -I$(top_srcdir)/cpp/include/generated -I$(top_srcdir)/cpp/src -DSLICE_API_EXPORTS $(php_cppflags) IcePHP_ldflags := $(php_ldflags) -IcePHP_dependencies := IceDiscovery IceLocatorDiscovery IceSSL Ice Slice IceUtil +IcePHP_dependencies := IceDiscovery IceLocatorDiscovery IceSSL Ice +IcePHP_libs := mcpp +IcePHP_extra_sources := $(filter-out %Util.cpp %Python.cpp %Ruby.cpp %DotNetNames.cpp,\ + $(wildcard $(top_srcdir)/cpp/src/Slice/*.cpp)) \ + $(top_srcdir)/cpp/src/Slice/SliceUtil.cpp \ + $(top_srcdir)/cpp/src/Slice/PHPUtil.cpp projects += $(project) -srcs:: $(project)
\ No newline at end of file +srcs:: $(project) diff --git a/php/src/php7/Makefile.mk b/php/src/php7/Makefile.mk index 12b4b0003c0..38043d01e92 100644 --- a/php/src/php7/Makefile.mk +++ b/php/src/php7/Makefile.mk @@ -13,9 +13,14 @@ IcePHP_target := php-module IcePHP_targetname := IcePHP IcePHP_targetdir := $(lang_srcdir)/lib IcePHP_installdir := $(install_phplibdir) -IcePHP_cppflags := -I$(project) -I$(top_srcdir)/cpp/include -I$(top_srcdir)/cpp/include/generated $(php_cppflags) +IcePHP_cppflags := -I$(project) -I$(top_srcdir)/cpp/include -I$(top_srcdir)/cpp/include/generated -I$(top_srcdir)/cpp/src -DSLICE_API_EXPORTS $(php_cppflags) IcePHP_ldflags := $(php_ldflags) -IcePHP_dependencies := IceDiscovery IceLocatorDiscovery IceSSL Ice Slice IceUtil +IcePHP_dependencies := IceDiscovery IceLocatorDiscovery IceSSL Ice +IcePHP_libs := mcpp +IcePHP_extra_sources := $(filter-out %Util.cpp %Python.cpp %Ruby.cpp %DotNetNames.cpp,\ + $(wildcard $(top_srcdir)/cpp/src/Slice/*.cpp)) \ + $(top_srcdir)/cpp/src/Slice/SliceUtil.cpp \ + $(top_srcdir)/cpp/src/Slice/PHPUtil.cpp projects += $(project) -srcs:: $(project)
\ No newline at end of file +srcs:: $(project) diff --git a/python/Makefile b/python/Makefile index c94798c58d1..13d0972180e 100644 --- a/python/Makefile +++ b/python/Makefile @@ -15,7 +15,7 @@ include $(top_srcdir)/config/Make.rules # # Load C++ dependencies # -$(eval $(call load-dependencies,$(addprefix $(top_srcdir)/cpp/src/,IceUtil Slice Ice IceSSL))) +$(eval $(call load-dependencies,$(addprefix $(top_srcdir)/cpp/src/,Ice IceSSL))) # # Load python rules after loading C++ dependencies diff --git a/python/modules/IcePy/Makefile.mk b/python/modules/IcePy/Makefile.mk index 641e749363e..3a53715194b 100644 --- a/python/modules/IcePy/Makefile.mk +++ b/python/modules/IcePy/Makefile.mk @@ -7,15 +7,21 @@ # # ********************************************************************** -$(project)_libraries := IcePy +$(project)_libraries := IcePy IcePy_target := python-module IcePy_targetname := IcePy IcePy_targetdir := $(lang_srcdir)/python IcePy_installdir := $(install_pythondir) -IcePy_cppflags := -I$(project) -I$(top_srcdir)/cpp/include -I$(top_srcdir)/cpp/include/generated $(python_cppflags) +IcePy_cppflags := -I$(project) -I$(top_srcdir)/cpp/include -I$(top_srcdir)/cpp/include/generated \ + -I$(top_srcdir)/cpp/src -DSLICE_API_EXPORTS $(python_cppflags) IcePy_ldflags := $(python_ldflags) -IcePy_dependencies := IceSSL Ice Slice IceUtil +IcePy_dependencies := IceSSL Ice +IcePy_libs := mcpp +IcePy_extra_sources := $(filter-out %Util.cpp %Ruby.cpp %DotNetNames.cpp,\ + $(wildcard $(top_srcdir)/cpp/src/Slice/*.cpp)) \ + $(top_srcdir)/cpp/src/Slice/SliceUtil.cpp \ + $(top_srcdir)/cpp/src/Slice/PythonUtil.cpp projects += $(project) -srcs:: $(project)
\ No newline at end of file +srcs:: $(project) diff --git a/ruby/Makefile b/ruby/Makefile index c993e6009ec..9d9f9b10657 100644 --- a/ruby/Makefile +++ b/ruby/Makefile @@ -15,7 +15,7 @@ include $(top_srcdir)/config/Make.rules # # Load C++ dependencies # -$(eval $(call load-dependencies,$(addprefix $(top_srcdir)/cpp/src/,IceUtil Slice Ice IceSSL))) +$(eval $(call load-dependencies,$(addprefix $(top_srcdir)/cpp/src/,Ice IceSSL))) $(eval $(call load-translator-dependencies,$(top_srcdir)/cpp/src/slice2rb)) # diff --git a/ruby/src/IceRuby/Makefile.mk b/ruby/src/IceRuby/Makefile.mk index 47b10468eae..6ccbe914fc6 100644 --- a/ruby/src/IceRuby/Makefile.mk +++ b/ruby/src/IceRuby/Makefile.mk @@ -13,9 +13,15 @@ IceRuby_target := ruby-module IceRuby_targetname := IceRuby IceRuby_targetdir := $(lang_srcdir)/ruby IceRuby_installdir := $(install_rubylibdir) -IceRuby_cppflags := -I$(project) -I$(top_srcdir)/cpp/include -I$(top_srcdir)/cpp/include/generated $(ruby_cppflags) +IceRuby_cppflags := -I$(project) -I$(top_srcdir)/cpp/include -I$(top_srcdir)/cpp/include/generated \ + -I$(top_srcdir)/cpp/src -DSLICE_API_EXPORTS $(ruby_cppflags) IceRuby_ldflags := $(ruby_ldflags) -IceRuby_dependencies := IceSSL Ice Slice IceUtil +IceRuby_dependencies := IceSSL Ice +IceRuby_libs := mcpp +IceRuby_extra_sources := $(filter-out %Util.cpp %Python.cpp %DotNetNames.cpp,\ + $(wildcard $(top_srcdir)/cpp/src/Slice/*.cpp)) \ + $(top_srcdir)/cpp/src/Slice/SliceUtil.cpp \ + $(top_srcdir)/cpp/src/Slice/RubyUtil.cpp projects += $(project) -srcs:: $(project)
\ No newline at end of file +srcs:: $(project) |