Skip to content

Only detect NaCl architectures on -DBUILD_GAME_NACL_TARGETS=native - #2033

Open
illwieckz wants to merge 5 commits into
masterfrom
illwieckz/nacl
Open

illwieckz wants to merge 5 commits into
masterfrom
illwieckz/nacl

Conversation

@illwieckz

@illwieckz illwieckz commented Nov 4, 2026 •

Copy link
Copy Markdown
Member

cmake: only detect NaCl architectures on -DBUILD_GAME_NACL_TARGETS=native

Fixes #2031:


cmake: explain why the PNaCl SDK is not usable when cross-compiling

No functional change.


cmake: do not append NaCl targets twice (once for all instead of once for both cgame and sgame)

Do not display the available NaCl targets twice in the BUILD_GAME_NACL_TARGETS cmake help message.

No functionnal change.


cmake: unset the nacl target list before each game iteration, also unset it properly elsewhere

Deduplicate the internal cmake list content.

No functionnal change.


Removed:

cmake: download the Saigo SDK for the host, not for the target

Make possible to cross-compile a Windows engine from Linux while running a native Linux SDK to build the NaCl game.

Improve over:

… for both cgame and sgame)

Do not display the available NaCl targets twice
in the BUILD_GAME_NACL_TARGETS cmake help message.
No functionnal change.
…set it properly elsewhere

Deduplicate the internal cmake list content.
No functionnal change.
@illwieckz illwieckz changed the title Oonly detect NaCl architectures on -DBUILD_GAME_NACL_TARGETS=native Only detect NaCl architectures on -DBUILD_GAME_NACL_TARGETS=native, use native Saigo SDK Nov 4, 2026
@slipher

slipher commented Nov 4, 2026

Copy link
Copy Markdown
Member

cmake: download the Saigo SDK for the host, not for the target

Make possible to cross-compile a Windows engine from Linux while running a native Linux SDK to build the NaCl game.

Thanks. Of course that's what I meant to do originally, but then I blindly copied the other deps package's formulation.
I have rebased this and incorporated it into #2032 since it conflicts with that and it is much more related to the topic of #2032.

@illwieckz illwieckz changed the title Only detect NaCl architectures on -DBUILD_GAME_NACL_TARGETS=native, use native Saigo SDK Only detect NaCl architectures on -DBUILD_GAME_NACL_TARGETS=native Nov 4, 2026
@illwieckz

Copy link
Copy Markdown
Member Author

Thanks. Of course that's what I meant to do originally, but then I blindly copied the other deps package's formulation.

That was a very good start, myself didn't mind at this point as well.

I have rebased this and incorporated it into #2032 since it conflicts with that and it is much more related to the topic of #2032.

Great, I rebased this branch without it.

@slipher slipher left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM with an optional comment

Comment thread cmake/DaemonGame.cmake Outdated
list(APPEND NACL_TARGETS "${detected_target}")
endif()
endforeach()
if (NOT "${nacl_target}" IN_LIST NACL_TARGETS)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Just add everything to NACL_TARGETS and then use list(REMOVE_DUPLICATES NACL_TARGETS).

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.

Nonsense cmake configuration messages about "NaCl architectures"

2 participants