Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

プロジェクトファイルをsakura配下に集めませんか?の実装案 #36

14 changes: 14 additions & 0 deletions sakura/sakura_lang.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@
<Link>
<NoEntryPoint>true</NoEntryPoint>
</Link>
<PreBuildEvent>
<Command>HeaderMake -in=..\sakura_core\Funccode_x.hsrc -out=..\sakura_core\Funccode_define.h -mode=define
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

この修正はよろしくないと思います。
preBuild.bat の処理と重複していますし、
Debug/Release でも同じ処理を書いています。

仕様を変えたら複数箇所変更しないといけなくなります。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

preBuild.batを呼ぶように変更するのが良さそうですね。
わざわざ指摘いただいて申し訳ないですが、本件は一旦閉じさせていただきます。

HeaderMake -in=..\sakura_core\Funccode_x.hsrc -out=..\sakura_core\Funccode_enum.h -mode=enum -enum=EFunctionCode</Command>
</PreBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ResourceCompile>
Expand All @@ -71,13 +75,23 @@
<Link>
<NoEntryPoint>true</NoEntryPoint>
</Link>
<PreBuildEvent>
<Command>HeaderMake -in=..\sakura_core\Funccode_x.hsrc -out=..\sakura_core\Funccode_define.h -mode=define
HeaderMake -in=..\sakura_core\Funccode_x.hsrc -out=..\sakura_core\Funccode_enum.h -mode=enum -enum=EFunctionCode</Command>
</PreBuildEvent>
</ItemDefinitionGroup>
<ItemGroup>
<ResourceCompile Include="..\sakura_lang_en_US\sakura_lang_rc.rc" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\sakura_lang_en_US\sakura_rc.h" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="HeaderMake.vcxproj">
<Project>{0f2918b0-23e3-42e8-a1a8-8739f726a23e}</Project>
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
</ProjectReference>
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
Expand Down