Skip to content
This repository has been archived by the owner on Apr 3, 2020. It is now read-only.

Commit

Permalink
crosswalk-18: Make |enable_webvr==0| work.
Browse files Browse the repository at this point in the history
Move CardboardVRDevice.java to a different directory so that it is not
built by the `content_java` target even if `enable_webvr==0`.

This is a prerequisite for building Crosswalk with `enable_webvr=0` set
by default in the crosswalk-18 branch.

BUG=XWALK-6746
  • Loading branch information
Raphael Kubo da Costa committed Apr 18, 2016
1 parent d2f3994 commit e593418
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion content/content.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,11 @@
'has_java_resources': 1,
'R_package': 'org.chromium.content',
'R_package_relpath': 'org/chromium/content',
'conditions': [
['enable_webvr==1', {
'additional_src_dirs': ['../content/public/android/java-optional'],
}],
],
},
'includes': [ '../build/java.gypi' ],
},
Expand Down Expand Up @@ -611,7 +616,7 @@
'conditions': [
['enable_webvr==1', {
'sources': [
'public/android/java/src/org/chromium/content/browser/input/CardboardVRDevice.java',
'public/android/java-optional/src/org/chromium/content/browser/input/CardboardVRDevice.java',
],
'dependencies': [
'../third_party/cardboard-java/cardboard.gyp:cardboard_jar',
Expand Down

0 comments on commit e593418

Please sign in to comment.