dear all:
Is it possible to conditionally assign different source/rc files in one sources file ?
(one common sources used for some projects among which there are little different files)
Best Regards
dear all:
Is it possible to conditionally assign different source/rc files in one sources file ?
(one common sources used for some projects among which there are little different files)
Best Regards
> Is it possible to conditionally assign different source/rc files in one
sources file?
How about using #ifdef and #include in the C-source-files?
That way you’d be able to always have the same files in your “sources”
file…
Regards,
Paul Groke
#ifdef WIN_9X
#include <file9x.c>
#else
#include <filent.c>
-pro
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Alan Kung
Sent: Sunday, August 01, 2004 6:02 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] sources question
dear all:
Is it possible to conditionally assign different source/rc files in one
sources file ?
(one common sources used for some projects among which there are little
different files)
Best Regards
—
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@garlic.com
To unsubscribe send a blank email to xxxxx@lists.osr.com</filent.c></file9x.c>
!IF
!ELSE
!ENDIF
is the statement.
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
----- Original Message -----
From: Alan Kung
To: Windows System Software Devs Interest List
Sent: Monday, August 02, 2004 5:02 AM
Subject: [ntdev] sources question
dear all:
Is it possible to conditionally assign different source/rc files in one sources file ?
(one common sources used for some projects among which there are little different files)
Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@storagecraft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
Yes, I have tried it, but the build utility
does not use the different source file to build the target.
I use a mk.bat to build my project.
mk.bat
if (%XPDDK%)==() set XPDDK=c:\winddk\3790.WinHec03
if (%DXDDK%)==() set DXDDK=c:\dx9ddk
set target_name=MyProject
set curdir=%cd%
set debug=
set platform=
:parse_arg
:argloop
if (%1) == () goto arg_end
if (%1) == (debug) set debug=1
if (%1) == (DEBUG) set debug=1
if (%1) == (P1) set target_name=PROJECT
shift
goto argloop
:arg_end
set TARGETNAME=%target_name%
set bt=fre
if (%debug%) == (1) set bt=chk
set ddkdir=%XPDDK%
set DDK_TARGET_OS=WinXP
call %ddkdir%\bin\setenv.bat %ddkdir% %bt% %platform%
set DDK_INC_PATH=%dxddk%\inc;%DDK_INC_PATH%
:make
cd /d %curdir%
build -cZ
set target_dir=obj%BUILD_ALT_DIR%%_BUILDARCH%
if (%_BUILDARCH%) == (x86) set target_dir=obj%BUILD_ALT_DIR%\i386
sources
!IF "$(TARGETNAME)"=="MyProject"
optionalfile = file4.c
!ELSE
optionalfile = file5.c
!ENDIF
SOURCES= rcfile.rc \
file1.c \
file2.c \
file3.c \
$(optionalfile)
----- Original Message -----
From: Maxim S. Shatskih
To: Windows System Software Devs Interest List
Sent: Tuesday, August 03, 2004 6:03 AM
Subject: Re: [ntdev] sources question
!IF
!ELSE
!ENDIF
is the statement.
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com
----- Original Message -----
From: Alan Kung
To: Windows System Software Devs Interest List
Sent: Monday, August 02, 2004 5:02 AM
Subject: [ntdev] sources question
dear all:
Is it possible to conditionally assign different source/rc files in one sources file ?
(one common sources used for some projects among which there are little different files)
Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@xgitech.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
In the xp ddk, the !if must be at column 0 (or the first column for
non-programmers) otherwise it doesn’t work.
Thanks,
Rob
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Alan Kung
Sent: Monday, August 02, 2004 9:42 PM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] sources question
Yes, I have tried it, but the build utility
does not use the different source file to build the target.
I use a mk.bat to build my project.
mk.bat
if (%XPDDK%)==() set XPDDK=c:\winddk\3790.WinHec03
if (%DXDDK%)==() set DXDDK=c:\dx9ddk
set target_name=MyProject
set curdir=%cd%
set debug=
set platform=
:parse_arg
:argloop
if (%1) == () goto arg_end
if (%1) == (debug) set debug=1
if (%1) == (DEBUG) set debug=1
if (%1) == (P1) set target_name=PROJECT
shift
goto argloop
:arg_end
set TARGETNAME=%target_name%
set bt=fre
if (%debug%) == (1) set bt=chk
set ddkdir=%XPDDK%
set DDK_TARGET_OS=WinXP
call %ddkdir%\bin\setenv.bat %ddkdir% %bt% %platform%
set DDK_INC_PATH=%dxddk%\inc;%DDK_INC_PATH%
:make
cd /d %curdir%
build -cZ
set target_dir=obj%BUILD_ALT_DIR%%_BUILDARCH%
if (%_BUILDARCH%) == (x86) set target_dir=obj%BUILD_ALT_DIR%\i386
sources
!IF “$(TARGETNAME)”==“MyProject”
optionalfile = file4.c
!ELSE
optionalfile = file5.c
!ENDIF
SOURCES= rcfile.rc \
file1.c \
file2.c \
file3.c \
$(optionalfile)
----- Original Message -----
From: Maxim S. Shatskih mailto:xxxxx
To: Windows mailto:xxxxx System Software Devs Interest List
Sent: Tuesday, August 03, 2004 6:03 AM
Subject: Re: [ntdev] sources question
!IF
!ELSE
!ENDIF
is the statement.
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com
----- Original Message -----
From: Alan Kung mailto:xxxxx
To: Windows System mailto:xxxxx Software Devs Interest List
Sent: Monday, August 02, 2004 5:02 AM
Subject: [ntdev] sources question
dear all:
Is it possible to conditionally assign different source/rc files in one
sources file ?
(one common sources used for some projects among which there are little
different files)
Best Regards
—
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@storagecraft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
—
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@xgitech.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
—
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@cdp.com
To unsubscribe send a blank email to xxxxx@lists.osr.com</mailto:xxxxx></mailto:xxxxx></mailto:xxxxx></mailto:xxxxx>
Yes, I have also noted it. But still not work.
----- Original Message -----
From: Rob Green
To: Windows System Software Devs Interest List
Sent: Tuesday, August 03, 2004 9:47 AM
Subject: RE: [ntdev] sources question
In the xp ddk, the !if must be at column 0 (or the first column for non-programmers) otherwise it doesn’t work.
Thanks,
Rob
-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Alan Kung
Sent: Monday, August 02, 2004 9:42 PM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] sources question
Yes, I have tried it, but the build utility
does not use the different source file to build the target.
I use a mk.bat to build my project.
mk.bat
if (%XPDDK%)==() set XPDDK=c:\winddk\3790.WinHec03
if (%DXDDK%)==() set DXDDK=c:\dx9ddk
set target_name=MyProject
set curdir=%cd%
set debug=
set platform=
:parse_arg
:argloop
if (%1) == () goto arg_end
if (%1) == (debug) set debug=1
if (%1) == (DEBUG) set debug=1
if (%1) == (P1) set target_name=PROJECT
shift
goto argloop
:arg_end
set TARGETNAME=%target_name%
set bt=fre
if (%debug%) == (1) set bt=chk
set ddkdir=%XPDDK%
set DDK_TARGET_OS=WinXP
call %ddkdir%\bin\setenv.bat %ddkdir% %bt% %platform%
set DDK_INC_PATH=%dxddk%\inc;%DDK_INC_PATH%
:make
cd /d %curdir%
build -cZ
set target_dir=obj%BUILD_ALT_DIR%%_BUILDARCH%
if (%_BUILDARCH%) == (x86) set target_dir=obj%BUILD_ALT_DIR%\i386
sources
!IF “$(TARGETNAME)”==“MyProject”
optionalfile = file4.c
!ELSE
optionalfile = file5.c
!ENDIF
SOURCES= rcfile.rc \
file1.c \
file2.c \
file3.c \
$(optionalfile)
----- Original Message -----
From: Maxim S. Shatskih
To: Windows System Software Devs Interest List
Sent: Tuesday, August 03, 2004 6:03 AM
Subject: Re: [ntdev] sources question
!IF
!ELSE
!ENDIF
is the statement.
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com
----- Original Message -----
From: Alan Kung
To: Windows System Software Devs Interest List
Sent: Monday, August 02, 2004 5:02 AM
Subject: [ntdev] sources question
dear all:
Is it possible to conditionally assign different source/rc files in one sources file ?
(one common sources used for some projects among which there are little different files)
Best Regards
Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@storagecraft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@xgitech.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@cdp.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@xgitech.com
To unsubscribe send a blank email to xxxxx@lists.osr.com