NewsArchive
01-18-2016, 05:23 AM
I am attempting to have a conditional CODESIGN_SHA pragma in the code
where code signing would be either just SHA1 or SHA1/2.
Just for testing, I used the following. The actual test will be more
involved, the file exist is just for testing<g>.
#iffile "W:\CodeSign.txt" doesn't exist Then
#msg "CODESIGN.TXT Does Not Exist"
#pragma CODESIGN_SHA = "1"
#else
#msg "CODESIGN.TXT Does Exist"
#pragma CODESIGN_SHA = "12"
#end
It properly shows the "#msg" based on if file is there or not but the
#pragma do not work. Instead it seems to always pickup and use the
last #pragma regardless if the test,
Is this correct behavior and if so, is there a way to accomplish the
objective?
Barton Whisler
(retired<g>)
where code signing would be either just SHA1 or SHA1/2.
Just for testing, I used the following. The actual test will be more
involved, the file exist is just for testing<g>.
#iffile "W:\CodeSign.txt" doesn't exist Then
#msg "CODESIGN.TXT Does Not Exist"
#pragma CODESIGN_SHA = "1"
#else
#msg "CODESIGN.TXT Does Exist"
#pragma CODESIGN_SHA = "12"
#end
It properly shows the "#msg" based on if file is there or not but the
#pragma do not work. Instead it seems to always pickup and use the
last #pragma regardless if the test,
Is this correct behavior and if so, is there a way to accomplish the
objective?
Barton Whisler
(retired<g>)