Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7038919

Browse files
committed
Put vc.pdb and all_objs in obj directory
1 parent 876f013 commit 7038919

7 files changed

Lines changed: 12 additions & 9 deletions

File tree

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ before_install:
1111
script:
1212
- cd build-tool/haxe
1313
- haxe run.hxml
14-
- cd ../../runtime
15-
- haxelib run hxcpp BuildLibs.xml
16-
- haxelib run hxcpp BuildLibs.xml -DHXCPP_M64
14+
- cd ../../project
15+
- haxelib run hxcpp Build.xml
16+
- haxelib run hxcpp Build.xml -DHXCPP_M64
1717
- cd ../test/ndlls
1818
- haxe compile.hxml && ./cpp/Test
1919
- haxe compile64.hxml && ./cpp64/Test

build-tool/haxe/BuildLibs.hx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ class BuildLibs
55
{
66
static function showUsage()
77
{
8-
Sys.println("Usage : neko buildlibs.n [target ...] [arch] [-debug] [-verbose] [-D...]");
8+
Sys.println("Usage : neko build.n [target ...] [arch] [-debug] [-verbose] [-D...]");
99
Sys.println(" target : clean, ios, android, windows, linux, mac, ios-legacy");
1010
Sys.println(" : static-android, static-windows, static-linux, static-mac,");
1111
Sys.println(" default (=current system)");
@@ -30,7 +30,7 @@ class BuildLibs
3030

3131
static function run(inFlags:Array<String>)
3232
{
33-
var args = ["run.n", "BuildLibs.xml"].concat(inFlags);
33+
var args = ["run.n", "Build.xml"].concat(inFlags);
3434
var here = Sys.getCwd().split("\\").join("/");
3535

3636
var parts = here.split("/");

build-tool/haxe/BuildTool.hx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ class Linker
518518
// Place list of obj files in a file called "all_objs"
519519
if (mFromFile=="@")
520520
{
521-
var fname = "all_objs";
521+
var fname = inCompiler.mObjDir + "/all_objs";
522522
var fout = sys.io.File.write(fname,false);
523523
for(obj in objs)
524524
fout.writeString(obj + "\n");

build-tool/haxe/buildlibs.hxml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
-neko ../../runtime/buildlibs.n
1+
-neko ../../project/build.n
22
-main BuildLibs
33
-D neko_v1
44
-debug

build-tool/msvc-toolchain.xml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@
2929
<set name="CONSOLE_VER" value=",5.01" if="HXCPP_WINXP_COMPAT" />
3030
<set name="CONSOLE_VER" value="" unless="MSVC17+" />
3131

32+
<set name="MSVC_OBJ_DIR" value="obj/mscv${MSVC_VER}${OBJEXT}${OBJCACHE}${XPOBJ}" unless="winrt" />
33+
<set name="MSVC_OBJ_DIR" value="obj/mscv${MSVC_VER}-rt${OBJEXT}${OBJCACHE}${XPOBJ}" if="winrt" />
34+
3235
<compiler id="MSVC" exe="cl.exe" if="windows">
3336
<flag value="-nologo"/>
3437
<flag value="-Od" if="debug"/>
@@ -52,6 +55,7 @@
5255
<flag value="-Zi" unless="HXCPP_COMPILE_CACHE" />
5356
<flag value="-Z7" if="HXCPP_COMPILE_CACHE" />
5457
<flag value="-FS" if="HXCPP_FORCE_PDB_SERVER" />
58+
<flag value="-Fd${MSVC_OBJ_DIR}/vc.pdb" unless="HXCPP_COMPILE_CACHE" />
5559
</section>
5660
<flag value="-Oy-"/>
5761
<flag value="-c"/>
@@ -67,8 +71,7 @@
6771
<flag value="-wd4996"/>
6872
<outflag value="-Fo"/>
6973
<ext value=".obj"/>
70-
<objdir value="obj/mscv${MSVC_VER}${OBJEXT}${OBJCACHE}${XPOBJ}" unless="winrt" />
71-
<objdir value="obj/mscv${MSVC_VER}-rt${OBJEXT}${OBJCACHE}${XPOBJ}" if="winrt" />
74+
<objdir value="${MSVC_OBJ_DIR}" />
7275

7376
<getversion value="cl.exe"/>
7477
</compiler>

project/buildlibs.n

-23.7 KB
Binary file not shown.

run.n

355 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)