Invoking cl.exe on a source file in a subdirectory

On 11-Mar-2015 22:32, Maxim S. Shatskih wrote:

> Anyway - build or msbuild - no WDK works with gmake.

Is it possible to add the pre-build custom build step to BUILD to copy all files to the same dir?

I know (and use a lot) the post-build steps. What about pre-build?

configure
make sources
make :slight_smile:

– pa

Getting the WDK to work with CMake takes a little work, but it makes
integrating the WDK with a larger build system much easier, IMO.

One of the things that you can do with it is more or less what Pavel just
mentioned :wink:

CMake doesn’t support the Win8 WDK stuff directly, AFAIK.

mm

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Pavel A.
Sent: Wednesday, March 11, 2015 1:56 PM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] Invoking cl.exe on a source file in a subdirectory

On 11-Mar-2015 22:32, Maxim S. Shatskih wrote:

> Anyway - build or msbuild - no WDK works with gmake.

Is it possible to add the pre-build custom build step to BUILD to copy all
files to the same dir?

I know (and use a lot) the post-build steps. What about pre-build?

configure
make sources
make :slight_smile:

– pa


NTDEV is sponsored by OSR

Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev

OSR is HIRING!! See http://www.osr.com/careers

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

> configure

make sources
make :slight_smile:

Sorry, CMake is much better (and is a replacement of) this monstrosity, if you’re speaking about GNU automake/autoconf.

But yes, the notion of “configure” is the same in CMake.

Also note that yes, surely there are pre-build steps with SOURCES, I use one to generate the tiny little header called “svnver.h”, for instance :slight_smile:


Maxim S. Shatskih
Microsoft MVP on File System And Storage
xxxxx@storagecraft.com
http://www.storagecraft.com

> Getting the WDK to work with CMake takes a little work

Oh yes. The simplest way is:

  • generate the SOURCES file by CMake script.
  • fire DDKBUILD.BAT to execute it.

CMake doesn’t support the Win8 WDK stuff directly, AFAIK.

So, you can write your own generator and publish it to the community.

Is there an MSBuild generator for CMake? or only MSVC?


Maxim S. Shatskih
Microsoft MVP on File System And Storage
xxxxx@storagecraft.com
http://www.storagecraft.com

> /* OS X is not Linux too, but Apple can afford being different :slight_smile: */

Are you speaking on Darwin or Cocoa?

The first seems to be really close to FreeBSD if not to Linux, in terms of tools too.


Maxim S. Shatskih
Microsoft MVP on File System And Storage
xxxxx@storagecraft.com
http://www.storagecraft.com

On 12-Mar-2015 06:39, Maxim S. Shatskih wrote:

So, you can write your own genera/tor and publish it to the community.

Is there an MSBuild generator for CMake? or only MSVC?

Yes definitely (as new vcxproj format works with msbuild) , but it
generates normal VC++ projects. Needs some tweaking for a driver project.

– pa