summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPeter Johnson <peter@tortall.net>2008-05-22 09:08:03 +0000
committerPeter Johnson <peter@tortall.net>2008-05-22 09:08:03 +0000
commitb7f2fbc64fcfe8e30650a32e3354613aceaceb0c (patch)
tree785bf9ebd79ce3369af295bfbeea0b75faffa5be /tools
parent811d7ad566a3e7df758c47d4f11dcf4ea82a403d (diff)
downloadyasm-b7f2fbc64fcfe8e30650a32e3354613aceaceb0c.tar.gz
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
Diffstat (limited to 'tools')
-rw-r--r--tools/CMakeLists.txt3
-rw-r--r--tools/genmacro/CMakeLists.txt3
-rw-r--r--tools/genperf/CMakeLists.txt7
-rw-r--r--tools/re2c/CMakeLists.txt11
4 files changed, 24 insertions, 0 deletions
diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt
new file mode 100644
index 00000000..4b83d4eb
--- /dev/null
+++ b/tools/CMakeLists.txt
@@ -0,0 +1,3 @@
+ADD_SUBDIRECTORY(genmacro)
+ADD_SUBDIRECTORY(genperf)
+ADD_SUBDIRECTORY(re2c)
diff --git a/tools/genmacro/CMakeLists.txt b/tools/genmacro/CMakeLists.txt
new file mode 100644
index 00000000..27ba5996
--- /dev/null
+++ b/tools/genmacro/CMakeLists.txt
@@ -0,0 +1,3 @@
+add_executable(genmacro
+ genmacro.c
+ )
diff --git a/tools/genperf/CMakeLists.txt b/tools/genperf/CMakeLists.txt
new file mode 100644
index 00000000..22afcc95
--- /dev/null
+++ b/tools/genperf/CMakeLists.txt
@@ -0,0 +1,7 @@
+add_executable(genperf
+ genperf.c
+ perfect.c
+ ../../libyasm/phash.c
+ ../../libyasm/xmalloc.c
+ ../../libyasm/xstrdup.c
+ )
diff --git a/tools/re2c/CMakeLists.txt b/tools/re2c/CMakeLists.txt
new file mode 100644
index 00000000..7125d496
--- /dev/null
+++ b/tools/re2c/CMakeLists.txt
@@ -0,0 +1,11 @@
+add_executable(re2c
+ main.c
+ code.c
+ dfa.c
+ parser.c
+ actions.c
+ scanner.c
+ mbo_getopt.c
+ substr.c
+ translate.c
+ )