Skip to content

Commit

Permalink
[CMake] Add default packaging config for Emscripten
Browse files Browse the repository at this point in the history
  • Loading branch information
past-due committed Feb 15, 2024
1 parent bf985d7 commit e75d8cb
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pkg/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,18 @@ elseif(CMAKE_SYSTEM_NAME MATCHES "Darwin")
set(CPACK_DMG_DS_STORE_SETUP_SCRIPT "${CMAKE_CURRENT_SOURCE_DIR}/dmg/WZDMGSetup.scpt")
set(CPACK_DMG_VOLUME_NAME "Warzone 2100")

elseif(CMAKE_SYSTEM_NAME MATCHES "Emscripten")
# Emscripten builds

# Only install the "Core" component, as it installs all of the data & supporting files & languages
set(CPACK_COMPONENTS_ALL Core)
unset(CPACK_COMPONENT_CORE_DEPENDS)
set(CPACK_ARCHIVE_COMPONENT_INSTALL ON)

# Default package generator for Emscripten (archive)
set(CPACK_GENERATOR "ZIP")
set(CPACK_INCLUDE_TOPLEVEL_DIRECTORY FALSE)

endif()

#####################
Expand Down

0 comments on commit e75d8cb

Please sign in to comment.