Hi FireBreath-ers,
I am looking for a way to generate, in one pass, both 32 and 64 bits of my plugin.
Question: Is there any settings in CMake files I can set to automatically generate the two versions (32 and 64 bits) ?
If not, I thought about creating a script that switches the PluginConfig.cmake file with different configurations for 32 and 64bits.. but would that be sufficient ? And what config options should I change in there to force compilation of 32 or 64 bits (i.e., I want to be able to also compile 32bits on 64bits operating system).
I need to do this for Linux, Win, and MacOS.
Thanks for your help!
Cheers,
Max
--
---
You received this message because you are subscribed to the Google Groups "firebreath-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebreath-de...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Try something like this on windows in a batch file:
============@echo offREM buildboth.cmdprep2010.cmd projects build_32cmake --build build_32 --config RelWithDebInfo
prep2010_x64.cmd projects build_64cmake --build build_64 --config RelWithDebInfo============
That should about do it. On linux it may be harder; I don't know myself offhand how to build for 32 bit on a 64 bit system, and I suspect you need a 64 bit system to build 64 bit. On mac it'll build for both by default, and with a FAT binary which will work on both 32 and 64 bit. Of course, on mac if you have a 32 bit it'll work on 64 bit browsers, so most people are better off just using a 32 bit binary. On windows cmake won't let you build both in the same project.
Richard