CambridgeGuy
Programmer
Hi.
I have a few assembly (NASM) files that are part of a C++ project. I use custom build commands to compile these files and it works fine.
I am trying to find a way to only compile these files when a certain preprocessor definition exists. For example, in the C code where the routines from the assembly files are used, I use "#ifdef USE_ASM" to only call those routines when USE_ASM is defined. Is there any way I can do something similar in the custom build command?
The only alternative I have been able to come up with so far is to create separate Project Configurations for using the assembly files, but this makes the project more complicated than I would like.
Any suggestions?
I have a few assembly (NASM) files that are part of a C++ project. I use custom build commands to compile these files and it works fine.
I am trying to find a way to only compile these files when a certain preprocessor definition exists. For example, in the C code where the routines from the assembly files are used, I use "#ifdef USE_ASM" to only call those routines when USE_ASM is defined. Is there any way I can do something similar in the custom build command?
The only alternative I have been able to come up with so far is to create separate Project Configurations for using the assembly files, but this makes the project more complicated than I would like.
Any suggestions?