mirror of
https://github.com/yasm/yasm
synced 2026-08-26 22:26:05 -04:00
Add cmake build infrastructure.
Not default nor even distributed in the .tar.gz, the cmake build allows for loadable yasm plugins by building libyasm as a shared library. Example plugins are in the plugins/ directory, and may be loaded into a cmake-built yasm using the -N command line option (non-cmake builds will not have this option). Tested only on Linux so far, but should be relatively painless to port to Windows thanks to the use of cmake rather than libtool to create shared libraries. The only modification to the main source tree is some conditional-compiled additions to yasm.c. svn path=/trunk/yasm/; revision=2098
This commit is contained in:
parent
811d7ad566
commit
b7f2fbc64f
54 changed files with 1483 additions and 10 deletions
20
libyasm-stdint.h.cmake
Normal file
20
libyasm-stdint.h.cmake
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
#cmakedefine HAVE_STDINT_H
|
||||
|
||||
#ifdef HAVE_STDINT_H
|
||||
#include <stdint.h>
|
||||
#elif defined(_MSC_VER)
|
||||
|
||||
#ifndef _UINTPTR_T_DEFINED
|
||||
#ifdef _WIN64
|
||||
#include <vadefs.h>
|
||||
#else
|
||||
typedef unsigned long uintptr_t;
|
||||
#endif
|
||||
#define _UINTPTR_T_DEFINED
|
||||
#endif
|
||||
|
||||
#else
|
||||
typedef unsigned long uintptr_t;
|
||||
#endif
|
||||
|
||||
#undef HAVE_STDINT_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue