Skip to content

Refactored build toolchain for language modules#354

Open
lejcik wants to merge 2 commits into
OpenSalamander:mainfrom
lejcik:lang-modules
Open

Refactored build toolchain for language modules#354
lejcik wants to merge 2 commits into
OpenSalamander:mainfrom
lejcik:lang-modules

Conversation

@lejcik

@lejcik lejcik commented Feb 22, 2026

Copy link
Copy Markdown

Summary:

I refactored the translations section of this project, because the script under translations dir didn't work. Now there's a new script !build_translations.cmd that does everything. I added the missing stuff from altaptrl308.7z, files were updated to match current Salamander version. Also translator.exe tool needed slight update, let it can be used in automated builds.

There were many maintenance files in the archive, but I focused mostly to the build part. So such maintenance scripts may not be functional. See the comments below, I explained some design decisions...

Comment thread src/vcxproj/salamand.sln
{9154D733-3414-41AB-8322-FD44D5BD311C}.Debug|x64.ActiveCfg = Debug|x64
{9154D733-3414-41AB-8322-FD44D5BD311C}.Debug|x64.Build.0 = Debug|x64
{9154D733-3414-41AB-8322-FD44D5BD311C}.Release|Win32.ActiveCfg = Release|Win32
{9154D733-3414-41AB-8322-FD44D5BD311C}.Release|Win32.Build.0 = Release|Win32

@lejcik lejcik Feb 22, 2026

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

demo plugins should not be built for release configurations, as we don't have translations for them

@@ -0,0 +1,2505 @@
[Files]
Original=$BUILD_DIR\lang\english.slg

@lejcik lejcik Feb 22, 2026

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

the original path to english.slg binary file was defined as: Original=..\..\bin\lang\english.slg, so translator has to know where the project binaries are (paths are different for x86 and x64 build), and this complicated the build automation, I introduced possibility to use variable BUILD_DIR, translator supports new cmd-line argument -build-dir (path), and it can expand such paths from the .atp project files

@lejcik lejcik force-pushed the lang-modules branch 2 times, most recently from 012658a to fa6dd29 Compare February 22, 2026 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant