-
Notifications
You must be signed in to change notification settings - Fork 147
fix build error on latest gcc and linux, gets is deprecated, and raspberry pi build of scons. add mac build of scons #18
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
base: master
Are you sure you want to change the base?
Conversation
|
@stonewell Thanks for opening this PR. Could you please fill up the Individual Contribution License Agreement before I can approve to merging this PR? Thanks! |
|
signed |
| 'cygwin' : 'x86-unknown-cygwin', | ||
| 'darwin' : 'universal-apple-macosx' | ||
| 'darwin' : 'universal-apple-macosx', | ||
| 'raspberry-pi-arm' : 'arm-raspberry-pi-linux' |
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.
nit: Could you align the : please?
| platform_id = sys.platform | ||
| if platform.system() == 'Linux': | ||
| if (platform.machine() == 'i386' or | ||
| if pi_version() is not None: |
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.
Is there any way to hook into platform.machine().startswith('arm') last and differentiate between linux-arm and raspberry-pi-arm instead?
Alternatively, is there anyway to use linux-arm for raspberry?
| @@ -0,0 +1,5 @@ | |||
| LoadTool('gcc-generic', env) | |||
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.
This is intentionally not supported because building iOS/macOS with Scons is unstable and unsupported at the moment.
| NPT_CHECK_SEVERE(service->GetStateVariableValue("AVTransportURI", curURI)); | ||
| NPT_CHECK_SEVERE(service->GetStateVariableValue("AVTransportURIMetaData", metaData)); | ||
|
|
||
| service->SetStateVariable("TransportState", "PLAYING"); |
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 don't think you want this to set the state, it should be your delegate depending if it accepts to play that should update the service.
| PLT_Service* service; | ||
| NPT_CHECK_SEVERE(m_Renderer->FindServiceByType("urn:schemas-upnp-org:service:AVTransport:1", service)); | ||
|
|
||
| service->SetStateVariable("TransportState", "PLAYING"); |
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.
Same here, I think your delegate should be doing that or maybe do it only if the delegate method returned success.
No description provided.