-
Notifications
You must be signed in to change notification settings - Fork 468
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
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
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. 🚀 New features to boost your workflow:
|
"common": [ | ||
{ | ||
"url": "https://github.com/libpag/vendor_tools.git", | ||
"commit": "dd40c12a603b747f912340aecbcd246a99c72ec9", | ||
"dir": "tools/vendor_tools" | ||
}, |
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.
不要重复引用。直接使用根目录的那个就行。
{ | ||
"url": "https://github.com/DaveGamble/cJSON.git", | ||
"commit": "76be8fcf15677ca7f6db7c770f5ae6bf8b41d78f", | ||
"dir": "third_party/cjson" | ||
} |
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.
这个上次已经说过了,使用根目录项目已经引用的那个json库,不要新增。
{ | ||
"url": "https://github.com/jedisct1/libsodium.git", | ||
"commit": "9511c982fb1d046470a8b42aa36556cdb7da15de", | ||
"dir": "third_party/sodium" | ||
}, |
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.
这个具体是起到什么作用?看看是否可以不引用。尽可能裁剪掉。否则新增了第三方库都要通过法务更新协议。其他的几个库也检查一下是否已经有替代的功能。可以不用依赖的。
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.
这个脚本也不用,公用根目录的。
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.
PAG是标准的cmake项目,不要写脚本来编译。vendor_tools直接可以支持配置。
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.
你写了太多的编译脚本了。这样维护起来很困难。如果这个第三方库是必须的,可以直接fork一份第三方库代码到我们的libpag组织下,给写个跨平台的CMAKELists配置就好了,一次性支持所有平台的统一编译。除非是Skia这样有自己的编译系统,没法写cmake的我们才不得不写脚本。
1、为PAGViewer添加CMakeLists.txt
2、为PAGviewer添加第三方库构建脚本