digitalmars.D.learn - How to use dub with our own package
- Vinod K Chandran (10/10) May 12 2021 Hi all,
- Imperatorn (2/14) May 12 2021 Check out add-local
- Vinod K Chandran (2/3) May 12 2021 Thanks. Let me check. :)
- JG (3/15) May 12 2021 Have a look at
- Vinod K Chandran (2/4) May 12 2021 Thanks for the link. :)
- =?UTF-8?Q?Christian_K=c3=b6stlin?= (20/29) May 12 2021 Are you really interested in doing winglib as a separate dub package?
- Vinod K Chandran (4/26) May 12 2021 That's really helpful. All i need to do is re-arrange my folder
- =?UTF-8?Q?Christian_K=c3=b6stlin?= (5/37) May 12 2021 if you want to do a separate package later on, you only have to change a...
- Vinod K Chandran (3/7) May 13 2021 That's nice. :)
Hi all, I am creating a hobby project related with win api gui functions. i would like to work with dub. But How do I use dub in my project. 1. All my gui library modules are located in a folder named "winglib". 2. And that folder also conatains a d file called "package.d" 3. "package.d" contains all the public imports. 4. Outside this winglib folder, I have my main file called "app.d" 5. "app.d" imports "winglib". So in this setup, how do I use dub ? Thanks in advance.
May 12 2021
On Wednesday, 12 May 2021 at 13:37:26 UTC, Vinod K Chandran wrote:Hi all, I am creating a hobby project related with win api gui functions. i would like to work with dub. But How do I use dub in my project. 1. All my gui library modules are located in a folder named "winglib". 2. And that folder also conatains a d file called "package.d" 3. "package.d" contains all the public imports. 4. Outside this winglib folder, I have my main file called "app.d" 5. "app.d" imports "winglib". So in this setup, how do I use dub ? Thanks in advance.Check out add-local
May 12 2021
On Wednesday, 12 May 2021 at 15:03:14 UTC, Imperatorn wrote:Check out add-localThanks. Let me check. :)
May 12 2021
On Wednesday, 12 May 2021 at 13:37:26 UTC, Vinod K Chandran wrote:Hi all, I am creating a hobby project related with win api gui functions. i would like to work with dub. But How do I use dub in my project. 1. All my gui library modules are located in a folder named "winglib". 2. And that folder also conatains a d file called "package.d" 3. "package.d" contains all the public imports. 4. Outside this winglib folder, I have my main file called "app.d" 5. "app.d" imports "winglib". So in this setup, how do I use dub ? Thanks in advance.Have a look at [link](https://forum.dlang.org/post/jyxdcotuqhcdfqwwhstc forum.dlang.org).
May 12 2021
On Wednesday, 12 May 2021 at 17:23:16 UTC, JG wrote:Have a look at [link](https://forum.dlang.org/post/jyxdcotuqhcdfqwwhstc forum.dlang.org).Thanks for the link. :)
May 12 2021
On 2021-05-12 15:37, Vinod K Chandran wrote:Hi all, I am creating a hobby project related with win api gui functions. i would like to work with dub. But How do I use dub in my project. 1. All my gui library modules are located in a folder named "winglib". 2. And that folder also conatains a d file called "package.d" 3. "package.d" contains all the public imports. 4. Outside this winglib folder, I have my main file called "app.d" 5. "app.d" imports "winglib". So in this setup, how do I use dub ? Thanks in advance.Are you really interested in doing winglib as a separate dub package? If not you could just do a `dub init yourappname` which gives you the basic skeleton. something like: . ├── dub.sdl └── source └── app.d then you replace app.d with your file + put your winglib with package.d into a subfolder under source -> . ├── dub.sdl └── source ├── app.d └── winglib ├── othermodule.d └── package.d then a dub build will just build your project including the submodules ... if you need a separate dub package then the other answers lead the way. https://dub.pm/commandline.html#add-local
May 12 2021
On Wednesday, 12 May 2021 at 18:26:39 UTC, Christian Köstlin wrote:Are you really interested in doing winglib as a separate dub package? If not you could just do a `dub init yourappname` which gives you the basic skeleton. something like: . ├── dub.sdl └── source └── app.d then you replace app.d with your file + put your winglib with package.d into a subfolder under source -> . ├── dub.sdl └── source ├── app.d └── winglib ├── othermodule.d └── package.d then a dub build will just build your project including the submodules ... if you need a separate dub package then the other answers lead the way. https://dub.pm/commandline.html#add-localThat's really helpful. All i need to do is re-arrange my folder setup. Thanks a lot. :)
May 12 2021
On 2021-05-12 21:22, Vinod K Chandran wrote:On Wednesday, 12 May 2021 at 18:26:39 UTC, Christian Köstlin wrote:if you want to do a separate package later on, you only have to change a little in your project setup, code can stay the same. kind regards, ChristianAre you really interested in doing winglib as a separate dub package? If not you could just do a `dub init yourappname` which gives you the basic skeleton. something like: . ├── dub.sdl └── source └── app.d then you replace app.d with your file + put your winglib with package.d into a subfolder under source -> . ├── dub.sdl └── source ├── app.d └── winglib ├── othermodule.d └── package.d then a dub build will just build your project including the submodules ... if you need a separate dub package then the other answers lead the way. https://dub.pm/commandline.html#add-localThat's really helpful. All i need to do is re-arrange my folder setup. Thanks a lot. :)
May 12 2021
On Wednesday, 12 May 2021 at 20:55:07 UTC, Christian Köstlin wrote:if you want to do a separate package later on, you only have to change a little in your project setup, code can stay the same. kind regards, ChristianThat's nice. :)
May 13 2021