Issue#239
Add support for Windows
Highlights -
Renaming slapi.* files to slapi_scripts.* to support non-case
sensitive platforms like windows. The folder already contains
another file with the same name and that won't scale to these
platforms. Files renamed and related scripts updated.
MODIFY
CMakeLists.txt
CMakeLists.txt
@@ -145,7 +145,7 @@ add_custom_command(
COMMAND SourceCompile/generate_parser_listener.tcl ;
COMMAND API/generate_python_listener_api.tcl ;
COMMAND echo " Python API Generation..."
- COMMAND ${SWIG_EXECUTABLE} -c++ -python -o API/slapi_wrap.cxx API/slapi.i ;
+ COMMAND ${SWIG_EXECUTABLE} -c++ -python -o API/slapi_wrap.cxx API/slapi_scripts.i ;
COMMAND API/embed_python_api.tcl
COMMAND touch ${PROJECT_SOURCE_DIR}/src/SourceCompile/dummy2
COMMAND echo " Code Generation completed"
@@ -155,7 +155,7 @@ add_custom_command(
${PROJECT_SOURCE_DIR}/grammar/SV3_1aPpParser.g4
${PROJECT_SOURCE_DIR}/grammar/SV3_1aParser.g4
${PROJECT_SOURCE_DIR}/grammar/SV3_1aSplitterParser.g4
- ${PROJECT_SOURCE_DIR}/src/API/slapi.i
+ ${PROJECT_SOURCE_DIR}/src/API/slapi_scripts.i
${PROJECT_SOURCE_DIR}/src/parser/dummy1)
include_directories(${PROJECT_SOURCE_DIR}/src)

MODIFY
src/API/PythonAPI.cpp
src/API/PythonAPI.cpp
@@ -58,7 +58,7 @@ using namespace SURELOG;
#include "ParserRuleContext.h"
#include "API/slapi_wrap.cxx"
-#include "API/slapi.h"
+#include "API/slapi_scripts.h"
#include "API/vobjecttypes_py.h"
#include <cstdlib>
#include "SourceCompile/PythonListen.h"

MODIFY
src/API/embed_python_api.tcl
src/API/embed_python_api.tcl
@@ -25,7 +25,7 @@ set content "$content\n[read $fid]"
close $fid
set lines [split $content "\n"]
-set oid [open "API/slapi.h" "w"]
+set oid [open "API/slapi_scripts.h" "w"]
puts $oid "std::vector<std::string> slapi_scripts = {"

RENAME
src/API/slapi.h
src/API/slapi_scripts.h
RENAME
src/API/slapi.i
src/API/slapi_scripts.i
Issue#239
Add support for Windows

Highlights -
Renaming slapi.* files to slapi_scripts.* to support non-case
sensitive platforms like windows. The folder already contains
another file with the same name and that won't scale to these
platforms. Files renamed and related scripts updated.