Hi all,
I'm wonder is possible to get project name for preprocessor commands as define (ie. #ifdef...) like compilation date/time by using "__DATE__" & "__TIME__".
Greetings, Lukasz.
Hi Kevin, In the Project->Options->User->Run User Programs Before Build/Rebuild add a command of: PreProcess.Bat "@L"
Could you help tell me why the file "MyProjectName.h" is not created?
[Build Message] Build Project 'bootloader' - Target 'Bootloader Configuration' Before Build - User command #1: E:\2015NewLife\EVT1\Application\Projects\bootloader\src\preprocess.bat "bootloader" E:\2015NewLife\EVT1\Application\Projects\bootloader>echo #define PROJECT_NAME "bootloader" 1>MyProjectName.h compiling main.c... E:\2015NewLife\EVT1\Application\Projects\bootloader\src\main.c(55): error: #5: cannot open source input file "MyProjectName.h": No such file or directory #include "MyProjectName.h" src\main.c: 0 warnings, 1 error ".\output\bootloader.axf" - 1 Error(s), 0 Warning(s). Target not created.
I didn't notice any mention from you for the other step I gave:
Have a batch file in your project directory (with the name PreProcess.Bat) that contains:
echo #define PROJECT_NAME %1 >MyProjectName.H
Hi Kevin, When I search the file 'MyProjectName.H' in my working HDD, I found it is already created in project folder. Thanks for your help.
Hi Kevin, How do I get the output folder by using Key Sequence for Tool Parameters of Keil/MDK. For example, @L denote Linker output file name without extension. BlackSu
How do I get the output folder by using Key Sequence for Tool Parameters of Keil/MDK
I always find the manual a good place to start:
http://www.keil.com/support/man/docs/uv4/uv4_ut_keysequence.htm
Hi Kevin, I knew this link. But I can't find any key sequences for get output folder. Thanks for your help
I got it. $L