Fix iOS build

This commit is contained in:
Benau 2021-02-09 01:41:03 +08:00
parent 1b062279c6
commit 4aecc8988d
2 changed files with 7 additions and 3 deletions

View File

@ -617,7 +617,7 @@ endif()
if(NOT SERVER_ONLY)
if (IOS)
target_link_libraries(supertuxkart "-framework QuartzCore -framework CoreGraphics -framework AVFoundation -framework AudioToolbox -framework Metal -framework GameController -framework OpenGLES -framework UIKit -framework CoreAudio -framework CoreMotion -framework Foundation -framework GLKit")
target_link_libraries(supertuxkart "-framework CoreHaptics -framework QuartzCore -framework CoreGraphics -framework AVFoundation -framework AudioToolbox -framework Metal -framework GameController -framework OpenGLES -framework UIKit -framework CoreAudio -framework CoreMotion -framework Foundation -framework GLKit")
endif()
target_link_libraries(supertuxkart

View File

@ -56,16 +56,20 @@ void override_default_params_for_mobile()
UserConfigParams::m_high_definition_textures = false;
// Enable advanced lighting only for android >= 8
#ifdef ANDROID
UserConfigParams::m_dynamic_lights = (SDL_GetAndroidSDKVersion() >= 26);
#endif
// Disable light scattering for better performance
UserConfigParams::m_light_scatter = false;
// Enable multitouch race GUI
UserConfigParams::m_multitouch_draw_gui = true;
// Default 30 fps for battery saving
#ifdef IOS_STK
// Default 30 fps for battery saving (only used in iOS)
UserConfigParams::m_swap_interval = 2;
#endif
#ifdef ANDROID
// For usage in StringUtils::getUserAgentString