Chromium Code Reviews| Index: net/net.gyp |
| diff --git a/net/net.gyp b/net/net.gyp |
| index dd083545592f187e5a6e8b389b3336e5c57765b1..f1fd86b577476ab54c53c49d6f9a4882d9c03f82 100644 |
| --- a/net/net.gyp |
| +++ b/net/net.gyp |
| @@ -39,6 +39,10 @@ |
| 'net_resources', |
| ], |
| 'sources': [ |
| + 'android/network_change_notifier.cc', |
| + 'android/network_change_notifier.h', |
| + 'android/network_change_notifier_factory.cc', |
| + 'android/network_change_notifier_factory.h', |
| 'android/network_library.cc', |
| 'android/network_library.h', |
| 'base/address_family.h', |
| @@ -980,11 +984,13 @@ |
| ], |
| 'dependencies': [ |
| '../build/android/system.gyp:ssl', |
| + 'net_java', |
| + 'net_jni_headers', |
| ], |
| - 'sources/': [ |
| + 'sources!': [ |
| # TODO(jingzhao): The below files are excluded because of the |
| # missing JNI, add them back when JNI is ready. |
| - ['exclude', '^android/'], |
| + 'android/network_library.cc', |
| ], |
| }, { # else OS! = "android" |
| 'defines': [ |
| @@ -1787,6 +1793,35 @@ |
| }, |
| ] |
| }], |
| + ['OS=="android"', { |
| + 'targets': [ |
| + { |
| + 'target_name': 'net_jni_headers', |
| + 'type': 'none', |
| + 'variables': { |
| + 'java_sources': [ |
| + 'android/java/org/chromium/net/NetworkChangeNotifier.java', |
| + ], |
| + 'jni_headers': [ |
| + '<(SHARED_INTERMEDIATE_DIR)/net/jni/network_change_notifier_jni.h', |
| + ], |
| + }, |
| + 'includes': [ '../build/jni_generator.gypi' ], |
| + }, |
| + { |
| + 'target_name': 'net_java', |
| + 'type': 'none', |
| + 'variables': { |
| + 'package_name': 'net', |
| + 'java_in_dir': '../net/android/java', |
|
Yaron
2012/04/17 16:18:04
The "../net" prefix is needed otherwise the find p
Ryan Sleevi
2012/04/17 17:56:06
Really?
'java_in_dir': '.' should be relativized
Yaron
2012/04/17 22:47:38
Yes. If I leave it as "android/java", I see the fo
Ryan Sleevi
2012/04/17 22:54:42
Maybe I'm blind, but what's not correct there? I d
Yaron
2012/04/17 22:55:59
net/android/java/org/chromium/base/PathUtils.java
|
| + }, |
| + 'dependencies': [ |
| + '../base/base.gyp:base_java', |
| + ], |
| + 'includes': [ '../build/java.gypi' ], |
| + }, |
| + ], |
| + }], |
| ['OS=="win"', { |
| 'targets': [ |
| { |