[Vm-dev] Adapting CMakeVMMaker to build BochsIA32Plugin
Stefan Marr
smalltalk at stefan-marr.de
Fri Feb 14 16:45:42 UTC 2014
Hi:
I am slowly getting acquainted with CMake and the CMakeVMMaker infrastructure.
In order to build the BochsIA32Plugin for the Cog simulator, I need to pass a number of build flags.
Would be great if someone could tell me how to realize the following things:
1. remove -std=gnu99 for only this plugin
BochsIA32Plugin is written in C++ and Clang doesn’t support the `-std=gnu99` switch in that case.
2. add header include paths
The plugin needs the following two includes to access Bochs’ headers:
-I${root}/processors/IA32/bochs/ -I${root}/processors/IA32/bochs/instrument/stubs/
3. the final binary needs the following linker flags
-lcpu -ldisasm -lfpu -L${root}/processors/IA32/macbochs/disasm/
-L${root}/processors/IA32/macbochs/cpu/ -L${root}/processors/IA32/macbochs/fpu/
In addition to that I would also need to add a script to build the bochs library before linking the binary.
Any hints how to do that are very appreciate.
Thanks
Stefan
--
Stefan Marr
INRIA Lille - Nord Europe
http://stefan-marr.de/research/
More information about the Vm-dev
mailing list