Skip to content

Commit

Permalink
GYP dependencies for JNI _java targets moved to device targets that r…
Browse files Browse the repository at this point in the history
…equire them.

Previously _java targets for android JNI were indirectly included in build
dependencies by higher level targets. This change moves the dependencies
directly to the targets that require them.

Review URL: https://codereview.chromium.org/1127043006

Cr-Commit-Position: refs/heads/master@{#331068}
  • Loading branch information
scheib authored and Commit bot committed May 22, 2015
1 parent bdbdfcd commit f1242e5
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
2 changes: 0 additions & 2 deletions content/content.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -429,8 +429,6 @@
'dependencies': [
'../base/base.gyp:base',
'../device/battery/battery.gyp:device_battery_java',
'../device/bluetooth/bluetooth.gyp:device_bluetooth_java',
'../device/vibration/vibration.gyp:device_vibration_java',
'../media/media.gyp:media_java',
'../mojo/mojo_base.gyp:mojo_application_bindings',
'../mojo/mojo_base.gyp:mojo_system_java',
Expand Down
5 changes: 5 additions & 0 deletions device/battery/battery.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,11 @@
'battery_status_manager_linux.cc',
],
}],
['OS == "android"', {
'dependencies': [
'device_battery_java',
],
}],
['OS == "linux" and use_dbus==1', {
'sources!': [
'battery_status_manager_default.cc',
Expand Down
1 change: 1 addition & 0 deletions device/bluetooth/bluetooth.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@
}],
['OS == "android"', {
'dependencies': [
'device_bluetooth_java',
'device_bluetooth_jni_headers',
],
'sources': [
Expand Down
1 change: 0 additions & 1 deletion device/device_tests.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@
'hid/hid.gyp:device_hid',
],
'dependencies': [
'bluetooth/bluetooth.gyp:device_bluetooth_java',
'../testing/android/native_test.gyp:native_test_native_code',
],
'sources/': [
Expand Down
1 change: 1 addition & 0 deletions device/vibration/vibration.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
'conditions': [
['OS == "android"', {
'dependencies': [
'device_vibration_java',
'device_vibration_jni_headers',
],
'sources!': [
Expand Down

0 comments on commit f1242e5

Please sign in to comment.