Skip to content

Commit 77f41ef

Browse files
Ryerohvani
authored andcommitted
Fix appearance utility build on windows
1 parent 07dbfd7 commit 77f41ef

File tree

5 files changed

+4
-22
lines changed

5 files changed

+4
-22
lines changed

indra/CMakeLists.txt

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -85,17 +85,7 @@ if (ENABLE_MEDIA_PLUGINS)
8585
add_subdirectory(${LIBS_OPEN_PREFIX}media_plugins)
8686
endif (ENABLE_MEDIA_PLUGINS)
8787

88-
# if (LINUX)
89-
# if (INSTALL_PROPRIETARY)
90-
# include(LLAppearanceUtility)
91-
# add_subdirectory(${LLAPPEARANCEUTILITY_SRC_DIR} ${LLAPPEARANCEUTILITY_BIN_DIR})
92-
# endif (INSTALL_PROPRIETARY)
93-
# elseif (WINDOWS)
94-
# # cmake EXISTS requires an absolute path, see indra/cmake/Variables.cmake
95-
# if (EXISTS ${VIEWER_DIR}win_setup)
96-
# add_subdirectory(${VIEWER_DIR}win_setup)
97-
# endif (EXISTS ${VIEWER_DIR}win_setup)
98-
# endif (LINUX)
88+
add_subdirectory(${VIEWER_PREFIX}llappearanceutility)
9989

10090
if (WINDOWS)
10191
# cmake EXISTS requires an absolute path, see indra/cmake/Variables.cmake

indra/llappearanceutility/CMakeLists.txt

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ include(LLImage)
1010
include(LLMath)
1111
include(LLWindow)
1212
include(Linking)
13-
#include(GooglePerfTools)
14-
1513

1614
set(appearance_utility_SOURCE_FILES
1715
appearance_utility.cpp
@@ -65,10 +63,6 @@ target_link_libraries(appearance-utility-bin
6563
llxml
6664
)
6765

68-
add_custom_target(appearance-utility-bin-target ALL
69-
DEPENDS appearance-utility-bin)
70-
71-
7266
if (BUILD_HEADLESS)
7367
add_executable(appearance-utility-headless-bin ${appearance_utility_SOURCE_FILES})
7468

@@ -80,8 +74,5 @@ if (BUILD_HEADLESS)
8074
llrenderheadless
8175
llxml
8276
)
83-
84-
add_custom_target(appearance-utility-headless-bin-target ALL
85-
DEPENDS appearance-utility-headless-bin)
8677
endif (BUILD_HEADLESS)
8778

indra/llappearanceutility/llprocessparams.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ bool LLProcessParams::processInputDataForJointInfo( LLBakingAvatar& avatar )
237237
// pelvisOffset = skin["pelvis_offset"].asReal();
238238
//}
239239
// Now apply the extracted joint data to the avatar
240-
U32 jointCount = jointNames.size();
240+
U32 jointCount = narrow(jointNames.size());
241241

242242
if ( jointOffsets.size() < jointCount )
243243
{

indra/llappearanceutility/llprocessskin.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ void LLProcessSkin::process(std::ostream& output)
8484
{
8585
for (U32 k = 0; k < 4; k++)
8686
{
87-
mat.mMatrix[j][k] = (*iter)[j*4+k].asReal();
87+
mat.mMatrix[j][k] = static_cast<F32>((*iter)[j*4+k].asReal());
8888
}
8989
}
9090
joint_offsets.append( ll_sd_from_vector3( mat.getTranslation() ));

indra/llwindow/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ if (WINDOWS)
121121
lldragdropwin32.h
122122
)
123123
list(APPEND llwindow_LINK_LIBRARIES
124+
wbemuuid
124125
comdlg32 # Common Dialogs for ChooseColor
125126
ole32
126127
dxgi

0 commit comments

Comments
 (0)