1

I have a workspace which has 2 projects, one is installer application and other is uninstaller app. 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.

john fedric
  • 167
  • 1
  • 11
  • I don't know what's wrong with this account, seems like nobody is happy to help on SO – john fedric Apr 24 '15 at 12:03
  • Well, your question is not clear, and you're mixing stuff. `workspace` refers to the configuration of your project, while `privileges` are obtained at runtime. – Cristik Apr 24 '15 at 18:49
  • To make sure I understood correctly: do you want to include your helper tool in other projects too without having to copy+paste it's source code and target settings? – Cristik Apr 24 '15 at 18:50
  • @Cristik do you want to include your helper tool in other projects too without having to copy+paste it's source code and target settings? -- Yes, Exactly that's the purpose – john fedric Apr 25 '15 at 17:16
  • 1
    Then just add the project that contains the helper tool within the other workspaces. 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 – Cristik Apr 25 '15 at 18:52

1 Answers1

1

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.

Cristik
  • 30,989
  • 25
  • 91
  • 127