Skip to content

Commit 695e134

Browse files
author
Aidan Lee
committed
separate build xml for encoding
1 parent 16078b9 commit 695e134

File tree

9 files changed

+32
-10
lines changed

9 files changed

+32
-10
lines changed

include/cpp/encoding/Ascii.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#pragma once
22

3+
#include <hxcpp.h>
4+
35
namespace cpp
46
{
57
namespace encoding

include/cpp/encoding/Utf16.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#pragma once
22

3+
#include <hxcpp.h>
4+
35
namespace cpp
46
{
57
namespace encoding

include/cpp/encoding/Utf8.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#pragma once
22

3+
#include <hxcpp.h>
4+
35
namespace cpp
46
{
57
namespace encoding

include/hxcpp.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -358,9 +358,6 @@ typedef PropertyAccessMode PropertyAccess;
358358
#include <cpp/marshal/PointerReference.hpp>
359359
#include <cpp/marshal/View.hpp>
360360
#include <cpp/marshal/Marshal.hpp>
361-
#include <cpp/encoding/Ascii.hpp>
362-
#include <cpp/encoding/Utf8.hpp>
363-
#include <cpp/encoding/Utf16.hpp>
364361
#include <hx/Native.h>
365362
#include <hx/Operators.h>
366363
#include <hx/Functions.h>

src/cpp/encoding/Ascii.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#include <hxcpp.h>
2+
#include <cpp/encoding/Ascii.hpp>
23

34
using namespace cpp::marshal;
45

src/cpp/encoding/Build.xml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<xml>
2+
<pragma once="true" />
3+
4+
<files id="hxcpp_encoding">
5+
<cache value="true" asLibrary="true" />
6+
7+
<compilerflag value="-I${HXCPP}/include/cpp/encoding"/>
8+
9+
<depend files="hxcpp-depends"/>
10+
<depend name="${this_dir}/Build.xml" dateOnly="true" />
11+
12+
<file name="${this_dir}/Ascii.cpp"/>
13+
<file name="${this_dir}/Utf8.cpp"/>
14+
<file name="${this_dir}/Utf16.cpp"/>
15+
</files>
16+
17+
<target id="haxe">
18+
<files id="hxcpp_encoding"/>
19+
</target>
20+
</xml>

src/cpp/encoding/Utf16.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#include <hxcpp.h>
2+
#include <cpp/encoding/Utf16.hpp>
3+
#include <cpp/encoding/Utf8.hpp>
24
#include <array>
35

46
using namespace cpp::marshal;

src/cpp/encoding/Utf8.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
#include <hxcpp.h>
2+
#include <cpp/encoding/Ascii.hpp>
3+
#include <cpp/encoding/Utf8.hpp>
4+
#include <cpp/encoding/Utf16.hpp>
25
#include <array>
36

47
using namespace cpp::marshal;

toolchain/haxe-target.xml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,6 @@
6868
<depend name="${HXCPP}/include/cpp/marshal/ValueReference.hpp"/>
6969
<depend name="${HXCPP}/include/cpp/marshal/View.hpp"/>
7070
<depend name="${HXCPP}/include/cpp/marshal/Marshal.hpp"/>
71-
<depend name="${HXCPP}/include/cpp/encoding/Ascii.hpp"/>
72-
<depend name="${HXCPP}/include/cpp/encoding/Utf8.hpp"/>
73-
<depend name="${HXCPP}/include/cpp/encoding/Utf16.hpp"/>
7471
<depend name="${HXCPP}/include/hx/Scriptable.h"/>
7572
<depend name="${HXCPP}/include/hx/zip/Zip.hpp"/>
7673
<depend name="${HXCPP}/include/hx/zip/Compress.hpp"/>
@@ -202,10 +199,6 @@
202199
<file name = "src/Math.cpp"/>
203200
<file name = "src/String.cpp" tags="haxe,hxstring" />
204201

205-
<file name = "src/cpp/encoding/Ascii.cpp"/>
206-
<file name = "src/cpp/encoding/Utf8.cpp"/>
207-
<file name = "src/cpp/encoding/Utf16.cpp"/>
208-
209202
<addTwice if="linux||android" />
210203
<cache value="1" project="hxcpp_runtime" asLibrary="true" />
211204
</files>

0 commit comments

Comments
 (0)