Closed Bug 769801 Opened 12 years ago Closed 11 years ago

Signaling code needs separate build for linking with C++ tests.

Categories

(Core :: WebRTC: Signaling, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 792188

People

(Reporter: ehugg, Unassigned)

Details

(Whiteboard: [WebRTC], [blocking-webrtc-])

Attachments

(1 file)

Signaling code needs to be built twice.  Once for inclusion is the browser and differently for the test harness.  In particular MOZILLA_INTERNAL_API should only  be defined in the first case.
Here's the patch that should make signaling twice.

The makes differ by the define of MOZILLA_INTERNAL_API:
ehugg@ehugg-linux:~/mozilla/alder/alder/obj-x86_64-unknown-linux-gnu/media/webrtc$ grep INTERNAL signaling/signaling_ecc/Makefile 
  -DMOZILLA_INTERNAL_API \
  -DMOZILLA_INTERNAL_API \
ehugg@ehugg-linux:~/mozilla/alder/alder/obj-x86_64-unknown-linux-gnu/media/webrtc$ grep INTERNAL signalingtest/signaling_ecc/Makefile 
ehugg@ehugg-linux:~/mozilla/alder/alder/obj-x86_64-unknown-linux-gnu/media/webrtc$ 

Which makes the objs differ like this:
ehugg@ehugg-linux:~/mozilla/alder/alder/obj-x86_64-unknown-linux-gnu/media/webrtc$ nm signaling/signaling_ecc/src/peerconnection/PeerConnectionImpl.o | grep NS_DebugBreak
                 U NS_DebugBreak_P
ehugg@ehugg-linux:~/mozilla/alder/alder/obj-x86_64-unknown-linux-gnu/media/webrtc$ nm signalingtest/signaling_ecc/src/peerconnection/PeerConnectionImpl.o | grep NS_DebugBreak
                 U NS_DebugBreak


f=EKR - to check if this give what we need
f=RJesup - to check if this is the best way to do this.
Attachment #638021 - Flags: feedback?(rjesup)
Attachment #638021 - Flags: feedback?(ekr)
Attachment #638021 - Flags: review+
Comment on attachment 638021 [details] [diff] [review]
Build signaling twice for FF and Test

+        ['build_for_test==1', {
+          'defines' : [
+          ],
+        }], 

This doesn't do anything; remove.
Attachment #638021 - Flags: feedback?(rjesup) → feedback+
Funny you should mention that, since I just added a clause here.
QA Contact: jsmith
Whiteboard: [WebRTC], [blocking-webrtc-]
Attachment #638021 - Flags: feedback?(ekr)
This was put into M-C as part of the Alder merge - Bug 792188
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: