Merge "Load wayland proto definitions if available otherwise load stubs" into rvc-dev am: 2e4598b0c9 am: 54c3f9033c
Change-Id: Idb2a5836810168a136dbd59d2bda1e81ca5a1c0f
This commit is contained in:
@@ -19,5 +19,4 @@ contain the proto definitions for their internal states.
|
||||
|
||||
### Building with internal extensions
|
||||
Internal paths in vendor/ which are not available in AOSP must be replaced by
|
||||
stub files. Actual path can be optionally picked up using env args. For
|
||||
example, to pick up Wayland support, run `WAYLAND=yes yarn run dev`
|
||||
stub files. See getWaylandSafePath for an example
|
||||
|
||||
@@ -14,14 +14,16 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
const fs = require('fs');
|
||||
var path = require('path')
|
||||
var webpack = require('webpack')
|
||||
var HtmlWebpackPlugin = require('html-webpack-plugin')
|
||||
var HtmlWebpackInlineSourcePlugin = require('html-webpack-inline-source-plugin')
|
||||
|
||||
function getWaylandSafePath() {
|
||||
if (process.env.WAYLAND) {
|
||||
return path.resolve(__dirname, '../../../vendor/google_arc/libs/wayland_service');
|
||||
waylandPath = path.resolve(__dirname, '../../../vendor/google_arc/libs/wayland_service');
|
||||
if (fs.existsSync(waylandPath)) {
|
||||
return waylandPath;
|
||||
}
|
||||
return path.resolve(__dirname, 'src/stubs');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user