Mercurial > games > semicongine
diff semiconginev2/old/thirdparty/winim/winim.nim @ 1218:56781cc0fc7c compiletime-tests
did: renamge main package
author | sam <sam@basx.dev> |
---|---|
date | Wed, 17 Jul 2024 21:01:37 +0700 |
parents | semicongine/old/thirdparty/winim/winim.nim@239adab121a3 |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/semiconginev2/old/thirdparty/winim/winim.nim Wed Jul 17 21:01:37 2024 +0700 @@ -0,0 +1,42 @@ +#==================================================================== +# +# Winim - Windows API, COM, and CLR Module for Nim +# Copyright (c) Chen Kai-Hung, Ward +# +#==================================================================== + +## This module contains Windows API, struct, and constant definitions. +## The definitions are translated from MinGW's Windows headers. +## +## The module also include some windows string type utilities and COM support. +## See utils.nim, winstr.nim, and com.nim for details. +## +## Usage: +## .. code-block:: Nim +## import winim # impore all modules, except COM support +## import winim/lean # for core SDK only +## import winim/mean # for core SDK + Shell + OLE +## import winim/com # for core SDK + Shell + OLE + COM support +## +## To compile: +## .. code-block:: Nim +## nim c source.nim +## add -d:winansi or -d:useWinAnsi for Ansi version (Unicode by default). +## add -d:noDiscardableApi if not like discardable windows API. +## add -d:noRes to disable the visual styles (not to link winim32.res or winim64.res). +## add -d:lean same as import winim/lean. +## add -d:mean or -d:win32_lean_and_mean same as import winim/mean. +## add -d:notrace disable COM objects trace. See com.nim for details. + +when defined(lean): + import winim/[core] + export core +elif defined(mean) or defined(win32_lean_and_mean): + import winim/[core, shell, ole] + export core, shell, ole +else: + import winim/[core, shell, net, ole, extra] + export core, shell, net, ole, extra + +import winim/[utils, winstr] +export utils, winstr