Skip to content

Commit b65a0de

Browse files
committed
Add debug mode parser bindings
1 parent 177ee9a commit b65a0de

File tree

13 files changed

+86716
-9
lines changed

13 files changed

+86716
-9
lines changed

build/Helpers.lua

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,9 +256,13 @@ end
256256
function AddPlatformSpecificFiles(folder, filename)
257257

258258
if os.istarget("windows") then
259-
filter { "toolset:msc*", "architecture:x86_64" }
259+
filter { "toolset:msc*", "architecture:x86_64", "configurations:Debug" }
260+
files { path.join(folder, "x86_64-pc-win32-msvc-d", filename) }
261+
filter { "toolset:msc*", "architecture:x86", "configurations:Debug" }
262+
files { path.join(folder, "i686-pc-win32-msvc-d", filename) }
263+
filter { "toolset:msc*", "architecture:x86_64", "configurations:not Debug" }
260264
files { path.join(folder, "x86_64-pc-win32-msvc", filename) }
261-
filter { "toolset:msc*", "architecture:x86" }
265+
filter { "toolset:msc*", "architecture:x86", "configurations:not Debug" }
262266
files { path.join(folder, "i686-pc-win32-msvc", filename) }
263267
elseif os.istarget("macosx") then
264268
filter { "architecture:arm64" }

src/CppParser/Bindings/CSharp/CppSharp.Parser.CSharp.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
<ProduceReferenceAssembly>true</ProduceReferenceAssembly>
77
<IsPackable>true</IsPackable>
88
<NoWarn>0109</NoWarn>
9-
<PlatformParserFolder Condition="$(IsWindows) AND $(PlatformTarget) == x64">x86_64-pc-win32-msvc</PlatformParserFolder>
9+
<PlatformParserFolder Condition="$(IsWindows) AND $(PlatformTarget) == x64 AND $(Configuration) == 'Debug'">x86_64-pc-win32-msvc-d</PlatformParserFolder>
10+
<PlatformParserFolder Condition="$(IsWindows) AND $(PlatformTarget) == x64 AND $(Configuration) != 'Debug'">x86_64-pc-win32-msvc</PlatformParserFolder>
1011
<PlatformParserFolder Condition="$(IsLinux) AND $(PlatformTarget) == x64 AND $(UseCXX11ABI)">x86_64-linux-gnu-cxx11abi</PlatformParserFolder>
1112
<PlatformParserFolder Condition="$(IsLinux) AND $(PlatformTarget) == x64 AND !$(UseCXX11ABI)">x86_64-linux-gnu</PlatformParserFolder>
1213
<PlatformParserFolder Condition="$(IsMacOSX) AND $(PlatformTarget) == x64">x86_64-apple-darwin12.4.0</PlatformParserFolder>

src/CppParser/Bindings/CSharp/i686-pc-win32-msvc-d/CppSharp.CppParser-symbols.cpp

Lines changed: 378 additions & 0 deletions
Large diffs are not rendered by default.

src/CppParser/Bindings/CSharp/i686-pc-win32-msvc-d/CppSharp.CppParser.cs

Lines changed: 42436 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#define _LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS
2+
#define _LIBCPP_HIDE_FROM_ABI
3+
4+
#include <string>
5+
#include <new>
6+
7+
template __declspec(dllexport) std::allocator<char>::allocator() noexcept;
8+
template __declspec(dllexport) std::basic_string<char, std::char_traits<char>, std::allocator<char>>::basic_string() noexcept(true);
9+
template __declspec(dllexport) std::basic_string<char, std::char_traits<char>, std::allocator<char>>::~basic_string() noexcept;
10+
template __declspec(dllexport) std::basic_string<char, std::char_traits<char>, std::allocator<char>>& std::basic_string<char, std::char_traits<char>, std::allocator<char>>::assign(const char* const);
11+
template __declspec(dllexport) const char* std::basic_string<char, std::char_traits<char>, std::allocator<char>>::data() const noexcept;

src/CppParser/Bindings/CSharp/i686-pc-win32-msvc-d/Std.cs

Lines changed: 493 additions & 0 deletions
Large diffs are not rendered by default.

src/CppParser/Bindings/CSharp/x86_64-pc-win32-msvc-d/CppSharp.CppParser-symbols.cpp

Lines changed: 378 additions & 0 deletions
Large diffs are not rendered by default.

src/CppParser/Bindings/CSharp/x86_64-pc-win32-msvc-d/CppSharp.CppParser.cs

Lines changed: 42481 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#define _LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS
2+
#define _LIBCPP_HIDE_FROM_ABI
3+
4+
#include <string>
5+
#include <new>
6+
7+
template __declspec(dllexport) std::allocator<char>::allocator() noexcept;
8+
template __declspec(dllexport) std::basic_string<char, std::char_traits<char>, std::allocator<char>>::basic_string() noexcept(true);
9+
template __declspec(dllexport) std::basic_string<char, std::char_traits<char>, std::allocator<char>>::~basic_string() noexcept;
10+
template __declspec(dllexport) std::basic_string<char, std::char_traits<char>, std::allocator<char>>& std::basic_string<char, std::char_traits<char>, std::allocator<char>>::assign(const char* const);
11+
template __declspec(dllexport) const char* std::basic_string<char, std::char_traits<char>, std::allocator<char>>::data() const noexcept;

src/CppParser/Bindings/CSharp/x86_64-pc-win32-msvc-d/Std.cs

Lines changed: 493 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)