-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Can't change name_suffix/prefix for only static library in both_libraries() #4133
Comments
You can override this with |
how about the pdb file? should we make it match the same file name? |
BTW, is there any way to override only the static library one? |
Hum, you're right the interaction b/w |
Does this means we need all those kwargs for library(): static_name_prefix, static_name_suffix, shared_name_prefix, and shared_name_suffix ? Note that even when not build both libraries, current API is weird, because when you're using library() you don't know if you're going to build the static or shared library. Wondering if this is another case of passing different args for static and shared, just like for `c_args'. I once proposed to add an extra_args kwarg that would take a dict like: library('foo', extra_args : {
'static_library' : {'name_suffix' : 'lib',
'c_args' : '-DSTATIC_COMPILATION'},
'shared_library' : {'name_suffix' : 'dll'},
}) |
dictionaries, yes, but I prefer this syntax: |
My idea about
|
The target_spec solution would be ideal, yes, and if we can agree on the need for it and the syntax we should do it. |
The dict must map a target type to a string. This makes possible to pass different name_prefix and name_suffix to static and shared libraries when using both_libraries(). Closes mesonbuild#4133.
The dict must map a target type to a string. This makes possible to pass different name_prefix and name_suffix to static and shared libraries when using both_libraries(). Closes mesonbuild#4133.
The dict must map a target type to a string. This makes possible to pass different name_prefix and name_suffix to static and shared libraries when using both_libraries(). Closes mesonbuild#4133.
The dict must map a target type to a string. This makes possible to pass different name_prefix and name_suffix to static and shared libraries when using both_libraries(). Closes mesonbuild#4133.
This is what I get from the library I just ported:
Installing lmdb.dll to C:\gtk-build\gtk\x64\release\bin
Installing lmdb.pdb to C:\gtk-build\gtk\x64\release\bin
Installing lmdb.lib to C:\gtk-build\gtk\x64\release\lib
Installing lmdb.pdb to C:\gtk-build\gtk\x64\release\lib
Installing liblmdb.a to C:\gtk-build\gtk\x64\release\lib
I would expect the following:
lmdb.dll, lmdb.pdb in bin and lmdb.lib in lib for the shared library and this seems fine.
Instead for the static library I would expect:
liblmdb.lib and liblmdb.pdb both in lib
The text was updated successfully, but these errors were encountered: