| 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/c", "third_party/mojo/public/c", recursive=True, | 12 CopyFiles("mojo/public", |
| 13 "third_party/mojo/public", |
| 14 recursive=False, |
| 15 exclude_file_patterns=EXCLUDE_FILES) |
| 16 |
| 17 CopyFiles("mojo/public/c", |
| 18 "third_party/mojo/public/c", |
| 19 recursive=True, |
| 13 exclude_file_patterns=EXCLUDE_FILES, | 20 exclude_file_patterns=EXCLUDE_FILES, |
| 14 exclude_path_patterns=EXCLUDE_PATHS) | 21 exclude_path_patterns=EXCLUDE_PATHS) |
| 15 CopyFiles("mojo/public/cpp", "third_party/mojo/public/cpp", recursive=True, | 22 CopyFiles("mojo/public/cpp", |
| 23 "third_party/mojo/public/cpp", |
| 24 recursive=True, |
| 16 exclude_file_patterns=EXCLUDE_FILES, | 25 exclude_file_patterns=EXCLUDE_FILES, |
| 17 exclude_path_patterns=EXCLUDE_PATHS+ | 26 exclude_path_patterns=EXCLUDE_PATHS+ |
| 18 ["mojo/public/cpp/test_support/*"]) | 27 ["mojo/public/cpp/test_support/*"]) |
| 19 CopyFiles("mojo/public", "third_party/mojo/public", recursive=False, | 28 |
| 20 exclude_file_patterns=EXCLUDE_FILES) | 29 # For simplicity, copy all of the bindings generators, even though we really |
| 30 # only need/want C++. |
| 31 CopyFiles("mojo/public/tools/bindings", |
| 32 "third_party/mojo/public/tools/bindings", |
| 33 recursive=True, |
| 34 exclude_file_patterns=EXCLUDE_FILES, |
| 35 exclude_path_patterns=EXCLUDE_PATHS+["*/mojom_tests/*"]) |
| 36 # The generators need jinja2, which needs markupsafe. Sigh. |
| 37 CopyFiles("mojo/public/third_party/jinja2", |
| 38 "third_party/mojo/public/third_party/jinja2", |
| 39 recursive=True) |
| 40 CopyFiles("mojo/public/third_party/markupsafe", |
| 41 "third_party/mojo/public/third_party/markupsafe", |
| 42 recursive=True) |
| OLD | NEW |