This repository was archived by the owner on Jan 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 54
Add common code path for test configs #491
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
9c64bdd
Add common code path for test configs
TzviPM 6d6d8a4
share example configs with tests
TzviPM eb06160
separate configs for testing
TzviPM 2d9eaf5
use chDir for native test
TzviPM b7535d4
temp
TzviPM 7eb24ac
Ensure local package paths work in tests
TzviPM 350535d
regen + concurrency=1 to fix race conditions
TzviPM File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| output: 'cjson_generated_bindings.dart' | ||
| name: 'CJson' | ||
| description: 'Holds bindings to cJSON.' | ||
| headers: | ||
| entry-points: | ||
| - '../../third_party/cjson_library/cJSON.h' | ||
| include-directives: | ||
| - '**cJSON.h' | ||
| comments: false | ||
| preamble: | | ||
| // Copyright (c) 2009-2017 Dave Gamble and cJSON contributors | ||
| // | ||
| // Permission is hereby granted, free of charge, to any person obtaining a copy | ||
| // of this software and associated documentation files (the "Software"), to deal | ||
| // in the Software without restriction, including without limitation the rights | ||
| // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
| // copies of the Software, and to permit persons to whom the Software is | ||
| // furnished to do so, subject to the following conditions: | ||
| // | ||
| // The above copyright notice and this permission notice shall be included in | ||
| // all copies or substantial portions of the Software. | ||
| // | ||
| // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
| // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
| // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
| // THE SOFTWARE. | ||
|
|
||
| // ignore_for_file: camel_case_types, non_constant_identifier_names |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| name: NativeLibrary | ||
| ffi-native: | ||
| # asset: 'assetname' # (optional) | ||
| description: Bindings to `headers/example.h`. | ||
| output: 'generated_bindings.dart' | ||
| headers: | ||
| entry-points: | ||
| - 'headers/example.h' | ||
| preamble: | | ||
| // ignore_for_file: deprecated_member_use |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,74 @@ | ||
| output: 'generated_bindings.dart' | ||
|
|
||
| # This will sort the bindings alphabetically. | ||
| # sort: true | ||
|
|
||
| # This is required if LLVM can't be found in default locations by ffigen. | ||
| # llvm-path: | ||
| # - '/usr/local/opt/llvm' | ||
|
|
||
| # Bash style Glob matching is also supported. | ||
| # TODO(11): Globs dont work on windows if they begin with '.' or '..'. | ||
| headers: | ||
| entry-points: | ||
| - ../../third_party/libclang/include/clang-c/Index.h | ||
| include-directives: # use glob syntax to match with header file path. | ||
| - '**CXString.h' | ||
| - '**Index.h' | ||
|
|
||
| compiler-opts: | ||
| - '-I../../third_party/libclang/include' | ||
| - '-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/' | ||
| - '-Wno-nullability-completeness' | ||
| functions: | ||
| include: | ||
| - 'clang_.*' # Can be a regexp, '.' matches any character. | ||
| symbol-address: | ||
| include: | ||
| - 'clang_.*' # Symbol Address for these functions will be exposed via addresses. | ||
| expose-typedefs: | ||
| include: | ||
| - 'clang_.*' # Typedefs for Native and Dart type for these functions will be generated. | ||
| structs: | ||
| include: | ||
| - 'CX.*' | ||
| enums: | ||
| include: | ||
| - 'CXTypeKind' # Full names are given higher priority than regexp. | ||
| - 'CXGlobalOptFlags' | ||
|
|
||
| library-imports: | ||
| custom_import: 'custom_import.dart' | ||
|
|
||
| # These can be used to map any typedef to a specific native type. | ||
| type-map: | ||
| typedefs: | ||
| 'time_t': | ||
| lib: 'ffi' | ||
| c-type: 'Int64' | ||
| dart-type: 'int' | ||
| structs: | ||
| 'CXCursorSetImpl': | ||
| lib: 'custom_import' | ||
| c-type: 'CXCursorSetImpl' | ||
| dart-type: 'CXCursorSetImpl' | ||
|
|
||
| # Default is 'NativeLibrary' | ||
| name: 'LibClang' | ||
|
|
||
| description: 'Holds bindings to LibClang.' | ||
|
|
||
| # Doc Comments for generated binings. | ||
| # Comments can be disabled by using comments: false | ||
| comments: | ||
| style: doxygen # Options - doxygen(default) / any. | ||
| length: full # Options - brief / full(default). | ||
|
|
||
| # The header of the file, this is pasted as it is. | ||
| preamble: | | ||
| // Part of the LLVM Project, under the Apache License v2.0 with LLVM | ||
| // Exceptions. | ||
| // See https://llvm.org/LICENSE.txt for license information. | ||
| // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
|
|
||
| // ignore_for_file: camel_case_types, non_constant_identifier_names |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| name: AVFAudio | ||
| description: Bindings for AVFAudio. | ||
| language: objc | ||
| output: 'avf_audio_bindings.dart' | ||
| exclude-all-by-default: true | ||
| objc-interfaces: | ||
| include: | ||
| - 'AVAudioPlayer' | ||
| headers: | ||
| entry-points: | ||
| - '/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioPlayer.h' | ||
| preamble: | | ||
| // ignore_for_file: camel_case_types, non_constant_identifier_names, unused_element, unused_field, return_of_invalid_type, void_checks, annotate_overrides, no_leading_underscores_for_local_identifiers, library_private_types_in_public_api |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| name: NativeLibrary | ||
| description: Bindings to `headers/example.h`. | ||
| output: 'generated_bindings.dart' | ||
| headers: | ||
| entry-points: | ||
| - 'headers/example.h' | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: newline at end of file