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

DUB could include .def files in sourcePaths instead of just .d #575

Closed
p0nce opened this issue May 26, 2015 · 2 comments
Closed

DUB could include .def files in sourcePaths instead of just .d #575

p0nce opened this issue May 26, 2015 · 2 comments

Comments

@p0nce
Copy link
Contributor

p0nce commented May 26, 2015

The way to create dynlibs with DMD is to pass a .def along with source files in the command-line.

For now, I must use

 "sourceFiles": [
        "./main.d",
        "./main.def"
    ],

else no symbol is exported.

But then every other source file must be provided manually. A solution would be that .def files found in sourcePaths be added to the list of source files.

@p0nce p0nce changed the title DUB could include .def files in source Files by itself DUB could include .def files in sourcePaths instead of just .d May 26, 2015
@s-ludwig
Copy link
Member

"sourceFiles" are additive w.r.t "sourcePaths", so you can still use that, or you could use a glob expression within "sourceFiles" to include multiple files at once.

@p0nce
Copy link
Contributor Author

p0nce commented May 27, 2015

Didn't know that

@p0nce p0nce closed this as completed May 27, 2015
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

No branches or pull requests

2 participants