-
Notifications
You must be signed in to change notification settings - Fork 473
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add initial support for API versioning (see #3836)
- Generated files are now created when running cef_create_projects or the new version_manager.py tool. These files are still created in the cef/ source tree (same location as before) but Git ignores them due to the generated .gitignore file. - API hashes are committed to Git as a new cef_api_versions.json file. This file is used for both code generation and CEF version calculation (replacing the previous usage of cef_api_hash.h for this purpose). It will be updated by the CEF admin before merging breaking API changes upstream. - As an added benefit to the above, contributor PRs will no longer contain generated code that is susceptible to frequent merge conflicts. - From a code generation perspective, the main difference is that we now use versioned structs (e.g. cef_browser_0_t instead of cef_browser_t) on the libcef (dll/framework) side. Most of the make_*.py tool changes are related to supporting this. - From the client perspective, you can now define CEF_API_VERSION in the project configuration (or get CEF_EXPERIMENTAL by default). This define will change the API exposed in CEF’s include/ and include/capi header files. All client-side targets including libcef_dll_wrapper will need be recompiled when changing this define. - Examples of the new API-related define usage are provided in cef_api_version_test.h, api_version_test_impl.cc and api_version_unittest.cc. To test: - Run `ceftests --gtest_filter=ApiVersionTest.*` - Add `cef_api_version=13300` to GN_DEFINES. Re-run configure, build and ceftests steps. - Repeat with 13301, 13302, 13303 (all supported test versions).
- Loading branch information
1 parent
219bf34
commit dd81904
Showing
68 changed files
with
7,492 additions
and
1,291 deletions.
There are no files selected for viewing
This file contains 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,55 @@ | ||
*.gypcmd | ||
*.mk | ||
*.ncb | ||
*.opensdf | ||
*.props | ||
*.pyc | ||
*.rules | ||
*.sdf | ||
*.sln | ||
*.sublime-project | ||
*.sublime-workspace | ||
*.suo | ||
*.targets | ||
*.user | ||
*.vcproj | ||
*.vcxproj | ||
*.vcxproj.filters | ||
*.vpj | ||
*.vpw | ||
*.vpwhistu | ||
*.vtg | ||
*.xcodeproj | ||
*.xcworkspace | ||
*_proto.xml | ||
*_proto_cpp.xml | ||
*~ | ||
!Android.mk | ||
.*.sw? | ||
.DS_Store | ||
.classpath | ||
.cproject | ||
.gdb_history | ||
.gdbinit | ||
.landmines | ||
.metadata | ||
.project | ||
.pydevproject | ||
.vscode | ||
# Settings directory for eclipse | ||
/.settings | ||
.checkstyle | ||
cscope.* | ||
Session.vim | ||
tags | ||
Thumbs.db | ||
# IDE's | ||
.vs/ | ||
.kdev4/ | ||
*.kdev4 | ||
# CEF generated directories | ||
/binary_distrib | ||
/docs | ||
# CEF generated files | ||
.ccls-cache/ | ||
/cef_api_untracked.json |
This file contains 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 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,34 @@ | ||
{ | ||
"hashes": { | ||
"13300": { | ||
"comment": "Added January 07, 2025.", | ||
"linux": "f0b073047a026b83e911ba60aa1a83f036d31b0e", | ||
"mac": "39c1f7df430aeaf39911147032b266416658c11d", | ||
"universal": "dd40c0c97ba3f4a1f4ec53ff64d19fea30217d3d", | ||
"windows": "4d97ebe2ed64b448b23625c6bd3943797ac3e137" | ||
}, | ||
"13301": { | ||
"comment": "Added January 07, 2025.", | ||
"linux": "41f72b80f8a2d00ea8301cda42d37b8fdf0240a5", | ||
"mac": "e44f5eb6d634f3d4353f52ff383bf213f3894bbd", | ||
"universal": "f7edff150ad480bc2f5cfc85fd6bfa23fbc4a73f", | ||
"windows": "130d2eed0662c065a1cee3c782a6d855c63d67e8" | ||
}, | ||
"13302": { | ||
"comment": "Added January 07, 2025.", | ||
"linux": "2ef9e3f071838f2d7705d144cf66e0f5ae69b32f", | ||
"mac": "ec74fb1f9aff97f55882dbb35ba979934c8ab1a7", | ||
"universal": "d9c1eedf985ddcd4e9df05f7664b111462d45626", | ||
"windows": "f4d05b712907d8d64df80029d9e2e8edbee814ac" | ||
}, | ||
"13303": { | ||
"comment": "Added January 07, 2025.", | ||
"linux": "397ad962a3049dad4b36b356c8d108f78603de60", | ||
"mac": "f7a5c733b8c3cd6fa3a284ce9b307566c6aa5860", | ||
"universal": "91d5546d2b3f601ab2453f218a7bd69d2fd39b1b", | ||
"windows": "b24722530b6b77bd1a633af5d72088225468eee2" | ||
} | ||
}, | ||
"last": "13303", | ||
"min": "13300" | ||
} |
This file contains 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 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 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.