Skip to content

Commit

Permalink
internal: unsupport ONLY_SP build (#1085)
Browse files Browse the repository at this point in the history
closes #623
  • Loading branch information
Pospelove authored Apr 4, 2022
1 parent f8ecd0b commit 629b4bc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 19 deletions.
19 changes: 8 additions & 11 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,10 @@ enable_testing()

# Bool options
option(JS_ENGINE_TRACING_ENABLED "Useful for JsEngine debugging. See JsEngine.h" OFF)
option(ONLY_SP "Build only SkyrimPlatform instead of performing full SkyMP build" OFF)
option(SWEETPIE "Affects default client and server configs" ON)
option(PREPARE_NEXUS_ARCHIVES "Prepare SP and other archives during build or not" OFF)

message(STATUS JS_ENGINE_TRACING_ENABLED=${JS_ENGINE_TRACING_ENABLED})
message(STATUS ONLY_SP=${ONLY_SP})
message(STATUS SWEETPIE=${SWEETPIE})
message(STATUS PREPARE_NEXUS_ARCHIVES=${PREPARE_NEXUS_ARCHIVES})
message(STATUS SKYRIM_SE=${SKYRIM_SE})
Expand Down Expand Up @@ -125,15 +123,14 @@ list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules)
add_subdirectory(viet)
add_subdirectory(skyrim-platform)

if(NOT ONLY_SP)
add_subdirectory(client-deps)
add_subdirectory(skymp5-client)
add_subdirectory(skymp5-front)
add_subdirectory(skymp5-functions-lib)
add_subdirectory(skymp5-scripts)
add_subdirectory(skymp5-server)
add_subdirectory(unit)
endif()

add_subdirectory(client-deps)
add_subdirectory(skymp5-client)
add_subdirectory(skymp5-front)
add_subdirectory(skymp5-functions-lib)
add_subdirectory(skymp5-scripts)
add_subdirectory(skymp5-server)
add_subdirectory(unit)

if(PREPARE_NEXUS_ARCHIVES)
add_custom_target(
Expand Down
8 changes: 0 additions & 8 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,6 @@ podman run -it --rm -v "$PWD:$PWD" -w "$PWD" -e VCPKG_DEFAULT_BINARY_CACHE=/home
All build artifacts would be placed into `build/dist`.
#### How to build only SkyrimPlatform
- For those users who want to build SP but not SkyMP there is `ONLY_SP` option:
```sh
cmake .. -DONLY_SP=ON
```
### Linux
On Linux, there might be some tricky dependency issues. To work around them,
Expand Down

0 comments on commit 629b4bc

Please sign in to comment.