Skip to content

Commit 166e45e

Browse files
authored
Simplify build output directory to not contain the architecture. (#1869)
1 parent 3ca746a commit 166e45e

File tree

7 files changed

+7
-8
lines changed

7 files changed

+7
-8
lines changed

Diff for: Directory.Build.props

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<GlobalTargetFramework>$(TargetFramework)</GlobalTargetFramework>
2424
<BaseIntermediateOutputPath>$(ObjDir)$(MSBuildProjectName)\</BaseIntermediateOutputPath>
2525
<BaseOutputPath>$(RootDir)bin\</BaseOutputPath>
26-
<OutputPath>$(BaseOutputPath)$(Configuration)_$(PlatformTarget)\</OutputPath>
26+
<OutputPath>$(BaseOutputPath)$(Configuration)\</OutputPath>
2727
<ActionDir>$(BuildDir)$(PremakeAction)\</ActionDir>
2828
<NativeProjectsDir>$(ActionDir)projects\</NativeProjectsDir>
2929
<PackageDir>$(RootDir)artifacts\package\</PackageDir>

Diff for: build/Helpers.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ bindir = path.join(rootdir, "bin")
5959
objsdir = path.join(builddir, "obj");
6060
gendir = path.join(builddir, "gen");
6161
actionbuilddir = path.join(builddir, _ACTION == "gmake2" and "gmake" or (_ACTION and _ACTION or ""));
62-
bindircfg = path.join(bindir, "%{cfg.buildcfg}_%{cfg.platform}");
62+
bindircfg = path.join(bindir, "%{cfg.buildcfg}");
6363
prjobjdir = path.join(objsdir, "%{prj.name}", "%{cfg.buildcfg}")
6464

6565
msvc_buildflags = { "/MP", "/wd4267" }

Diff for: build/build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ pack()
9999

100100
test()
101101
{
102-
dotnet test {"$bindir/${configuration}_$platform","$gendir"/*}/*.Tests*.dll --nologo
102+
dotnet test {"$bindir/${configuration}","$gendir"/*}/*.Tests*.dll --nologo
103103
}
104104

105105
clean()

Diff for: tests/emscripten/test.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ generate=true
3030

3131
if [ $generate = true ]; then
3232
echo "${green}Generating bindings${reset}"
33-
dotnet $rootdir/bin/${dotnet_configuration}_${platform}/CppSharp.CLI.dll \
33+
dotnet $rootdir/bin/${dotnet_configuration}/CppSharp.CLI.dll \
3434
--gen=emscripten --platform=emscripten --arch=wasm32 \
3535
-I$dir/.. -I$rootdir/include -o $dir/gen -m tests $dir/../*.h
3636
fi

Diff for: tests/napi/test.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ else
1616
fi
1717

1818
echo "${green}Generating bindings${reset}"
19-
dotnet $rootdir/bin/${configuration}_${platform}/CppSharp.CLI.dll \
19+
dotnet $rootdir/bin/${configuration}/CppSharp.CLI.dll \
2020
--gen=napi -I$dir/.. -o $dir/gen -m tests $dir/../*.h
2121

2222
echo "${green}Building generated binding files${reset}"

Diff for: tests/quickjs/test.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ dir=$(cd "$(dirname "$0")"; pwd)
44
rootdir="$dir/../.."
55
dotnet_configuration=Release
66
configuration=debug
7-
platform=x64
87
jsinterp="$dir/runtime/build/qjs"
98

109
cd $dir
@@ -23,7 +22,7 @@ generate=true
2322

2423
if [ $generate = true ]; then
2524
echo "${green}Generating bindings${reset}"
26-
dotnet $rootdir/bin/${dotnet_configuration}_${platform}/CppSharp.CLI.dll \
25+
dotnet $rootdir/bin/${dotnet_configuration}/CppSharp.CLI.dll \
2726
$dir/bindings.lua
2827
fi
2928

Diff for: tests/ts/test.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ generate=true
2121

2222
if [ $generate = true ]; then
2323
echo "${green}Generating bindings${reset}"
24-
dotnet $rootdir/bin/${dotnet_configuration}_${platform}/CppSharp.CLI.dll \
24+
dotnet $rootdir/bin/${dotnet_configuration}/CppSharp.CLI.dll \
2525
--gen=ts -I$dir/.. -I$rootdir/include -o $dir/gen -m tests $dir/../*.h
2626
fi
2727

0 commit comments

Comments
 (0)