-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
configure settings.xml during build to define USB not supported #17
Conversation
4b174cf
to
61b3352
Compare
<dependencies> | ||
<dependency type="visible" setting="device_connection" operator="is">1</dependency> | ||
</dependencies> | ||
@SETTINGS_XML_IN_NO_USB_END@ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just added this as an afterthought. Found the case that USB was previously activated during the test and this was no longer displayed.
m_settings.device_connection = | ||
kodi::addon::GetSettingEnum("device_connection", device_connection::usb); | ||
#else | ||
m_settings.device_connection = device_connection::rtltcp; | ||
#endif |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because USB was enabled, it is now forced to use tcp.
21cfa68
to
dabc404
Compare
This change it to settings.xml.in and set on add-on compile the settings usable or not. Is done by change the `<visible>` value and set of default connection type. The settings are still inside to prevent problems if something tries somewhere to read it. Further can for build the cmake configuration value "-DUSB_DEVICE_SUPPORT=0" used and if wanted to disable USB support.
dca75fa
to
4feb58c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
addon.cpp does not compile if USB_DEVICE_SUPPORT
is not defined. Look at line 1440, there is an 'else if' without an 'if' then.
Shouldn't |
4feb58c
to
ca8b133
Compare
Yes, now all OS works, have added a commit about. |
Ups, is fixed now. But Jenkins brings now the next and iOS/tvOS become USB device support removed too.
Seems something updated in Jenkins on the morning. |
On new added commit becomes the USB support on Android removed too and Jenkins now happy again on all OS. |
10f18c4
to
bd173a6
Compare
This to fix build errors on Darwin Embedded system (iOS & tvOS).
This fix new Darwin Embedded error: ``` /Users/Shared/jenkins/workspace/binary-addons/kodi-tvos-aarch64-Omega/tools/depends/target/binary-addons/pvr.rtlradio/src/gui/channelsettings.cpp:38:10: fatal error: 'EGL/egl.h' file not found ^~~~~~~~~~~ 32 warnings and 1 error generated. ```
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This change it to settings.xml.in and set on add-on compile the settings usable or not. Is done by change the
<visible>
value and set of default connection type. The settings are still inside to prevent problems if something tries somewhere to read it.Further can for build the cmake configuration value "-DUSB_DEVICE_SUPPORT=0" used and if wanted to disable USB support.
XML with USB support disabled
XML with USB support enabled