Guest User

ydk wscript diff

a guest
Oct 30th, 2025
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. diff --git a/libs/tk/ydk/wscript b/libs/tk/ydk/wscript
  2. index ecff3c21cf..429090dfe0 100644
  3. --- a/libs/tk/ydk/wscript
  4. +++ b/libs/tk/ydk/wscript
  5. @@ -188,13 +188,18 @@ def build(bld):
  6. obj.export_includes += ['quartz']
  7. elif bld.env['build_target'] == 'mingw' or bld.env['build_target'] == 'msvc':
  8. obj.source = libydk_sources + libydk_win32_sources
  9. - obj.cflags += ['-mms-bitfields', '-Wl,--export-all-symbols']
  10. obj.uselib += ' GIO-WINDOWS'
  11. obj.defines += [ 'INSIDE_GDK_WIN32', 'DLL_EXPORT', 'PIC' ]
  12. obj.includes += ['win32', 'win32/ydk']
  13. obj.export_includes += ['win32']
  14. - obj.linkflags = ['-Wl,--export-all-symbols']
  15. - obj.ldflags = '-limm32 -lole32 -lgdi32 -lcomdlg32 -lwinspool -lcomctl32 -luuid'
  16. + if bld.env['build_target'] == 'mingw':
  17. + obj.cflags += ['-mms-bitfields']
  18. + obj.linkflags = ['-Wl,--export-all-symbols']
  19. + obj.ldflags = '-limm32 -lole32 -lgdi32 -lcomdlg32 -lwinspool -lcomctl32 -luuid'
  20. + else:
  21. + obj.lib = ['imm32', 'ole32', 'gdi32', 'comdlg32', 'winspool', 'comctl32', 'uuid', 'user32', 'shell32', 'advapi32']
  22. +
  23. +
  24. else:
  25. obj.source = libydk_sources + libydk_x11_sources
  26. obj.uselib += ' GIO-UNIX X11 XEXT XINERAMA RANDR DL'
Advertisement
Add Comment
Please, Sign In to add comment