`
Par2: Template extension to determine compile target (EXE/DLL/LIB) 1998-09-09 -- Roberto Artigas Jr. Based on a suggestion from Jeff Slarve: Heaveno - Here is what I finally used to compile certain parts of code depending whether it is a DLL or EXE. You will need to add this code snipit to one of your favorite templates. Thank you to those who helped. Enjoy! #!==================================================================== #!==================================================================== #!==================================================================== #EXTENSION(CompileOptions, 'Setup Application Compile Options'),APPLICATION #!==================================================================== #IF (%ProgramExtension='DLL') _IsDLL_ EQUATE(1) _IsEXE_ EQUATE(0) _IsLIB_ EQUATE(0) #ELSIF (%ProgramExtension='EXE') _IsDLL_ EQUATE(0) _IsEXE_ EQUATE(1) _IsLIB_ EQUATE(0) #ELSIF (%ProgramExtension='LIB') _IsDLL_ EQUATE(0) _IsEXE_ EQUATE(0) _IsLIB_ EQUATE(1) #ELSE _IsDLL_ EQUATE(0) _IsEXE_ EQUATE(0) _IsLIB_ EQUATE(0) #ENDIF #!==================================================================== #! This can then be used to set a variable which, in turn, is used to conditionally include or exclude other code. Printed December 3, 2024, 11:44 am This article has been viewed/printed 35308 times. |