yasm/plugins
Biswapriyo Nath a277a590f0
Fix detecting Windows platform (#204)
This replaces _MSC_VER macro with _WIN32 because the
former one is for MSVC and Visual Studio only and is
not defined in mingw environment. Wherease, _WIN32
macro is the proper way to check Windows platform
irrespective of compiler toolchain.

See the following official link for more info
https://learn.microsoft.com/en-us/cpp/preprocessor/predefined-macros
2023-05-12 21:06:53 -07:00
..
dbg Fix detecting Windows platform (#204) 2023-05-12 21:06:53 -07:00
x86 Fix detecting Windows platform (#204) 2023-05-12 21:06:53 -07:00
README Update plugin README files for Windows. 2008-05-24 19:00:48 +00:00

These directories contain example yasm plugins.
Yasm is only capable of loading plugins when it was built using cmake.
To build yasm with cmake on Unix, from the yasm source tree, do:
  mkdir objdir
  cd objdir
  cmake ..
  make

The plugins are written to be compiled against an *installed* yasm.
Plugins may be loaded on the yasm command line using the -N command line
option, e.g.:
  yasm -N ./libdbgmod.so
  yasm -N Release/dbgmod.dll
  yasm -N /usr/local/lib/libx86mod
(the .so will be automatically appended)
If no directory path is specified, yasm will search in standard library
locations (e.g. LD_LIBRARY_PATH, the rpath of the yasm executable, etc) to
try to load the plugin.  Thus the last example (after installing the plugin)
could likely be written:
  yasm -N x86mod

Plugins may override builtin modules like x86.