Skip to content

Sparse neoAssets checkout and NEO_EXTRA_ASSETS_ALT_PATH#1992

Open
nullsystem wants to merge 1 commit into
NeotokyoRebuild:masterfrom
nullsystem:GH-1991_SparseNeoAssetsCheckout
Open

Sparse neoAssets checkout and NEO_EXTRA_ASSETS_ALT_PATH#1992
nullsystem wants to merge 1 commit into
NeotokyoRebuild:masterfrom
nullsystem:GH-1991_SparseNeoAssetsCheckout

Conversation

@nullsystem

@nullsystem nullsystem commented Jun 11, 2026

Copy link
Copy Markdown
Collaborator

Description

In the CMake add NEO_EXTRA_ASSETS_ALT_PATH option as an alternate neoAssets path to use rather than going through FetchContent. This is used mainly for the CI build to first sparse fetch the neoAssets files as it doesn't need all the files especially since some files are very large and not even used in the build process. This cuts down the overall time to do the whole process. This can also be useful for devs if they prefer to juse fetch it from their already checkedout neoAssets.

Toolchain

  • Linux GCC Distro Native Arch/GCC 16

Linked Issues

In the CMake add NEO_EXTRA_ASSETS_ALT_PATH option as an
alternate neoAssets path to use rather than going through
FetchContent. This is used mainly for the CI build to
first sparse fetch the neoAssets files as it doesn't need
all the files especially since some files are very large
and not even used in the build process. This cuts down
the overall time to do the whole process. This can also
be useful for devs if they prefer to juse fetch it from
their already checkedout neoAssets.

* fixes NeotokyoRebuild#1991
@nullsystem nullsystem requested a review from Masterkatze June 11, 2026 21:51
@nullsystem nullsystem added the CI Continuous Integration (GitHub Actions) label Jun 11, 2026
Comment thread src/CMakeLists.txt
option(NEO_BUILD_VGUI_CONTROLS "Build vgui_controls library" ON)
option(NEO_COPY_LIBRARIES "Copy libraries to bin directory by default" ON)
option(NEO_EXTRA_ASSETS "Copy extra assets into game/neo" ON)
option(NEO_EXTRA_ASSETS_ALT_PATH "Alternate location to fetch the extra assets" "")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

option is for BOOL only, use set(... CACHE PATH ...) here

Comment thread src/CMakeLists.txt
"${NEO_EXTRA_ASSETS_ALT_PATH}/neo"
"${CMAKE_SOURCE_DIR}/../game/neo")
else()
include(FetchContent) # once in the project to include the module

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Remove comments here and on line 609 while we changing this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI Continuous Integration (GitHub Actions)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Github workflow: Sparse checkout neoAssets instead of full

2 participants