From e6cefb60f84b96ab6a06573cec68a836ab0eec81 Mon Sep 17 00:00:00 2001 From: Henrik Kjellander Date: Mon, 27 Apr 2015 14:39:04 +0200 Subject: [PATCH] GYP variables for building expat, icu, libsrtp, usrsctp This makes the build more flexible when linking against prebuilt external libraries. Use existing build_* variables for libyuv and json in talk/ (already in use in webrtc/). Also make it possible to avoid building the GTK parts of the Linux build. BUG=4242 R=andrew@webrtc.org, tommi@webrtc.org Review URL: https://webrtc-codereview.appspot.com/44179005 Cr-Commit-Position: refs/heads/master@{#9087} --- talk/app/webrtc/java/jni/jni_helpers.cc | 2 +- talk/build/common.gypi | 12 +++ talk/libjingle.gyp | 92 +++++++++++++------ talk/libjingle_examples.gyp | 6 +- talk/libjingle_tests.gyp | 14 ++- webrtc/build/common.gypi | 8 +- webrtc/build/webrtc.gni | 10 +- webrtc/libjingle/libjingle.gyp | 20 +++- webrtc/libjingle/xmllite/xmllite.gyp | 12 ++- webrtc/libjingle/xmpp/xmpp.gyp | 12 ++- webrtc/modules/video_capture/BUILD.gn | 10 +- .../modules/video_capture/video_capture.gypi | 16 +++- webrtc/webrtc_examples.gyp | 8 +- 13 files changed, 162 insertions(+), 60 deletions(-) diff --git a/talk/app/webrtc/java/jni/jni_helpers.cc b/talk/app/webrtc/java/jni/jni_helpers.cc index 5ce9926bc1..32d17a1be5 100644 --- a/talk/app/webrtc/java/jni/jni_helpers.cc +++ b/talk/app/webrtc/java/jni/jni_helpers.cc @@ -103,7 +103,7 @@ jint InitGlobalJniVariables(JavaVM *jvm) { // Return thread ID as a string. static std::string GetThreadId() { char buf[21]; // Big enough to hold a kuint64max plus terminating NULL. - CHECK_LT(snprintf(buf, sizeof(buf), "%llu", syscall(__NR_gettid)), + CHECK_LT(snprintf(buf, sizeof(buf), "%ld", syscall(__NR_gettid)), sizeof(buf)) << "Thread id is bigger than uint64??"; return std::string(buf); diff --git a/talk/build/common.gypi b/talk/build/common.gypi index 2d6fca0949..4735bc83e2 100644 --- a/talk/build/common.gypi +++ b/talk/build/common.gypi @@ -40,6 +40,18 @@ 'java_home%': '