简体   繁体   English

在工作空间中使用通用特权帮助器工具-SMJobBless

[英]Using common privilege helper tool across workspace- SMJobBless

I have a workspace which has 2 projects, one is installer application and other is uninstaller app. 我有一个工作区,其中有2个项目,一个是安装程序应用程序,另一个是卸载程序应用程序。 Both the apps requires privilege helper tool for some operations. 这两个应用程序都需要特权帮助器工具才能进行某些操作。 I am trying to write a common tool as a third project in my workspace that would be linked with the existing projects. 我正在尝试将通用工具作为工作区中的第三个项目编写,该项目将与现有项目链接。

Now, the question is how can i add that common tool in target dependency of existing projects and launch(privilege tool) it from other projects. 现在,问题是如何在现有项目的目标依赖项中添加该通用工具,并从其他项目中启动(特权工具)。

You can add the project that contains the helper tool within the other workspaces, and then add the target corresponding to the helper tool as build dependency, as you want. 您可以在其他工作区中添加包含帮助工具的项目,然后根据需要添加与该帮助工具相对应的目标作为构建依赖项。

If however you are using source control and have different repositories for projects, you can use the helper tool repository as a submodule to the other ones. 但是,如果您使用的是源代码管理,并且项目具有不同的存储库,则可以将帮助程序工具存储库用作其他模块的子模块。 See this article for more on git submodules and how you can use them. 有关git子模块以及如何使用它们的更多信息,请参见本文

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM