| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 # This file contains steps for "building" a C/C++ SDK. It is processed by | 5 # This file contains steps for "building" a C/C++ SDK. It is processed by |
| 6 # //mojo/sdk_build/build_sdk.py. | 6 # //mojo/sdk_build/build_sdk.py. |
| 7 # TODO(vtl): This isn't done yet. | 7 # TODO(vtl): This isn't done yet. |
| 8 | 8 |
| 9 EXCLUDE_FILES=[".*", "*.gn", "*.gni", "PRESUBMIT.py", "*_win.*"] | 9 EXCLUDE_FILES=[".*", "*.gn", "*.gni", "PRESUBMIT.py", "*_win.*"] |
| 10 EXCLUDE_PATHS=["*/tests/*"] | 10 EXCLUDE_PATHS=["*/tests/*"] |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 recursive=True, | 37 recursive=True, |
| 38 exclude_file_patterns=EXCLUDE_FILES, | 38 exclude_file_patterns=EXCLUDE_FILES, |
| 39 exclude_path_patterns=EXCLUDE_PATHS+["*/mojom_tests/*"]) | 39 exclude_path_patterns=EXCLUDE_PATHS+["*/mojom_tests/*"]) |
| 40 # The generators need jinja2, which needs markupsafe. Sigh. | 40 # The generators need jinja2, which needs markupsafe. Sigh. |
| 41 CopyDir("mojo/public/third_party/jinja2", | 41 CopyDir("mojo/public/third_party/jinja2", |
| 42 "third_party/mojo/public/third_party/jinja2", | 42 "third_party/mojo/public/third_party/jinja2", |
| 43 recursive=True) | 43 recursive=True) |
| 44 CopyDir("mojo/public/third_party/markupsafe", | 44 CopyDir("mojo/public/third_party/markupsafe", |
| 45 "third_party/mojo/public/third_party/markupsafe", | 45 "third_party/mojo/public/third_party/markupsafe", |
| 46 recursive=True) | 46 recursive=True) |
| 47 # We currently need some stuff to glue the mojom parser to the generators. |
| 48 CopyDir("mojo/public/python/dummy_mojo_system", |
| 49 "third_party/mojo/public/python/dummy_mojo_system", |
| 50 recursive=True) |
| 51 CopyDir("mojo/public/python/mojo_bindings", |
| 52 "third_party/mojo/public/python/mojo_bindings", |
| 53 recursive=True) |
| 54 |
| 55 # Scripts to download binaries. |
| 56 CopyFiles(["sdk_build/data/common/download_file_from_google_storage.py", |
| 57 "sdk_build/data/common/download_mojom_parser.sh"], |
| 58 "third_party/mojo_sdk_setup") |
| 47 | 59 |
| 48 # Seed an example. | 60 # Seed an example. |
| 49 CopyDir("examples/hello_mojo", | 61 CopyDir("examples/hello_mojo", |
| 50 "examples/hello_mojo", | 62 "examples/hello_mojo", |
| 51 recursive=True, | 63 recursive=True, |
| 52 exclude_file_patterns=EXCLUDE_FILES) | 64 exclude_file_patterns=EXCLUDE_FILES) |
| 53 | |
| 54 # Scripts to download binaries. | |
| 55 CopyFiles(["sdk_build/data/common/download_file_from_google_storage.py", | |
| 56 "sdk_build/data/common/download_mojom_parser.sh"], | |
| 57 "third_party/mojo_sdk_setup") | |
| OLD | NEW |