` Template extension to determine compile target (EXE/DLL/LIB) (Roberto Artigas Jr. ) - Icetips Article
Icetips - Templates, Tools & Utilities for Clarion Developers

Templates, Tools and Utilities
for Clarion Developers

Icetips Article

Back to article list   Search Articles     Add Comment     Printer friendly     Direct link  

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.


Today is November 21, 2024, 8:22 am
This article has been viewed 35299 times.



Back to article list   Search Articles   Add Comment   Printer friendly

Login

User Name:

Password: