Commit Graph

2494 Commits (431b3b0c6dc4e5ab07ff3cefd9b21de5580f6902)

Author SHA1 Message Date
Ansariel 431b3b0c6d Merge branch 'develop' of https://github.com/secondlife/viewer
# Conflicts:
#	.github/workflows/pre-commit.yaml
#	indra/cmake/LLPhysicsExtensions.cmake
#	indra/llwindow/llopenglview-objc.mm
#	indra/newview/CMakeLists.txt
#	indra/newview/llappdelegate-objc.mm
2025-10-20 23:56:48 +02:00
Ansariel 1a58d3e023 Merge branch 'master' of https://github.com/FirestormViewer/phoenix-firestorm-202507
# Conflicts:
#	indra/cmake/APR.cmake
2025-10-20 23:16:15 +02:00
Rye 41e9595522
Rework new convex decomp into a physicsextensions stub package and fix havok and havok_tpv builds for darwin universal to utilize new vhacd stub (#4858) 2025-10-20 13:10:19 -04:00
Ansariel 77746a648f Prevent full rebuild each time CMake detects any changes 2025-10-20 11:27:00 +02:00
Ansariel 5c03f284af Merge branch 'develop' of https://github.com/secondlife/viewer
# Conflicts:
#	indra/cmake/APR.cmake
#	indra/cmake/LLPhysicsExtensions.cmake
#	indra/newview/llsurface.cpp
#	indra/newview/pipeline.cpp
#	indra/newview/skins/default/xui/en/notifications.xml
#	indra/newview/viewer_manifest.py
2025-10-18 13:01:08 +02:00
Ansariel 9c9f555ae3 Merge branch 'master' of https://github.com/FirestormViewer/phoenix-firestorm-202507
# Conflicts:
#	autobuild.xml
#	indra/cmake/LLPhysicsExtensions.cmake
2025-10-18 12:44:12 +02:00
Ansariel 36217e7cb3 Merge branch 'master' of https://github.com/FirestormViewer/phoenix-firestorm
# Conflicts:
#	autobuild.xml
#	indra/llwebrtc/llwebrtc.cpp
#	indra/llwebrtc/llwebrtc_impl.h
#	indra/newview/llvoicewebrtc.cpp
#	indra/newview/llvoicewebrtc.h
2025-10-18 12:33:24 +02:00
Jonathan "Geenz" Goodman bbc2ad8fc5 Merge remote-tracking branch 'origin/main' into geenz/main-to-develop 2025-10-17 17:06:39 -04:00
Hecklezz b542e69fe7 Fixed CMake files to work with MacOS universal libraries 2025-10-17 15:25:28 +10:00
Hecklezz 27fe962a3a Merge remote-tracking branch 'upstream/release/2025.07' 2025-10-17 15:20:58 +10:00
Ansariel 06e8393846 Merge branch 'master' of https://github.com/FirestormViewer/phoenix-firestorm 2025-10-16 22:48:43 +02:00
Ansariel 790c52f3fd Fix erroneous check for __attribute__ definition introduced with APR 1.7.5
With the update of APR to versoin 1.7.5., we have to deal with an erroneous check for the definition of __attribute__ added to the APR head file apr.h: The additional check for the definition of __has_attribute is nonsense as it is a C++ internal macro to check for the existance of certain attributes, however it has nothing to do with __attribute__ used in this context.

Since __attribute__ is not defined in MSVC, the modified, erroneous check now causes said definition becoming missing, resulting in a huge amount of "this declaration may not have extern 'C' linkage" errors within in MSVC.

This change utilizes CMake to patch the extracted APR header file, restoring the original version of the check.
2025-10-16 19:44:18 +03:00
Hecklezz 08fc848653 Reverted part of Linking.cmake update for WebRTC until 2025.07 is merged 2025-10-16 14:39:47 +10:00
Hecklezz 14e3561f67 Updated Linking.cmake to fix compilation issues with the updated WebRTC 2025-10-14 16:04:14 +10:00
Hecklezz 5fb339d033 Updated WebRTC.cmake to fix compilation issues with the updated WebRTC 2025-10-13 14:32:26 +10:00
Ansariel e7b3d68cab Merge branch 'develop' of https://github.com/secondlife/viewer
# Conflicts:
#	autobuild.xml
#	indra/cmake/LLPhysicsExtensions.cmake
#	indra/llprimitive/CMakeLists.txt
#	indra/newview/CMakeLists.txt
#	indra/newview/lltexturectrl.cpp
#	indra/newview/llviewerobject.cpp
#	indra/newview/llviewertexture.cpp
#	indra/newview/llviewerwindow.cpp
#	indra/newview/llvovolume.cpp
#	indra/newview/skins/default/xui/en/floater_marketplace.xml
#	indra/newview/skins/default/xui/en/floater_model_preview.xml
#	indra/newview/skins/default/xui/en/floater_search.xml
2025-10-11 18:51:03 +02:00
Rye b277cc6a8f Initial VHACD based llconvexdecomposition 2025-10-03 09:51:03 -04:00
Brad Linden 589498fece Reenable havok llphysicsextensions on Darwin x86_64 with llphysicsextensions_stub used for aarch64 2025-10-01 18:01:19 -07:00
Ansariel a7fe0c1d78 Merge branch 'release/2025.07' of https://github.com/secondlife/viewer
# Conflicts:
#	indra/llwindow/llopenglview-objc.mm
2025-09-12 12:42:49 +02:00
Rye 452c8e0ea4
Follow up fixes for Apple Silicon (#4662)
* Remove GLM sse flag from cmake that was moved to llpreprocessor.h

* Further reduce performance loss of HDR and Sharpening on bandwith-constrained gpu by combining gamma correction into tonemap/sharpening shader passes

* Update SSE2NEON to 1.8.0 to fix random render nans

* Fix occasional startup crash from LLCachedControl being declared in global scope
2025-09-11 20:54:32 -04:00
Brad Linden f98a61be70 Improvements found in reviewing mac_arm branch #4629 2025-09-10 13:04:04 -07:00
Beq 710cbf564d More unused-but-set fixes. Also remove Linux exclusion
Linux was suppressing these issues rather than fixing them.
2025-09-08 21:45:25 +01:00
Ansariel 9849da1a3e Hotfix incorrect check in apr.h on the fly, causing tons of external C linkage errors showing up in VS 2025-09-06 15:23:14 +02:00
Ansariel 255b5c6381 Merge branch 'project/mac_universal' of https://github.com/secondlife/viewer
# Conflicts:
#	autobuild.xml
#	indra/CMakeLists.txt
#	indra/cmake/LLKDU.cmake
#	indra/newview/CMakeLists.txt
2025-09-06 12:03:58 +02:00
Rye 8f43b5b77b Fix macos build arch and deploy target due to cmake behavior changes 2025-09-05 19:35:22 -04:00
Andrey Kleshchev 12704b9411 viewer-cef build fixes 2025-09-05 19:00:05 +03:00
Ansariel b99cf9fb86 Merge branch 'project/mac_universal' of https://github.com/secondlife/viewer
# Conflicts:
#	autobuild.xml
#	indra/cmake/00-Common.cmake
#	indra/cmake/APR.cmake
#	indra/cmake/Audio.cmake
#	indra/cmake/Boost.cmake
#	indra/cmake/Copy3rdPartyLibs.cmake
#	indra/cmake/LLKDU.cmake
#	indra/cmake/LLPrimitive.cmake
#	indra/cmake/Meshoptimizer.cmake
#	indra/cmake/NGHTTP2.cmake
#	indra/cmake/OPENAL.cmake
#	indra/llaudio/llvorbisencode.cpp
#	indra/llcommon/linden_common.h
#	indra/llcommon/llcommon.cpp
#	indra/llcommon/llfasttimer.cpp
#	indra/llcommon/llfasttimer.h
#	indra/llcommon/llfile.cpp
#	indra/llcommon/llmemory.h
#	indra/llcommon/llprofiler.h
#	indra/llcommon/llthreadsafequeue.h
#	indra/llfilesystem/lldir_win32.cpp
#	indra/llkdu/llimagej2ckdu.cpp
#	indra/llkdu/llimagej2ckdu.h
#	indra/llkdu/llkdumem.h
#	indra/llplugin/slplugin/CMakeLists.txt
#	indra/llrender/llfontfreetype.cpp
#	indra/llrender/llfontfreetype.h
#	indra/llwindow/CMakeLists.txt
#	indra/llwindow/llopenglview-objc.mm
#	indra/llwindow/llwindowmacosx-objc.h
#	indra/llwindow/llwindowwin32.cpp
#	indra/media_plugins/cef/CMakeLists.txt
#	indra/newview/CMakeLists.txt
#	indra/newview/llappviewer.cpp
#	indra/newview/llface.cpp
#	indra/newview/pipeline.cpp
#	indra/newview/viewer_manifest.py
2025-09-05 14:55:37 +02:00
Rye 5ffcd3dc88 Fixes for GHA build 2025-08-28 17:58:33 -04:00
Rye 77d71dec86 Fix up universal build 2025-08-28 00:43:38 -04:00
Rye 34ae3db498 Merge branch 'callum/viewer-cef-2025-08' into rye/infinitemac 2025-08-27 23:07:22 -04:00
Rye 536c821c09 MacOS companion changes for dullahan 1.21 including package structure and linkage fixes 2025-08-27 23:05:40 -04:00
Rye a46d4f0f69 Enable deprecation warnings and suppress a small handful that have no modern replacements 2025-08-22 03:32:02 -04:00
Rye ba30737d8f Merge branch 'develop' of github.com:secondlife/viewer into rye/infinitemac 2025-08-20 18:04:55 -04:00
Ansariel 99238dd031 Merge branch 'master' of https://github.com/FirestormViewer/phoenix-firestorm 2025-08-16 23:32:53 +02:00
Ansariel 2e38bd092d Merge branch 'master' of https://github.com/FirestormViewer/phoenix-firestorm 2025-08-16 13:45:36 +02:00
Ansariel 6f21013d89 Fix long standing build issue due to bug in build variables 2025-08-16 13:38:27 +02:00
Ansariel 2034100049 Merge branch 'develop' of https://github.com/secondlife/viewer
# Conflicts:
#	autobuild.xml
#	indra/cmake/Copy3rdPartyLibs.cmake
#	indra/cmake/Discord.cmake
#	indra/newview/CMakeLists.txt
#	indra/newview/llfloaterpreference.cpp
#	indra/newview/viewer_manifest.py
2025-08-05 17:50:50 +02:00
Andrey Kleshchev c267497509 #4470 Adjustments and Mac build fixes 2025-08-05 18:26:29 +03:00
Andrey Kleshchev 61d53a8731 #4470 Plug in Discord SDK package 2025-08-05 18:26:29 +03:00
Ansariel debb86fb57 Merge branch 'develop' of https://github.com/secondlife/viewer
# Conflicts:
#	indra/cmake/CMakeLists.txt
#	indra/cmake/Discord.cmake
#	indra/newview/llappviewer.cpp
#	indra/newview/llfloaterpreference.cpp
#	indra/newview/llspeakers.cpp
#	indra/newview/skins/default/xui/en/panel_preferences_privacy.xml
2025-08-01 00:03:48 +02:00
Erik Kundiman afcc64cb07
Rich Presence support using Discord Social SDK (#4457)
* Rich Presence support using Discord Social SDK

Download DiscordSocialSdk-1.4.9649.zip from
https://discord.com/developers/applications/1394782217405862001/social-sdk/downloads
Add -DUSE_DISCORD:BOOL=ON to your cmake line.
The Discord app needs to be set to be a public client in the OAuth2 tab.
All Discord-related code are contained within one file, llstartup.cpp,
and other classes access it through some opaque layer, static functions,
otherwise we'd get these "duplicate symbol" linking errors.

* Move Discord-related code to llappviewer.cpp

The doFrame is the one called over and over again, so running the
Discord callbacks from there shouldn't have one extra function
overhead, while running the Discord initialisation is only once so
it's much more okay to have the extra function overhead there.

* panel_preferences_privacy tabs

Add tab and checkboxes for discord social SDK integration options to panel_preferences_privacy.xml

* Shorten Discord-related local variable names

* Connect to Discord now through privacy tab

Now the access token is saved the way passwords are saved, but
without a username, so we can have some persistence without having
to implement an OAuth2 backend server cause we would have to store
those tokens there anyway still, and it's just simpler to not go
that way. Discord Social SDK doesn't have a helper for sending code
to a custom server anyway, that we would have to have some
asynchronous HTTP requestor ready.
Show location check button gets enabled only when Discord
integration is enabled, though it's not functioning yet.

* Location for Discord Rich Presence Activity State

I was going to use LLAgentUI::buildLocationString but there's no
location format that shows only region and coords without having
to have the parcel name empty, so I copied buildLocationString
implementation in the case of LOCATION_FORMAT_NO_MATURITY but when
the parcel name is empty.
I had to make updateDiscordActivity check agent's ID and the
existence of agent avatar pointer first before trying to set
Activity Details or State, cause I like the "Show location" button
be checkable not only after online when both the ID & pointer will
have existed. I think this way is simpler than programmatically
enabling the "Show location" button after the user is logged in.
I put a trigger to Activity update somewhere after the user is
logged in for now, not yet after a TP.
The elapsed time gets reset whenever Activity is updated for now,
but I'll try to make elapsed time extended instead.
No Party for now, because I couldn't find a way to make a Party
shown without showing its CurrentSize (I could still get away not
showing its MaxSize by setting it to 0), so the State (location)
is shown above the elapsed time, not on the right of it.
I'll try to figure out to get some representative numbers for its
CurrentSize & MaxSize next.
Also no privacy on hiding the username for now, until the UI is
ready.

* Update Rich Presence location on region change

I had to find a spot in source code where it doesn't cause a crash
(it did in LLAgent::setRegion), but I'm not removing the one in
llstartup.cpp because on login, the one in llviewermessage.cpp
gets only the placeholder coords (10, 10, 10).

* Show display name too on Discord Rich Presence

Avatar name cache can be used right away upon login now after I
moved the update call to the end of PRECACHE section in llstartup.

* Show Discord Rich Presence Activity Party

By setting CurrentSize to the number of people within chat radius,
and MaxSize to the number of people within near range.

* Call updateDiscordActivity too in Discord init

so when the user enables the integration after being logged in,
the init can show the name and location right away.

* Discord Rich Presence: Hide name & connect to llappviewer.cpp

Add option to show/hide avatar name in privacy panel & connect rich presense directly to llappviewer.cpp

* Discord time elapsed not reset on region change

Time elapses right after viewer launch even before login.
Plus parameter name change in header to make it the same as in
implementation.

* Cache bool setting retrievals in updateDiscordActivity

As suggested by Andrey Kleschev.
getBOOL and getF32 are expensive, so using `static LLCachedControl<>`
is the way to do it in llappviewer.cpp.

* Check Discord creds existence before getting token

as suggested by Andrey Kleshchev, anticipating external factors
such as user moving settings from another PC.

* Tracy visibility for looped Discord function calls

As suggested by Andrey Kleshchev. They likely can get pricey so
they need to be visible in the profiler.

* Discord-related error handling/logging

plus delay saving Discord credentials to only after the access
token is successfully updated on Discord, and try to disconnect
from Discord when the integration gets disabled regardless whether
there are credentials to delete or not and whether there's an
access token to revoke or not.

* Use getAvatars already called for Discord Party numbers

so we don't have to make any extra getAvatars calls just for this,
as it's pricy in crowds, and we'll just be piggybacking
`updateSpeakerList` and `updateNearbyList`.

* Assemble Discord Activity Details only once

by saving it to a static global string for reuse.

* Remove updateDiscordActivity call in startup loop

The State field (region & coords) is updated well enough without it
now.

* Rename handleDiscordSocial to toggleDiscordIntegration

* Update Discord Activity only when integration is enabled

No need to check setting for the status change callback one,
because getting there would need to be connected to Discord first,
which in turn needs the integration to be enabled first.

---------

Co-authored-by: Secret Foxtail <remmy@megapahit.net>
2025-07-31 08:54:39 -07:00
Ansariel c4333e2222 Merge branch 'develop' of https://github.com/secondlife/viewer
# Conflicts:
#	indra/llinventory/llsettingssky.cpp
#	indra/newview/llviewertexturelist.cpp
#	indra/newview/skins/default/xui/en/floater_world_map.xml
2025-06-16 12:55:12 +02:00
Jonathan "Geenz" Goodman a0be1e7dfb
macOS 26 build changes (#4239)
* Fix for VLAs now emitting warnings on Xcode 26, and AGL being removed from the SDK.

Note: there was no warning or notice provided for AGL's removal.

* Whitespace.
2025-06-10 14:15:57 -04:00
Andrey Kleshchev ed705097c4 Make builds support Python 3.13 2025-05-07 18:51:57 +03:00
Ansariel 120f85c9e0 Merge branch 'master' of https://github.com/FirestormViewer/phoenix-firestorm-develop
# Conflicts:
#	indra/newview/app_settings/settings.xml
#	indra/newview/llvieweraudio.cpp
#	indra/newview/llvoavatar.h
2025-04-25 22:20:59 +02:00
Beq 1f28648b8a Use fp:precise to eliminate issues with NaN comparisons 2025-04-16 22:32:56 +01:00
Ansariel beb3ff3d36 Merge branch 'release/2025.04' of https://github.com/secondlife/viewer
# Conflicts:
#	indra/newview/llagentlistener.cpp
#	indra/newview/llappearancemgr.cpp
#	indra/newview/llviewerparcelmgr.cpp
#	indra/newview/llvoavatar.cpp
#	indra/newview/llvoavatar.h
#	indra/newview/llvoavatarself.h
2025-04-04 12:46:39 +02:00
Andrey Kleshchev 8c20662ff7 #3712 CMakeFindFrameworks deprecation 2025-04-01 22:13:54 +03:00
Jonathan "Geenz" Goodman 97085ed300 Merge branch 'release/2025.03' into rye/forevermac 2025-03-13 05:28:36 -04:00
Ansariel 750099db68 Merge branch 'release/2025.03' of https://github.com/secondlife/viewer
# Conflicts:
#	indra/llmessage/llproxy.cpp
#	indra/llui/llfolderviewitem.cpp
#	indra/newview/CMakeLists.txt
#	indra/newview/llappviewer.cpp
#	indra/newview/llfilepicker.cpp
#	indra/newview/llfloaterpreference.cpp
#	indra/newview/lloutfitslist.cpp
#	indra/newview/llpanelmaininventory.cpp
#	indra/newview/llviewerprecompiledheaders.h
#	indra/newview/llviewerwindow.cpp
#	indra/newview/skins/default/xui/en/floater_world_map.xml
#	indra/newview/skins/default/xui/en/menu_viewer.xml
#	indra/newview/skins/default/xui/en/panel_preferences_graphics1.xml
#	indra/newview/viewer_manifest.py
2025-03-12 19:31:51 +01:00