OLD | NEW |
1 # | 1 # |
2 # libjingle | 2 # libjingle |
3 # Copyright 2012 Google Inc. | 3 # Copyright 2012 Google Inc. |
4 # | 4 # |
5 # Redistribution and use in source and binary forms, with or without | 5 # Redistribution and use in source and binary forms, with or without |
6 # modification, are permitted provided that the following conditions are met: | 6 # modification, are permitted provided that the following conditions are met: |
7 # | 7 # |
8 # 1. Redistributions of source code must retain the above copyright notice, | 8 # 1. Redistributions of source code must retain the above copyright notice, |
9 # this list of conditions and the following disclaimer. | 9 # this list of conditions and the following disclaimer. |
10 # 2. Redistributions in binary form must reproduce the above copyright notice, | 10 # 2. Redistributions in binary form must reproduce the above copyright notice, |
(...skipping 16 matching lines...) Expand all Loading... |
27 | 27 |
28 # This file contains common settings for building libjingle components. | 28 # This file contains common settings for building libjingle components. |
29 | 29 |
30 { | 30 { |
31 'variables': { | 31 'variables': { |
32 'webrtc_root%': '<(DEPTH)/webrtc', | 32 'webrtc_root%': '<(DEPTH)/webrtc', |
33 'libjingle_tests_additional_deps%': [], | 33 'libjingle_tests_additional_deps%': [], |
34 # TODO(ronghuawu): For now, disable the Chrome plugins, which causes a | 34 # TODO(ronghuawu): For now, disable the Chrome plugins, which causes a |
35 # flood of chromium-style warnings. | 35 # flood of chromium-style warnings. |
36 'clang_use_chrome_plugins%': 0, | 36 'clang_use_chrome_plugins%': 0, |
37 'conditions': [ | |
38 ['OS=="android" or OS=="linux"', { | |
39 'java_home%': '<!(python -c "import os; dir=os.getenv(\'JAVA_HOME\', \'/
usr/lib/jvm/java-7-openjdk-amd64\'); assert os.path.exists(os.path.join(dir, \'i
nclude/jni.h\')), \'Point \\$JAVA_HOME or the java_home gyp variable to a direct
ory containing include/jni.h!\'; print dir")', | |
40 }], | |
41 ], | |
42 # Disable these to not build components which can be externally provided. | 37 # Disable these to not build components which can be externally provided. |
43 'build_expat%': 1, | 38 'build_expat%': 1, |
44 'build_json%': 1, | 39 'build_json%': 1, |
45 'build_libsrtp%': 1, | 40 'build_libsrtp%': 1, |
46 'build_libyuv%': 1, | 41 'build_libyuv%': 1, |
47 'build_usrsctp%': 1, | 42 'build_usrsctp%': 1, |
48 # Make it possible to provide custom locations for some libraries. | 43 # Make it possible to provide custom locations for some libraries. |
49 'libyuv_dir%': '<(DEPTH)/third_party/libyuv', | 44 'libyuv_dir%': '<(DEPTH)/third_party/libyuv', |
50 | 45 |
51 # Disable this to skip building source requiring GTK. | 46 # Disable this to skip building source requiring GTK. |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 'HASH_NAMESPACE=__gnu_cxx', | 137 'HASH_NAMESPACE=__gnu_cxx', |
143 'WEBRTC_POSIX', | 138 'WEBRTC_POSIX', |
144 'DISABLE_DYNAMIC_CAST', | 139 'DISABLE_DYNAMIC_CAST', |
145 # The POSIX standard says we have to define this. | 140 # The POSIX standard says we have to define this. |
146 '_REENTRANT', | 141 '_REENTRANT', |
147 ], | 142 ], |
148 }], | 143 }], |
149 ], | 144 ], |
150 }, # target_defaults | 145 }, # target_defaults |
151 } | 146 } |
OLD | NEW |