Skip to content

Commit 9da1f34

Browse files
committed
Calling the batch script to set up the env var
Former-commit-id: a9c1ef4
1 parent 8a86d32 commit 9da1f34

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

packages/dclP4DEnvironmentProject.dproj

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,17 @@
4545
<BRCC_OutputDir>..\resources</BRCC_OutputDir>
4646
<DCC_CBuilderOutput>All</DCC_CBuilderOutput>
4747
<DCC_DcuOutput>..\lib\$(Platform)\$(Config)</DCC_DcuOutput>
48-
<DCC_Description>P4D Environments IDE Extension</DCC_Description>
48+
<DCC_Description>P4D - Python Environments Project Menu Extension</DCC_Description>
4949
<DCC_ExeOutput>.\$(Platform)\$(Config)</DCC_ExeOutput>
5050
<DCC_Namespace>System;Xml;Data;Datasnap;Web;Soap;$(DCC_Namespace)</DCC_Namespace>
5151
<DesignOnlyPackage>true</DesignOnlyPackage>
5252
<DllSuffix>$(Auto)</DllSuffix>
5353
<GenDll>true</GenDll>
5454
<GenPackage>true</GenPackage>
55+
<PostBuildEvent>
56+
<![CDATA[..\reg_env.bat $(PRODUCTVERSION) "$(PROJECTDIR)\..\"
57+
$(PostBuildEvent)]]>
58+
</PostBuildEvent>
5559
<VerInfo_Keys>CompanyName=;FileDescription=$(MSBuildProjectName);FileVersion=1.0.0.0;InternalName=;LegalCopyright=;LegalTrademarks=;OriginalFilename=;ProgramID=com.embarcadero.$(MSBuildProjectName);ProductName=$(MSBuildProjectName);ProductVersion=1.0.0.0;Comments=</VerInfo_Keys>
5660
<VerInfo_Locale>1033</VerInfo_Locale>
5761
</PropertyGroup>
@@ -94,7 +98,6 @@
9498
</DelphiCompile>
9599
<DCCReference Include="rtl.dcp"/>
96100
<DCCReference Include="designide.dcp"/>
97-
<DCCReference Include="P4DEnvironmentProject.dcp"/>
98101
<DCCReference Include="..\src\Project\IDE\PyEnvironment.Project.IDE.Helper.pas"/>
99102
<DCCReference Include="..\src\Project\IDE\PyEnvironment.Project.IDE.ManagerMenu.pas"/>
100103
<DCCReference Include="..\src\Project\IDE\PyEnvironment.Project.IDE.Menu.pas"/>
@@ -140,4 +143,20 @@
140143
<Import Project="$(BDS)\Bin\CodeGear.Delphi.Targets" Condition="Exists('$(BDS)\Bin\CodeGear.Delphi.Targets')"/>
141144
<Import Project="$(APPDATA)\Embarcadero\$(BDSAPPDATABASEDIR)\$(PRODUCTVERSION)\UserTools.proj" Condition="Exists('$(APPDATA)\Embarcadero\$(BDSAPPDATABASEDIR)\$(PRODUCTVERSION)\UserTools.proj')"/>
142145
<Import Project="$(MSBuildProjectName).deployproj" Condition="Exists('$(MSBuildProjectName).deployproj')"/>
146+
<PropertyGroup Condition="'$(Config)'=='Debug' And '$(Platform)'=='Win32'">
147+
<PreBuildEvent/>
148+
<PreBuildEventIgnoreExitCode>False</PreBuildEventIgnoreExitCode>
149+
<PreLinkEvent/>
150+
<PreLinkEventIgnoreExitCode>False</PreLinkEventIgnoreExitCode>
151+
<PostBuildEvent>..\reg_env.bat $(PRODUCTVERSION) &quot;$(PROJECTDIR)\..\&quot;</PostBuildEvent>
152+
<PostBuildEventIgnoreExitCode>False</PostBuildEventIgnoreExitCode>
153+
</PropertyGroup>
154+
<PropertyGroup Condition="'$(Config)'=='Release' And '$(Platform)'=='Win32'">
155+
<PreBuildEvent/>
156+
<PreBuildEventIgnoreExitCode>False</PreBuildEventIgnoreExitCode>
157+
<PreLinkEvent/>
158+
<PreLinkEventIgnoreExitCode>False</PreLinkEventIgnoreExitCode>
159+
<PostBuildEvent>..\reg_env.bat $(PRODUCTVERSION) &quot;$(PROJECTDIR)\..\&quot;</PostBuildEvent>
160+
<PostBuildEventIgnoreExitCode>False</PostBuildEventIgnoreExitCode>
161+
</PropertyGroup>
143162
</Project>

0 commit comments

Comments
 (0)