Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
101 commits
Select commit Hold shift + click to select a range
2d82122
Add mod description and status to README
sayhiben Feb 8, 2026
a46cd9a
Implement and stabilize 8-player multiplayer support
sayhiben Feb 8, 2026
0bf05fb
ignore local mac build and docker dirs
sayhiben Feb 8, 2026
69013b2
Refactor 8p player mapping logic and clean macOS PNG linking
sayhiben Feb 9, 2026
f36a776
Merge pull request #1 from sayhiben/codex/8p-mod-cleanup
sayhiben Feb 9, 2026
ae8b98d
Clean up loot bag player mapping and upstream README
sayhiben Feb 9, 2026
0e95632
Fix player text display in lobby selection
sayhiben Feb 9, 2026
780c028
Consolidate player-slot mapping and tighten lobby ready sync
sayhiben Feb 9, 2026
bce9dd6
centralize loot bag slot mapping across UI and items
sayhiben Feb 9, 2026
b7c36be
Extend overflow-player scaling and clean up player-count assumptions
sayhiben Feb 9, 2026
4288b71
Generalize MAXPLAYERS lobby UX and overflow scaling
sayhiben Feb 9, 2026
b36471d
Harden HELO join chunking and add smoke autopilot hooks
sayhiben Feb 9, 2026
fc6c6ce
Add multiplayer smoke harness and verification docs
sayhiben Feb 10, 2026
4f24a78
Expand smoke validation for ready-sync and 16p coverage
sayhiben Feb 10, 2026
0f87d77
test(smoke): expand 15p validation hooks and plan tracking
sayhiben Feb 10, 2026
b975122
Unify status-effect owner encoding for 15-player multiplayer
sayhiben Feb 10, 2026
14ae108
Add status-effect queue smoke lane and tighten PR940 guidance
sayhiben Feb 10, 2026
9ed76e4
Improve smoke gating, mapgen validation, and PR940 checks
sayhiben Feb 11, 2026
396263f
add smoke lanes for lobby, combat, and splitscreen cap
sayhiben Feb 11, 2026
b018bfe
Refactor smoke autopilot hooks and clean PR940 auto usage
sayhiben Feb 11, 2026
f4da9ee
mapgen: add pass10 balancing docs and sweep stability telemetry
sayhiben Feb 12, 2026
1a15a6b
docs: record latest pass10 integration commit
sayhiben Feb 12, 2026
09f6fbc
docs: adopt runs5 gating policy for volatility sweeps
sayhiben Feb 12, 2026
a35e2c7
mapgen: move smoke integration into hooks and refresh tuning plans
sayhiben Feb 12, 2026
1f001a2
Improve Windows setup/install flow for VS builds
sayhiben Feb 14, 2026
9ce7ac9
mapgen: tune overflow generation and update pass14 docs
sayhiben Feb 14, 2026
fcfe816
Improve package-based macOS/Linux build reliability and docs
sayhiben Feb 14, 2026
2e6422e
docs: add PR940 split plan
sayhiben Feb 14, 2026
1f4eaa9
docs: add PR merge tickets and smoke technical notes
sayhiben Feb 14, 2026
87fb1c4
refactor: split smoke hooks and consolidate smoke tooling
sayhiben Feb 14, 2026
37025de
harden mac/linux build flow and share theoraplayer wrapper
sayhiben Feb 14, 2026
ba944d3
refactor smoke tooling and update merge planning docs
sayhiben Feb 16, 2026
2def80e
Improve installer wizard, logging, and setup docs
sayhiben Feb 16, 2026
35b4298
docs: add extended multiplayer release docs
sayhiben Feb 16, 2026
c8d5deb
refactor: update .gitignore and improve build scripts for Linux relea…
sayhiben Feb 25, 2026
8447bcf
sync v5.0.2 compatibility and windows release tooling
sayhiben Mar 17, 2026
48d000a
* fix flutter levelling
Feb 3, 2026
4964c51
* parry tank fix achievement tracker
Feb 3, 2026
59a2bc7
* liches don't kill allies on death
Feb 4, 2026
a64b1f4
* degrade armor, reroll appearances of other items to not be duplicates
Feb 4, 2026
78ec85b
* blindfold skipped by cure ailment
Feb 4, 2026
db414cf
* foocubi add limit of 8 followers in players party on charm recruit
Feb 4, 2026
6acd7a5
* quickcast hotbar setting
Feb 4, 2026
92dd303
* generate path maps on deface break, remove cauldron light field
Feb 4, 2026
737913e
* fix foci displayed PWR bonus
Feb 4, 2026
6fa71c4
* backstab "fix" sort of undo, if enemy has target while hunting only…
Feb 4, 2026
04b1f22
* donation dont spawn over pits because gravity (velocity is needed f…
Feb 4, 2026
2d3b171
* headstone passable if someone inside for haunted castle invis spawning
Feb 4, 2026
fa63d84
* neutrality player monsters add to clipping npc rules for humans
Feb 4, 2026
7c8c911
* door/lock debug cmd update
Feb 4, 2026
d04b464
* frypan quick cook by defend and use
Feb 4, 2026
80abc5a
* leadership max can recruit beasts for myco/dryad/gremlin/gnome/sala…
Feb 4, 2026
0d575d8
* fix short shorts achievement
Feb 9, 2026
8c53bbe
* fix server duplicating client items on use
Feb 9, 2026
6fdd67e
* sinks/fountains drop identified potions
Feb 9, 2026
f2d5701
* monsterAddNearbyItem remove light fields on pickup (orbs etc)
Feb 9, 2026
13a4914
* confessor achievement fix to only dominate spell func
Feb 9, 2026
ba8b6ce
* rescale instrument stat bonus, fix tooltip for next CHR breakpoint
Feb 12, 2026
eabf31b
* mouse option to reduce mouse movement events, command /debug_mouse_…
Feb 12, 2026
9282823
* fix dryad hair per fire magic damage mult not increasing
Feb 12, 2026
72acd93
* abundance now has mp cost, fix levelling to sustain
Feb 12, 2026
a1846d4
* lower starting tier 0 tinkering craft level from 10 to 0
Feb 12, 2026
215e213
* item tooltips update on spell MP cost change (summon, breathe fire)
Feb 12, 2026
823d2fd
* instruments now cost % MP
Feb 12, 2026
cbe95e7
* spellbooks cycle through schools in same container (floor gen, ches…
Feb 12, 2026
72d70a0
* map hash update, fix blindfold PER for curse tooltip
Feb 12, 2026
4657067
* hash update
Feb 12, 2026
175ae0e
* fix envenom duration longer than intended
Feb 12, 2026
7e116c6
* envenom adjust min timer
Feb 12, 2026
7888b0a
* overcharge add levelling, hash update
Feb 12, 2026
ae3257b
* mimic 2x damage if slippery booby trap
Feb 12, 2026
1e4f453
* fix blood waves tooltip damage, update hash
Feb 12, 2026
b7e7047
* fix thrown "hit by a flying" text being invalidated on potion effect
Feb 12, 2026
ea5ad63
* infected branch bow now spores impact now counts as magicstaff vs c…
Feb 12, 2026
3e5eed3
* NPC with rapier no ATK penalty
Feb 15, 2026
2279531
* shadows steal 20% of STR/DEX difference on target if greater
Feb 15, 2026
6435f7f
* commented out tests for salamander mp dividers
Feb 15, 2026
fdb7559
* highlight stations on the map when map discovered
Feb 15, 2026
0d9095f
* prevent sleep loop from sleep trap on players
Feb 15, 2026
d501d2e
* cursed repair and destroy armor scrolls increment gremlin vandal
Feb 15, 2026
39b3b3a
* increase fire sprite atk speed
Feb 15, 2026
50a279d
* push loading music at start of game file loading
Feb 16, 2026
4d9d82a
* fix typo
Feb 16, 2026
1fd4d05
* fix mem leak swapping holiday themes
Feb 16, 2026
68ad274
* add warning msg to ensemble sound load
Feb 16, 2026
e3d5a5a
* gremlin breakable counter 10 min on boss stages
Feb 16, 2026
be41b00
* fix editor
Feb 16, 2026
401668f
* update compendium fountain and chest mimic %
Feb 16, 2026
9f1c47e
* fix stat tracking for lich
Feb 17, 2026
b24e427
* global stat track multiplayer info
Feb 18, 2026
6dfd551
* map hashes update
Feb 19, 2026
0c8839f
fix uninitialized pointer in interface.cpp
SheridanR Feb 21, 2026
4ba9908
reconcile 8p-mod with upstream v5.0.2
sayhiben Feb 25, 2026
8d405a7
add inventory smoke lanes and encapsulate net smoke tracing
sayhiben Feb 25, 2026
edebf20
fix hermit duck ownership aliasing and remote enemy bars
sayhiben Feb 26, 2026
50d2a47
docs: update v5.0.2 changelog with bugfix and validation addendum
sayhiben Feb 26, 2026
6656f14
sync mapgen inputs on level load
sayhiben Mar 22, 2026
84ff3ad
harden level-load sync recovery
sayhiben Mar 22, 2026
0fc0c82
extract level load sync helpers
sayhiben Mar 22, 2026
635415e
docs: refresh v5.0.2 changelog
sayhiben Mar 22, 2026
4d34a37
streamline 5.0.2 release packaging and notes
sayhiben Mar 23, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
**/books/*
build/*
build-*/
# Local distribution/release outputs
/dist/
/release/
tests/smoke/artifacts/
docker/*
!docker/Dockerfile
!docker/docker-compose.yml
!docker/build-linux.sh
**/data/*
**/fonts/*
**/images/*
Expand Down Expand Up @@ -41,6 +50,7 @@ steam_appid.txt
*.log
*.user
*log.txt
!docs/mod_release/mod-changelog.txt
*.cache
*.zip
*.res
Expand Down Expand Up @@ -75,6 +85,9 @@ steam_appid.txt
xcode/Barony/Barony.xcodeproj/project.xcworkspace/*
xcode/Barony/Barony.xcodeproj/xcuserdata/*
*.ps1
!setup_barony_vs2022_x64.ps1
restore-env-*.ps1
install.log
!LICENSE.nativefiledialog.txt
/VS.2015/Barony/x64/Debug
*.sarif
Expand All @@ -83,3 +96,7 @@ xcode/Barony/Barony.xcodeproj/xcuserdata/*
*.ilk
/VS.2015/x64
*.sqlite-journal
/deps/*
# Local smoke outputs and SDK drops
tests/smoke/artifacts/
third_party/steamworks_sdk/
294 changes: 294 additions & 0 deletions AGENTS.md

Large diffs are not rendered by default.

126 changes: 89 additions & 37 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.0)
cmake_minimum_required(VERSION 3.10)
project(barony)

if (NOT CMAKE_BUILD_TYPE)
Expand All @@ -17,6 +17,34 @@ if (NOT DEFINED STEAMWORKS_ENABLED)
endif()
endif()

if (DEFINED ENV{BARONY_SUPER_MULTIPLAYER} AND NOT DEFINED BARONY_SUPER_MULTIPLAYER)
set (BARONY_SUPER_MULTIPLAYER $ENV{BARONY_SUPER_MULTIPLAYER})
endif()

if (NOT DEFINED BARONY_SUPER_MULTIPLAYER)
option(BARONY_SUPER_MULTIPLAYER "Enable 15-Player Multiplayer" ON)
endif()

if (BARONY_SUPER_MULTIPLAYER)
set (BARONY_SUPER_MULTIPLAYER 1)
else()
set (BARONY_SUPER_MULTIPLAYER 0)
endif()

if (DEFINED ENV{BARONY_SMOKE_TESTS} AND NOT DEFINED BARONY_SMOKE_TESTS)
set (BARONY_SMOKE_TESTS $ENV{BARONY_SMOKE_TESTS})
endif()

if (NOT DEFINED BARONY_SMOKE_TESTS)
option(BARONY_SMOKE_TESTS "Compile smoke-test hooks and smoke instrumentation call sites" OFF)
endif()

if (BARONY_SMOKE_TESTS)
set (BARONY_SMOKE_TESTS 1)
else()
set (BARONY_SMOKE_TESTS 0)
endif()

if (DEFINED ENV{OPTIMIZATION_LEVEL})
set (OPTIMIZATION_LEVEL $ENV{OPTIMIZATION_LEVEL})
else()
Expand Down Expand Up @@ -193,7 +221,13 @@ endif()

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")

set(CMAKE_OSX_ARCHITECTURES x86_64)
if (APPLE AND NOT DEFINED CMAKE_OSX_ARCHITECTURES)
if (CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "arm64|aarch64")
set(CMAKE_OSX_ARCHITECTURES arm64 CACHE STRING "Build architectures for macOS")
else()
set(CMAKE_OSX_ARCHITECTURES x86_64 CACHE STRING "Build architectures for macOS")
endif()
endif()

if (EDITOR_ENABLED)
set(EDITOR_EXE_NAME "editor" CACHE STRING "Editor executable name")
Expand All @@ -206,6 +240,18 @@ else()
message("Building without steamworks")
endif()

if (BARONY_SUPER_MULTIPLAYER)
message("Building with Barony Super Multiplayer")
else()
message("Building without Barony Super Multiplayer")
endif()

if (BARONY_SMOKE_TESTS)
message("Building with smoke-test instrumentation")
else()
message("Building without smoke-test instrumentation")
endif()

if (EOS_ENABLED)
message("Building with EOS")
else()
Expand Down Expand Up @@ -403,11 +449,12 @@ if (FMOD_ENABLED)
set(FMOD 1)
endif()
endif()
if(NOT APPLE)
#Linux needs these two.
#Macs have their own special line.
find_package(PNG REQUIRED)
elseif (APPLE)
find_package(PNG REQUIRED)
if (WIN32)
find_package(GLEW REQUIRED)
include_directories(${GLEW_INCLUDE_DIR})
endif()
if (APPLE)
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${FMOD_CXX_FLAGS}")
MESSAGE("CMAKE_CXX_FLAGS: ${CMAKE_CXX_FLAGS}")
set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${FMOD_LINK_FLAGS}")
Expand Down Expand Up @@ -462,12 +509,11 @@ endif()
if( NOT WIN32 )
include_directories(${THREADS_INCLUDE_DIR})
endif()
if(NOT APPLE)
include_directories(${PNG_INCLUDE_DIR})
endif()
include_directories(${PNG_INCLUDE_DIR})
if (FMOD_FOUND)
include_directories(${FMOD_INCLUDE_DIR})
endif()
include_directories(BEFORE ${PROJECT_BINARY_DIR})

# Add the source directory
#file(GLOB_RECURSE SOURCE_FILES src/*.c src/*.h) # Can't do this because it'd then compile barony and editor together. Which just won't work.
Expand All @@ -481,7 +527,7 @@ endif()

#add_subdirectory(books)

configure_file ( "${PROJECT_SOURCE_DIR}/src/Config.hpp.in" "${PROJECT_SOURCE_DIR}/src/Config.hpp")
configure_file("${PROJECT_SOURCE_DIR}/src/Config.hpp.in" "${PROJECT_BINARY_DIR}/Config.hpp")

message("***************************")
message("Debug flags: ")
Expand Down Expand Up @@ -512,7 +558,8 @@ if (APPLE)
#add_executable(barony MACOSX_BUNDLE OSX/SDLmain.m ${GAME_SOURCES} ${COPY_FRAMEWORKS} libfmodex.dylib /opt/local/lib/libpng16.16.dylib)
#add_executable(barony MACOSX_BUNDLE OSX/SDLmain.m ${GAME_SOURCES} ${MACOSX_BUNDLE_ICON_FILE} libfmodex.dylib /opt/local/lib/libpng16.16.dylib)
if (GAME_ENABLED)
add_executable(barony MACOSX_BUNDLE ${GAME_SOURCES} ${MACOSX_BUNDLE_ICON_FILE} ${PROJECT_SOURCE_DIR}/libpng16.16.dylib)
add_executable(barony MACOSX_BUNDLE ${GAME_SOURCES} ${MACOSX_BUNDLE_ICON_FILE})
set_target_properties(barony PROPERTIES OUTPUT_NAME "Barony")
#add_executable(barony OSX/SDLmain.m ${GAME_SOURCES})
#add_executable(barony ${GAME_SOURCES})
#SET_SOURCE_FILES_PROPERTIES(${COPY_FRAMEWORKS} PROPERTIES MACOSX_PACKAGE_LOCATION Frameworks)
Expand All @@ -525,7 +572,6 @@ if (APPLE)
#SET_SOURCE_FILES_PROPERTIES(${SOUND_FILES} PROPERTIES MACOSX_PACKAGE_LOCATION Resources/sound/)
set_source_files_properties(${GAME_SOURCES} PROPERTIES COMPILE_FLAGS "-x objective-c++")
endif(GAME_ENABLED)
SET_SOURCE_FILES_PROPERTIES(${PROJECT_SOURCE_DIR}/libpng16.16.dylib PROPERTIES MACOSX_PACKAGE_LOCATION MacOS)
SET_SOURCE_FILES_PROPERTIES(${COPY_RESOURCES} PROPERTIES MACOSX_PACKAGE_LOCATION Resources)
SET_SOURCE_FILES_PROPERTIES(${MACOSX_BUNDLE_ICON_FILE} PROPERTIES MACOSX_PACKAGE_LOCATION "Resources")
#set_source_files_properties(${GAME_SOURCES} PROPERTIES COMPILE_FLAGS "-stdlib=libc++")
Expand Down Expand Up @@ -553,7 +599,12 @@ if (GAME_ENABLED)
# endif()
set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT barony) # Otherwise, hitting "debug" will default to "ALL_BUILD" :|
if (DEFINED BARONY_DATADIR)
set_target_properties(barony PROPERTIES VS_DEBUGGER_WORKING_DIRECTORY "\$(BARONY_DATADIR)/")
set_target_properties(barony PROPERTIES VS_DEBUGGER_WORKING_DIRECTORY "${BARONY_DATADIR}/")
else()
set_target_properties(barony PROPERTIES VS_DEBUGGER_WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/")
endif()
if (SDL2MAIN_LIBRARY)
target_link_libraries(barony ${SDL2MAIN_LIBRARY})
endif()
target_link_libraries(barony ${SDL2_LIBRARIES} ${SDL2_LIBRARY} ${SDL2IMAGE_LIBRARIES} ${SDL2_IMAGE_LIBRARIES} ${SDL2_NET_LIBRARIES} ${SDL2_TTF_LIBRARIES} ${SDL2TTF_LIBRARY})
if (STEAMWORKS_ENABLED)
Expand Down Expand Up @@ -608,9 +659,6 @@ if (GAME_ENABLED)
if (EOS_ENABLED)
target_link_libraries(barony ${EOS_LIBRARIES})
endif()
if (APPLE)
target_link_libraries(barony ${PROJECT_SOURCE_DIR}/libpng16.16.dylib) #Wait...what? if(APPLE) in if(WIN32)? What was I thinking back then, haha.
endif()
if (${CMAKE_SYSTEM_NAME} MATCHES "BSD|DragonFly" OR ${CMAKE_SYSTEM_NAME} MATCHES "Haiku")
# For backtrace
find_path(EXECINFO_INC NAMES execinfo.h)
Expand All @@ -624,24 +672,23 @@ if (GAME_ENABLED)
endif()
target_link_libraries(barony ${OPENGL_LIBRARIES})
target_link_libraries(barony ${THREADS_LIBRARIES}) # TODO: Not sure what this is doing, since it doesn't appear to be working in Linux!
target_link_libraries(barony -lm) # TODO: In Visual Studio, I bet this is something else, right?
if (NOT CMAKE_SYSTEM_NAME MATCHES "Haiku")
target_link_libraries(barony -lc)
if (NOT WIN32)
target_link_libraries(barony -lm) # TODO: In Visual Studio, I bet this is something else, right?
if (NOT CMAKE_SYSTEM_NAME MATCHES "Haiku")
target_link_libraries(barony -lc)
endif()
endif()
if (FMOD_FOUND)
target_link_libraries(barony ${FMOD_LIBRARY})
endif()
target_link_libraries(barony ${PHYSFS_LIBRARY})
if(NOT APPLE)
#Remember, Mac isn't using find_package for PNG.
target_link_libraries(barony ${PNG_LIBRARY})
endif()
target_link_libraries(barony ${PNG_LIBRARIES})
if (APPLE)
target_link_libraries(barony ${IOKit_LIBRARY})
endif()
# We need to link to Winsock if we're on Windows
if(WIN32)
target_link_libraries(barony wsock32 ws2_32)
target_link_libraries(barony wsock32 ws2_32 ${GLEW_LIBRARIES})
#target_link_libraries(barony -lpng -lfmodex) Mingw, not Visual Studio.
endif()
target_link_libraries(barony ${EXTRA_LIBS}) #Apple needs this for OpenGL to work.
Expand Down Expand Up @@ -689,14 +736,18 @@ if (EDITOR_ENABLED)
#add_executable(editor MACOSX_BUNDLE OSX/SDLmain.m ${EDITOR_SOURCES} ${COPY_FRAMEWORKS} libfmodex.dylib /opt/local/lib/libpng16.16.dylib)
#add_executable(editor MACOSX_BUNDLE OSX/SDLmain.m ${EDITOR_SOURCES} libfmodex.dylib /opt/local/lib/libpng16.16.dylib)
set_source_files_properties("editor.icns" PROPERTIES MACOSX_PACKAGE_LOCATION "Resources")
add_executable(${EDITOR_EXE_NAME} MACOSX_BUNDLE "editor.icns" ${EDITOR_SOURCES} ${PROJECT_SOURCE_DIR}/libpng16.16.dylib)
add_executable(${EDITOR_EXE_NAME} MACOSX_BUNDLE "editor.icns" ${EDITOR_SOURCES})
#SET_SOURCE_FILES_PROPERTIES(${MACOSX_BUNDLE_ICON_FILE} PROPERTIES MACOSX_PACKAGE_LOCATION "Resources")
set_source_files_properties(${EDITOR_SOURCES} PROPERTIES COMPILE_FLAGS "-x objective-c++")
else()
if (WIN32)
# add_executable(${EDITOR_EXE_NAME} EXCLUDE_FROM_ALL ${EDITOR_SOURCES} ${EDITOR_RESOURCE_FILE})
add_executable(${EDITOR_EXE_NAME} ${EDITOR_SOURCES} ${EDITOR_RESOURCE_FILE})
set_target_properties(${EDITOR_EXE_NAME} PROPERTIES VS_DEBUGGER_WORKING_DIRECTORY "\$(BARONY_DATADIR)/")
if (DEFINED BARONY_DATADIR)
set_target_properties(${EDITOR_EXE_NAME} PROPERTIES VS_DEBUGGER_WORKING_DIRECTORY "${BARONY_DATADIR}/")
else()
set_target_properties(${EDITOR_EXE_NAME} PROPERTIES VS_DEBUGGER_WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/")
endif()
else()
add_executable(${EDITOR_EXE_NAME} ${EDITOR_SOURCES} ${EDITOR_RESOURCE_FILE})
endif()
Expand All @@ -715,6 +766,9 @@ if (EDITOR_ENABLED)
#target_link_libraries(${EDITOR_EXE_NAME} OpenSSL::SSL)
#target_link_libraries(${EDITOR_EXE_NAME} OpenSSL::Crypto)
endif()
if (WIN32 AND SDL2MAIN_LIBRARY)
target_link_libraries(${EDITOR_EXE_NAME} ${SDL2MAIN_LIBRARY})
endif()
target_link_libraries(${EDITOR_EXE_NAME} ${SDL2_LIBRARIES} ${SDL2_LIBRARY} ${SDL2IMAGE_LIBRARIES} ${SDL2_IMAGE_LIBRARIES} ${SDL2_NET_LIBRARIES} ${SDL2_TTF_LIBRARIES} ${SDL2TTF_LIBRARY})
if(STEAMWORKS_ENABLED)
target_link_libraries(${EDITOR_EXE_NAME} ${STEAMWORKS_LIBRARY})
Expand All @@ -735,28 +789,26 @@ if (EDITOR_ENABLED)
endif()
target_link_libraries(${EDITOR_EXE_NAME} ${OPENGL_LIBRARIES})
target_link_libraries(${EDITOR_EXE_NAME} ${THREADS_LIBRARIES})
target_link_libraries(${EDITOR_EXE_NAME} -lm) # TODO: Only for Mingw?
if (NOT CMAKE_SYSTEM_NAME MATCHES "Haiku")
target_link_libraries(${EDITOR_EXE_NAME} -lc)
if (NOT WIN32)
target_link_libraries(${EDITOR_EXE_NAME} -lm) # TODO: Only for Mingw?
if (NOT CMAKE_SYSTEM_NAME MATCHES "Haiku")
target_link_libraries(${EDITOR_EXE_NAME} -lc)
endif()
endif()
# We need to link to Winsock if we're on Windows
if (FMOD_FOUND)
target_link_libraries(${EDITOR_EXE_NAME} ${FMOD_LIBRARY})
endif()
if(NOT APPLE)
#Remember, Mac isn't using find_package for FMOD and PNG.
target_link_libraries(${EDITOR_EXE_NAME} ${PHYSFS_LIBRARY})
target_link_libraries(${EDITOR_EXE_NAME} ${PNG_LIBRARY})
endif()
target_link_libraries(${EDITOR_EXE_NAME} ${PHYSFS_LIBRARY})
target_link_libraries(${EDITOR_EXE_NAME} ${PNG_LIBRARY})
if (APPLE)
target_link_libraries(${EDITOR_EXE_NAME} ${PHYSFS_LIBRARY})
target_link_libraries(${EDITOR_EXE_NAME} ${IOKit_LIBRARY})
if (EOS_ENABLED)
target_link_libraries(${EDITOR_EXE_NAME} ${EOS_LIBRARY})
endif()
endif()
if(WIN32)
target_link_libraries(${EDITOR_EXE_NAME} wsock32 ws2_32)
target_link_libraries(${EDITOR_EXE_NAME} wsock32 ws2_32 ${GLEW_LIBRARIES})
endif()
if (APPLE)
if (FMOD_ENABLED)
Expand Down
Loading