summaryrefslogtreecommitdiff
path: root/2.3-1/macros/CCodeGeneration/C_FinalizeCode.sci
diff options
context:
space:
mode:
authorsiddhu89902016-12-20 13:29:53 +0530
committersiddhu89902016-12-20 13:29:53 +0530
commit28d16508c39756d1f143b44c33115530fd4a7653 (patch)
tree3cc2ae342605c573cbc57430122481b8853dd023 /2.3-1/macros/CCodeGeneration/C_FinalizeCode.sci
parentcdd9bf519d594b87c07193d2770b81a07829a50c (diff)
downloadScilab2C-28d16508c39756d1f143b44c33115530fd4a7653.tar.gz
Scilab2C-28d16508c39756d1f143b44c33115530fd4a7653.tar.bz2
Scilab2C-28d16508c39756d1f143b44c33115530fd4a7653.zip
Selectively add opencv related files if image processing functions are used
Diffstat (limited to '2.3-1/macros/CCodeGeneration/C_FinalizeCode.sci')
-rw-r--r--2.3-1/macros/CCodeGeneration/C_FinalizeCode.sci14
1 files changed, 11 insertions, 3 deletions
diff --git a/2.3-1/macros/CCodeGeneration/C_FinalizeCode.sci b/2.3-1/macros/CCodeGeneration/C_FinalizeCode.sci
index d1fc7e61..33a1d791 100644
--- a/2.3-1/macros/CCodeGeneration/C_FinalizeCode.sci
+++ b/2.3-1/macros/CCodeGeneration/C_FinalizeCode.sci
@@ -45,14 +45,22 @@ PrintStringInfo('Generating the final C code in:'+FinalCFileName,...
// ---------------------------------
// --- Finalize the header file. ---
// ---------------------------------
+if(SharedInfo.OpenCVUsed)
+ PrintStringInfo('#include ""cvcore.hpp""',Pass1HeaderFileName,'file','y');
+ PrintStringInfo('#include ""int_cvcore.hpp""',Pass1HeaderFileName,'file','y');
+ PrintStringInfo('#include ""cvhighgui.hpp""',Pass1HeaderFileName,'file','y');
+ PrintStringInfo('#include ""int_cvhighgui.hpp""',Pass1HeaderFileName,'file','y');
+ PrintStringInfo('#include ""cvimgproc.hpp""',Pass1HeaderFileName,'file','y');
+ PrintStringInfo('#include ""int_cvimgproc.hpp""',Pass1HeaderFileName,'file','y');
+end
PrintStringInfo('/*',Pass1HeaderFileName,'file','y');
PrintStringInfo('** ---------------------------- ',Pass1HeaderFileName,'file','y');
PrintStringInfo('** --- End USER2C Includes. --- ',Pass1HeaderFileName,'file','y');
PrintStringInfo('** ---------------------------- ',Pass1HeaderFileName,'file','y');
PrintStringInfo('*/',Pass1HeaderFileName,'file','y');
-PrintStringInfo('#ifdef __cplusplus',Pass1HeaderFileName,'file','y');
-PrintStringInfo('} /* extern ""C"" */',Pass1HeaderFileName,'file','y');
-PrintStringInfo('#endif',Pass1HeaderFileName,'file','y');
+//PrintStringInfo('#ifdef __cplusplus',Pass1HeaderFileName,'file','y');
+//PrintStringInfo('} /* extern ""C"" */',Pass1HeaderFileName,'file','y');
+//PrintStringInfo('#endif',Pass1HeaderFileName,'file','y');
PrintStringInfo('#endif',Pass1HeaderFileName,'file','y');
// -------------------------------------
// --- End Finalize the header file. ---