Skip to content
Permalink
Browse files

Fixes QsCompiler build scripts in macos, linux (#255)

  • Loading branch information
eginez authored and bettinaheim committed Nov 20, 2019
1 parent 7836e10 commit 1ca68a9c43a9d6c05f7fb4cb1ce46295e70d6091
@@ -17,7 +17,8 @@
</ItemGroup>

<PropertyGroup>
<QscExe>dotnet "..\..\..\CommandLineTool\bin\$(Configuration)\netcoreapp3.0\qsc.dll"</QscExe>
<QscExe>dotnet</QscExe>
<QsLib>"../../../CommandLineTool/bin/$(Configuration)/netcoreapp3.0/qsc.dll"</QsLib>
</PropertyGroup>

<Target Name="EnsureRecompileOnChange">
@@ -34,7 +35,7 @@
<QsSourceFiles Include="**\*.qs" Exclude="@(QsSourceFiles)" />
</ItemGroup>
<PropertyGroup>
<QscCommand>$(QscExe) build -v --format MsBuild --proj "$(MSBuildProjectName)" -i "@(QsSourceFiles,'" "')" -r "@(QsReferences,'" "')" -o $(OutputPath)</QscCommand>
<QscCommand>$(QscExe) $(QsLib) build -v --format MsBuild --proj "$(MSBuildProjectName)" -i "@(QsSourceFiles,'" "')" -r "@(QsReferences,'" "')" -o $(OutputPath)</QscCommand>
</PropertyGroup>
<Exec Command="$(QscCommand)" IgnoreExitCode="false" />
</Target>
@@ -20,7 +20,8 @@
<ExecutionTestsDir>ExecutionTests\</ExecutionTestsDir>
<GenFilesDir>generated\</GenFilesDir>
<SimulationTarget>"..\Target\bin\$(Configuration)\netstandard2.1\Simulation.dll"</SimulationTarget>
<QscExe>dotnet "..\..\..\CommandLineTool\bin\$(Configuration)\netcoreapp3.0\qsc.dll"</QscExe>
<QscExe>dotnet</QscExe>
<QsLib>"../../../CommandLineTool/bin/$(Configuration)/netcoreapp3.0/qsc.dll"</QsLib>
</PropertyGroup>

<ItemGroup>
@@ -57,7 +58,7 @@
<QsSourceFiles Include="**\*.qs" Exclude="@(QsSourceFiles)" />
</ItemGroup>
<PropertyGroup>
<QscCommand>$(QscExe) build -v --format MsBuild --proj "$(MSBuildProjectName)" -i "@(QsSourceFiles,'" "')" -r "@(QsReferences,'" "')" -o $(GenFilesDir) --load "$(SimulationTarget)"</QscCommand>
<QscCommand>$(QscExe) $(QsLib) build -v --format MsBuild --proj "$(MSBuildProjectName)" -i "@(QsSourceFiles,'" "')" -r "@(QsReferences,'" "')" -o $(GenFilesDir) --load "$(SimulationTarget)"</QscCommand>
</PropertyGroup>
<Message Importance="low" Text="executing command '$(QscCommand)'" />
<Exec Command="$(QscCommand)" IgnoreExitCode="false" />

0 comments on commit 1ca68a9

Please sign in to comment.
You can’t perform that action at this time.