Re: Support for building against MFC and Windows Forms?

Vaclav Slavik <[email protected]> Fri, 21 May 2010 18:53:30 +0200
Newsgroups gmane.comp.sysutils.bakefile.devel
Message-ID <1274460810.31858.1.camel@localhost>
--===============6599238810992084156==
Content-Type: multipart/signed; micalg="pgp-sha1";
	protocol="application/pgp-signature";
	boundary="=-EHOp8iVl3zINfYhp2TsF"


--=-EHOp8iVl3zINfYhp2TsF
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hi,

On Tue, 2010-05-18 at 17:36 -0600, Warren Young wrote:
> bring everything into a single common build system.  The problem is that=
=20
> I can't see how to get Bakefile to generate *.vcproj files with MFC or=
=20
> C++/CLI options enabled.

You'll have to extend Bakefile to do that.

> The MFC case is probably simple.  There seems to be two changes needed.=
=20
>   One is that UseOfMFC=3D"0" needs to change to 2. =20

Yes, this should be pretty simply with some <msvc-use-mfc> flag...

> The C++/CLI case may be harder, since it's an entirely different build=
=20
> environment.  Currently, my users have to rebuild my library with CLR=20
> support before they can link it to the C++/CLI example.  Even assuming=
=20
> we can figure out how to get Bakefile to generate *.vcproj that will=20
> build a Windows Forms based program, I guess I'll have to figure out how=
=20
> to get it to also build my library twice, once with CLR support turned=
=20
> on, the second time with it turned off.

I'd expect the CompileAsManaged property to be per-configuration, so you
could just have one config to compile as native, one as managed... Am I
missing something?

Vaclav

--=-EHOp8iVl3zINfYhp2TsF
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)

iEYEABECAAYFAkv2uooACgkQxDYa/UZSZMnInwCgjEfGu9loA0gcGGVEo3OZ6cdO
/u8AnjdkDJc/FGpi/VqiUtvVn7NVg7uY
=kxEf
-----END PGP SIGNATURE-----

--=-EHOp8iVl3zINfYhp2TsF--



--===============6599238810992084156==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------


--===============6599238810992084156==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Bakefile-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bakefile-devel

--===============6599238810992084156==--