Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1470)

Unified Diff: mojo/dart/tools/find_api_include_path.py

Issue 674383002: Initial work on Dart bindings for Mojo. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Merge. Work on templates. Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/dart/system/mojo_dart_embedder.cc ('k') | mojo/public/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/dart/tools/find_api_include_path.py
diff --git a/mojo/dart/tools/find_api_include_path.py b/mojo/dart/tools/find_api_include_path.py
new file mode 100644
index 0000000000000000000000000000000000000000..3ae13a2eace7b1e9d65cffd48548e384f89b8000
--- /dev/null
+++ b/mojo/dart/tools/find_api_include_path.py
@@ -0,0 +1,16 @@
+# Copyright 2014 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import sys
+
+from distutils.spawn import find_executable
+from os.path import realpath, abspath, join, dirname
+
+def main():
+ dart_bin_path = dirname(realpath(find_executable("dart")))
+ include_path = abspath(join(dart_bin_path, '..', 'include'))
+ print include_path
+
+if __name__ == '__main__':
+ sys.exit(main())
« no previous file with comments | « mojo/dart/system/mojo_dart_embedder.cc ('k') | mojo/public/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698