| 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/*"] |
| 11 | 11 |
| 12 CopyFiles("mojo/public", | 12 CopyDir("mojo/public", |
| 13 "third_party/mojo/public", | 13 "third_party/mojo/public", |
| 14 recursive=False, | 14 recursive=False, |
| 15 exclude_file_patterns=EXCLUDE_FILES) | 15 exclude_file_patterns=EXCLUDE_FILES) |
| 16 | 16 |
| 17 CopyFiles("mojo/public/c", | 17 CopyDir("mojo/public/c", |
| 18 "third_party/mojo/public/c", | 18 "third_party/mojo/public/c", |
| 19 recursive=True, | 19 recursive=True, |
| 20 exclude_file_patterns=EXCLUDE_FILES, | 20 exclude_file_patterns=EXCLUDE_FILES, |
| 21 exclude_path_patterns=EXCLUDE_PATHS) | 21 exclude_path_patterns=EXCLUDE_PATHS) |
| 22 CopyFiles("mojo/public/cpp", | 22 CopyDir("mojo/public/cpp", |
| 23 "third_party/mojo/public/cpp", | 23 "third_party/mojo/public/cpp", |
| 24 recursive=True, | 24 recursive=True, |
| 25 exclude_file_patterns=EXCLUDE_FILES, | 25 exclude_file_patterns=EXCLUDE_FILES, |
| 26 exclude_path_patterns=EXCLUDE_PATHS+ | 26 exclude_path_patterns=EXCLUDE_PATHS+["mojo/public/cpp/test_support/*"]) |
| 27 ["mojo/public/cpp/test_support/*"]) | |
| 28 | 27 |
| 29 # For simplicity, copy all of the bindings generators, even though we really | 28 # For simplicity, copy all of the bindings generators, even though we really |
| 30 # only need/want C++. | 29 # only need/want C++. |
| 31 CopyFiles("mojo/public/tools/bindings", | 30 CopyDir("mojo/public/tools/bindings", |
| 32 "third_party/mojo/public/tools/bindings", | 31 "third_party/mojo/public/tools/bindings", |
| 33 recursive=True, | 32 recursive=True, |
| 34 exclude_file_patterns=EXCLUDE_FILES, | 33 exclude_file_patterns=EXCLUDE_FILES, |
| 35 exclude_path_patterns=EXCLUDE_PATHS+["*/mojom_tests/*"]) | 34 exclude_path_patterns=EXCLUDE_PATHS+["*/mojom_tests/*"]) |
| 36 # The generators need jinja2, which needs markupsafe. Sigh. | 35 # The generators need jinja2, which needs markupsafe. Sigh. |
| 37 CopyFiles("mojo/public/third_party/jinja2", | 36 CopyDir("mojo/public/third_party/jinja2", |
| 38 "third_party/mojo/public/third_party/jinja2", | 37 "third_party/mojo/public/third_party/jinja2", |
| 39 recursive=True) | 38 recursive=True) |
| 40 CopyFiles("mojo/public/third_party/markupsafe", | 39 CopyDir("mojo/public/third_party/markupsafe", |
| 41 "third_party/mojo/public/third_party/markupsafe", | 40 "third_party/mojo/public/third_party/markupsafe", |
| 42 recursive=True) | 41 recursive=True) |
| 42 |
| 43 # Seed an example. |
| 44 CopyDir("examples/hello_mojo", |
| 45 "examples/hello_mojo", |
| 46 recursive=True, |
| 47 exclude_file_patterns=EXCLUDE_FILES) |
| 48 |
| 49 # Scripts to download binaries. |
| 50 CopyFiles(["sdk_build/data/common/download_file_from_google_storage.py", |
| 51 "sdk_build/data/common/download_mojom_parser.sh"], |
| 52 "third_party/mojo_sdk_setup") |
| OLD | NEW |