Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CMakeLists.txt and third-party build scripts for PAGViewer #2726

Closed
wants to merge 1 commit into from

Conversation

CodeJhF
Copy link
Collaborator

@CodeJhF CodeJhF commented Mar 13, 2025

1、为PAGViewer添加CMakeLists.txt
2、为PAGviewer添加第三方库构建脚本

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.24%. Comparing base (7ba429f) to head (101998c).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2726      +/-   ##
==========================================
+ Coverage   77.21%   77.24%   +0.03%     
==========================================
  Files         425      425              
  Lines       22467    22467              
  Branches     6357     6357              
==========================================
+ Hits        17348    17355       +7     
- Misses       3812     3813       +1     
+ Partials     1307     1299       -8     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Comment on lines +4 to +9
"common": [
{
"url": "https://github.com/libpag/vendor_tools.git",
"commit": "dd40c12a603b747f912340aecbcd246a99c72ec9",
"dir": "tools/vendor_tools"
},
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

不要重复引用。直接使用根目录的那个就行。

Comment on lines +15 to +19
{
"url": "https://github.com/DaveGamble/cJSON.git",
"commit": "76be8fcf15677ca7f6db7c770f5ae6bf8b41d78f",
"dir": "third_party/cjson"
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个上次已经说过了,使用根目录项目已经引用的那个json库,不要新增。

Comment on lines +10 to +14
{
"url": "https://github.com/jedisct1/libsodium.git",
"commit": "9511c982fb1d046470a8b42aa36556cdb7da15de",
"dir": "third_party/sodium"
},
Copy link
Collaborator

@domchen domchen Mar 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个具体是起到什么作用?看看是否可以不引用。尽可能裁剪掉。否则新增了第三方库都要通过法务更新协议。其他的几个库也检查一下是否已经有替代的功能。可以不用依赖的。

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个脚本也不用,公用根目录的。

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PAG是标准的cmake项目,不要写脚本来编译。vendor_tools直接可以支持配置。

Copy link
Collaborator

@domchen domchen Mar 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

你写了太多的编译脚本了。这样维护起来很困难。如果这个第三方库是必须的,可以直接fork一份第三方库代码到我们的libpag组织下,给写个跨平台的CMAKELists配置就好了,一次性支持所有平台的统一编译。除非是Skia这样有自己的编译系统,没法写cmake的我们才不得不写脚本。

@domchen domchen closed this Mar 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants