Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into ruby-new
Browse files Browse the repository at this point in the history
  • Loading branch information
pepone committed Jan 22, 2024
2 parents 6d20a06 + 9af8a37 commit 3330840
Show file tree
Hide file tree
Showing 33 changed files with 90 additions and 69 deletions.
8 changes: 0 additions & 8 deletions cpp/src/Slice/msbuild/slice.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,7 @@
<ClCompile Include="..\FileTracker.cpp" />
<ClCompile Include="..\Grammar.cpp" />
<ClCompile Include="..\Parser.cpp" />
<ClCompile Include="..\PHPUtil.cpp" />
<ClCompile Include="..\Preprocessor.cpp" />
<ClCompile Include="..\Python.cpp" />
<ClCompile Include="..\PythonUtil.cpp" />
<ClCompile Include="..\Ruby.cpp" />
<ClCompile Include="..\RubyUtil.cpp" />
<ClCompile Include="..\Scanner.cpp" />
<ClCompile Include="..\SliceUtil.cpp" />
<ClCompile Include="..\StringLiteralUtil.cpp" />
Expand All @@ -110,10 +105,7 @@
<ClInclude Include="..\Grammar.h" />
<ClInclude Include="..\GrammarUtil.h" />
<ClInclude Include="..\Parser.h" />
<ClInclude Include="..\PHPUtil.h" />
<ClInclude Include="..\Preprocessor.h" />
<ClInclude Include="..\PythonUtil.h" />
<ClInclude Include="..\RubyUtil.h" />
<ClInclude Include="..\Util.h" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
Expand Down
12 changes: 0 additions & 12 deletions cpp/src/Slice/msbuild/slice.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,12 @@
<ClCompile Include="..\FileTracker.cpp" />
<ClCompile Include="..\Grammar.cpp" />
<ClCompile Include="..\Parser.cpp" />
<ClCompile Include="..\PHPUtil.cpp" />
<ClCompile Include="..\Preprocessor.cpp" />
<ClCompile Include="..\Python.cpp" />
<ClCompile Include="..\PythonUtil.cpp" />
<ClCompile Include="..\Ruby.cpp" />
<ClCompile Include="..\RubyUtil.cpp" />
<ClCompile Include="..\Scanner.cpp" />
<ClCompile Include="..\SliceUtil.cpp" />
<ClCompile Include="..\StringLiteralUtil.cpp" />
<ClCompile Include="..\CPlusPlusUtil.cpp" />
<ClCompile Include="..\FileTracker.cpp" />
<ClCompile Include="..\Grammar.cpp" />
<ClCompile Include="..\JavaUtil.cpp" />
<ClCompile Include="..\Parser.cpp" />
<ClCompile Include="..\PHPUtil.cpp" />
<ClCompile Include="..\Preprocessor.cpp" />
Expand Down Expand Up @@ -257,16 +250,11 @@
<ClInclude Include="..\Grammar.h" />
<ClInclude Include="..\GrammarUtil.h" />
<ClInclude Include="..\Parser.h" />
<ClInclude Include="..\PHPUtil.h" />
<ClInclude Include="..\Preprocessor.h" />
<ClInclude Include="..\PythonUtil.h" />
<ClInclude Include="..\RubyUtil.h" />
<ClInclude Include="..\Util.h" />
<ClInclude Include="..\CPlusPlusUtil.h" />
<ClInclude Include="..\FileTracker.h" />
<ClInclude Include="..\Grammar.h" />
<ClInclude Include="..\GrammarUtil.h" />
<ClInclude Include="..\JavaUtil.h" />
<ClInclude Include="..\Parser.h" />
<ClInclude Include="..\PHPUtil.h" />
<ClInclude Include="..\Preprocessor.h" />
Expand Down
2 changes: 1 addition & 1 deletion cpp/src/slice2php/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include <IceUtil/ConsoleUtil.h>
#include <Slice/Preprocessor.h>
#include <Slice/FileTracker.h>
#include <Slice/PHPUtil.h>
#include "PHPUtil.h"
#include <Slice/Parser.h>
#include <Slice/Util.h>
#include <cstring>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//

#include <Slice/Util.h>
#include <Slice/PHPUtil.h>
#include "PHPUtil.h"
#include <functional>
#include <algorithm>
#include <vector>
Expand Down
File renamed without changes.
4 changes: 4 additions & 0 deletions cpp/src/slice2php/msbuild/slice2php.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="..\Main.cpp" />
<ClCompile Include="..\PHPUtil.cpp" />
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="..\Slice2PHP.rc" />
Expand All @@ -120,6 +121,9 @@
<ItemGroup>
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\PHPUtil.h" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
<Import Project="..\..\..\msbuild\packages\mcpp.v143.2.7.2.17\build\native\mcpp.v143.targets" Condition="Exists('..\..\..\msbuild\packages\mcpp.v143.2.7.2.17\build\native\mcpp.v143.targets')" />
Expand Down
8 changes: 8 additions & 0 deletions cpp/src/slice2php/msbuild/slice2php.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
<ClCompile Include="..\Main.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\PHPUtil.cpp">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="..\Slice2PHP.rc">
Expand All @@ -27,4 +30,9 @@
<ItemGroup>
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\PHPUtil.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion cpp/src/slice2py/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Copyright (c) ZeroC, Inc. All rights reserved.
//

#include <Slice/PythonUtil.h>
#include "PythonUtil.h"
#include <Slice/Util.h>
#include <IceUtil/ConsoleUtil.h>

Expand Down
2 changes: 1 addition & 1 deletion cpp/src/Slice/Python.cpp → cpp/src/slice2py/Python.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include <IceUtil/FileUtil.h>
#include <Slice/Preprocessor.h>
#include <Slice/FileTracker.h>
#include <Slice/PythonUtil.h>
#include "PythonUtil.h"
#include <Slice/Util.h>
#include <cstring>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Copyright (c) ZeroC, Inc. All rights reserved.
//

#include <Slice/PythonUtil.h>
#include "PythonUtil.h"
#include <Slice/Util.h>
#include <IceUtil/IceUtil.h>
#include <IceUtil/StringUtil.h>
Expand Down
File renamed without changes.
5 changes: 5 additions & 0 deletions cpp/src/slice2py/msbuild/slice2py.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="..\Main.cpp" />
<ClCompile Include="..\Python.cpp" />
<ClCompile Include="..\PythonUtil.cpp" />
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="..\Slice2Py.rc" />
Expand All @@ -120,6 +122,9 @@
<ItemGroup>
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\PythonUtil.h" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
<Import Project="..\..\..\msbuild\packages\mcpp.v143.2.7.2.17\build\native\mcpp.v143.targets" Condition="Exists('..\..\..\msbuild\packages\mcpp.v143.2.7.2.17\build\native\mcpp.v143.targets')" />
Expand Down
11 changes: 11 additions & 0 deletions cpp/src/slice2py/msbuild/slice2py.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@
<ClCompile Include="..\Main.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\Python.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\PythonUtil.cpp">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="..\Slice2Py.rc">
Expand All @@ -27,4 +33,9 @@
<ItemGroup>
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\PythonUtil.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion cpp/src/slice2rb/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Copyright (c) ZeroC, Inc. All rights reserved.
//

#include <Slice/RubyUtil.h>
#include "RubyUtil.h"
#include <Slice/Util.h>
#include <IceUtil/ConsoleUtil.h>

Expand Down
2 changes: 1 addition & 1 deletion cpp/src/Slice/Ruby.cpp → cpp/src/slice2rb/Ruby.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include <IceUtil/ConsoleUtil.h>
#include <Slice/Preprocessor.h>
#include <Slice/FileTracker.h>
#include <Slice/RubyUtil.h>
#include "RubyUtil.h"
#include <Slice/Util.h>

#include <string.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Copyright (c) ZeroC, Inc. All rights reserved.
//

#include <Slice/RubyUtil.h>
#include "RubyUtil.h"
#include <Slice/Util.h>
#include <IceUtil/InputUtil.h>
#include <iterator>
Expand Down
File renamed without changes.
5 changes: 5 additions & 0 deletions cpp/src/slice2rb/msbuild/slice2rb.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="..\Main.cpp" />
<ClCompile Include="..\Ruby.cpp" />
<ClCompile Include="..\RubyUtil.cpp" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\IceUtil\msbuild\iceutil\iceutil.vcxproj">
Expand All @@ -119,6 +121,9 @@
<ItemGroup>
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\RubyUtil.h" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
<Import Project="..\..\..\msbuild\packages\mcpp.v143.2.7.2.17\build\native\mcpp.v143.targets" Condition="Exists('..\..\..\msbuild\packages\mcpp.v143.2.7.2.17\build\native\mcpp.v143.targets')" />
Expand Down
11 changes: 11 additions & 0 deletions cpp/src/slice2rb/msbuild/slice2rb.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@
<ClCompile Include="..\Main.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\Ruby.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\RubyUtil.cpp">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="..\Slice2Rb.rc">
Expand All @@ -27,4 +33,9 @@
<ItemGroup>
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\RubyUtil.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
</Project>
10 changes: 4 additions & 6 deletions php/src/Makefile.mk
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,16 @@ IcePHP_target := php-module
IcePHP_targetname := ice
IcePHP_targetdir := lib
IcePHP_installdir := $(install_phplibdir)
IcePHP_cppflags := -I$(project) -I$(top_srcdir)/cpp/src $(ice_cpp_cppflags) $(php_cppflags)
IcePHP_cppflags := -I$(project) -I$(top_srcdir)/cpp/src -I$(top_srcdir)/cpp/src/slice2php $(ice_cpp_cppflags) $(php_cppflags)
IcePHP_ldflags := $(php_ldflags)
IcePHP_dependencies := IceDiscovery++11 IceLocatorDiscovery++11 IceSSL++11 Ice++11
# TODO temporary ++11 dependencies are not linked
IcePHP_system_libs := -L$(top_srcdir)/cpp/lib/x86_64-linux-gnu \
-L$(top_srcdir)/cpp/lib \
-lIce++11 -lIceSSL++11 -lIceDiscovery++11 -lIceLocatorDiscovery++11
IcePHP_extra_sources := $(filter-out %Util.cpp %Ruby.cpp,\
$(wildcard $(top_srcdir)/cpp/src/Slice/*.cpp)) \
$(top_srcdir)/cpp/src/Slice/SliceUtil.cpp \
$(top_srcdir)/cpp/src/Slice/PHPUtil.cpp \
$(top_srcdir)/cpp/src/Slice/StringLiteralUtil.cpp \

IcePHP_extra_sources := $(wildcard $(top_srcdir)/cpp/src/Slice/*.cpp) \
$(top_srcdir)/cpp/src/slice2php/PHPUtil.cpp \

projects += $(project)
srcs:: $(project)
2 changes: 1 addition & 1 deletion php/src/Operation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include "Types.h"
#include "Util.h"

#include "Slice/PHPUtil.h"
#include "PHPUtil.h"

using namespace std;
using namespace IcePHP;
Expand Down
2 changes: 1 addition & 1 deletion php/src/Types.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#include <IceUtil/InputUtil.h>
#include <IceUtil/OutputUtil.h>
#include <Slice/PHPUtil.h>
#include "PHPUtil.h"
#include <Ice/SlicedData.h>

#include <limits>
Expand Down
2 changes: 1 addition & 1 deletion php/src/Util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include "Util.h"

#include <Ice/UUID.h>
#include <Slice/PHPUtil.h>
#include "PHPUtil.h"

#include <algorithm>
#include <ctype.h>
Expand Down
10 changes: 4 additions & 6 deletions python/modules/IcePy/Makefile.mk
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,13 @@ IcePy_target := python-module
IcePy_targetname := IcePy
IcePy_targetdir := $(lang_srcdir)/python
IcePy_installdir := $(install_pythondir)
IcePy_cppflags := -I$(project) $(ice_cpp_cppflags) -I$(top_srcdir)/cpp/src $(python_cppflags)
IcePy_cppflags := -I$(project) $(ice_cpp_cppflags) -I$(top_srcdir)/cpp/src -I$(top_srcdir)/cpp/src/slice2py $(python_cppflags)
IcePy_system_libs := $(python_ldflags)
IcePy_dependencies := IceDiscovery IceLocatorDiscovery IceSSL Ice
IcePy_libs := mcpp
IcePy_extra_sources := $(filter-out %Util.cpp %Ruby.cpp,\
$(wildcard $(top_srcdir)/cpp/src/Slice/*.cpp)) \
$(top_srcdir)/cpp/src/Slice/SliceUtil.cpp \
$(top_srcdir)/cpp/src/Slice/PythonUtil.cpp \
$(top_srcdir)/cpp/src/Slice/StringLiteralUtil.cpp \
IcePy_extra_sources := $(wildcard $(top_srcdir)/cpp/src/Slice/*.cpp) \
$(top_srcdir)/cpp/src/slice2py/PythonUtil.cpp \
$(top_srcdir)/cpp/src/slice2py/Python.cpp \

#
# On the default platform, always write the module in the python directory.
Expand Down
2 changes: 1 addition & 1 deletion python/modules/IcePy/Operation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include <Ice/Properties.h>
#include <Ice/Proxy.h>
#include <IceUtil/Time.h>
#include <Slice/PythonUtil.h>
#include "PythonUtil.h"

using namespace std;
using namespace IcePy;
Expand Down
2 changes: 1 addition & 1 deletion python/modules/IcePy/Slice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <Slice.h>
#include <Util.h>
#include <Slice/Preprocessor.h>
#include <Slice/PythonUtil.h>
#include "PythonUtil.h"
#include <Slice/Util.h>
#include <IceUtil/Options.h>
#include <IceUtil/ConsoleUtil.h>
Expand Down
2 changes: 1 addition & 1 deletion python/modules/IcePy/Util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <Ice/LocalException.h>
#include <Ice/Protocol.h>
#include <Ice/UUID.h>
#include <Slice/PythonUtil.h>
#include "PythonUtil.h"
#include <compile.h>
#include <frameobject.h>

Expand Down
10 changes: 5 additions & 5 deletions python/modules/IcePy/msbuild/icepy.vcxproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="14.0"
xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
Expand All @@ -20,12 +19,12 @@
</ProjectConfiguration>
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\..\..\..\cpp\src\slice2py\Python.cpp" />
<ClCompile Include="..\..\..\..\cpp\src\slice2py\PythonUtil.cpp" />
<ClCompile Include="..\..\..\..\cpp\src\Slice\FileTracker.cpp" />
<ClCompile Include="..\..\..\..\cpp\src\Slice\Grammar.cpp" />
<ClCompile Include="..\..\..\..\cpp\src\Slice\Parser.cpp" />
<ClCompile Include="..\..\..\..\cpp\src\Slice\Preprocessor.cpp" />
<ClCompile Include="..\..\..\..\cpp\src\Slice\Python.cpp" />
<ClCompile Include="..\..\..\..\cpp\src\Slice\PythonUtil.cpp" />
<ClCompile Include="..\..\..\..\cpp\src\Slice\Scanner.cpp" />
<ClCompile Include="..\..\..\..\cpp\src\Slice\SliceUtil.cpp" />
<ClCompile Include="..\..\..\..\cpp\src\Slice\StringLiteralUtil.cpp" />
Expand All @@ -52,6 +51,7 @@
<ClCompile Include="..\ValueFactoryManager.cpp" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\..\..\cpp\src\slice2py\PythonUtil.h" />
<ClInclude Include="..\BatchRequestInterceptor.h" />
<ClInclude Include="..\Communicator.h" />
<ClInclude Include="..\Config.h" />
Expand Down Expand Up @@ -205,4 +205,4 @@
CopyDependencies
</BuildDependsOn>
</PropertyGroup>
</Project>
</Project>
Loading

0 comments on commit 3330840

Please sign in to comment.