Skip to content

Commit

Permalink
Merge pull request #179 from RA-Consulting-GmbH/fixes-issue-178
Browse files Browse the repository at this point in the history
Fixed missing v1_2 headers in artifacts
Fixed isolated versions compile issues
  • Loading branch information
Deakon997 authored Sep 8, 2022
2 parents c966c42 + 1c0836d commit f00bb46
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,8 @@ int main(int argc, char** argv)
if (argc == 6 && std::string(argv[5]) == "-v1_1")
{
version = VERSION_1_1;
}else if (argc == 6 && std::string(argv[5]) == "-v1_2")
}
else if (argc == 6 && std::string(argv[5]) == "-v1_2")
{
version = VERSION_1_2;
}
Expand Down
4 changes: 1 addition & 3 deletions cpp/applications/openScenarioTester/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,6 @@ set( SOURCES
${SOURCES}
"src/TestBaseV1_0.cpp"
"src/TestExamplesV1_0.cpp"
"src/TestExamplesV1_1.cpp"
"src/TestCardinalityV1_1.cpp"
"src/TestFilesV1_0.cpp"
"src/TestFlexInterfaceV1_0.cpp"
"src/TestImportsV1_0.cpp"
Expand All @@ -151,11 +149,11 @@ set( SOURCES
endif (SUPPORT_OSC_1_0)

if (SUPPORT_OSC_1_1)

set( SOURCES
${SOURCES}
"src/TestBaseV1_1.cpp"
"src/TestExamplesV1_1.cpp"
"src/TestCardinalityV1_1.cpp"
"src/TestFilesV1_1.cpp"
"src/TestFlexInterfaceV1_1.cpp"
"src/TestImportsV1_1.cpp"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
* limitations under the License.
*/

#include <TestExamplesOscV1_2.h>

#include "TestVersionOptionsWithReader.h"

#ifdef SUPPORT_OSC_1_0
Expand Down Expand Up @@ -47,7 +45,6 @@
#include "TestFlexInterfaceV1_1.h"
#include "TestInjectedParametersV1_1.h"
#include "TestWriterApiV1_1.h"

#endif

#ifdef SUPPORT_OSC_1_2
Expand All @@ -57,6 +54,7 @@
#include "TestAlksV1_2.h"
#include "TestDeprecatedV1_2.h"
#include "TestExamplesV1_2.h"
#include <TestExamplesOscV1_2.h>
#include "TestRangeCheckerV1_2.h"
#include "TestFilesV1_2.h"
#include "TestImportsV1_2.h"
Expand Down
2 changes: 1 addition & 1 deletion cpp/buildArtifact/collectHeaderFiles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ FIND_HEADERS_SH=${FIND_HEADERS_SH_PATH}/${FIND_HEADERS_SH_FILE}
# prepare inlude paths for C++ compiler in order to extract ALL necessary non-system include files
# this has to be done outside the openScenarioReader project folder to also reach all referenced external dependencies
echo "#!/bin/bash" > ${FIND_HEADERS_SH}
echo "cpp -DCOLLECT_HEADERS -MM \\" >> ${FIND_HEADERS_SH}
echo "cpp -DCOLLECT_HEADERS -DSUPPORT_OSC_1_0 -DSUPPORT_OSC_1_1 -DSUPPORT_OSC_1_2 -MM \\" >> ${FIND_HEADERS_SH}
for i in `find . -type d -print` ; do
if [[ $i == *"CMake"* ]] || [[ $i == *"antlr_runtime"* ]] || [[ $i == *"ython"* ]] || [[ $i == *"java"* ]] || [[ $i == *".dir"* ]] || [[ $i == "./build"* ]] ;
then
Expand Down
14 changes: 14 additions & 0 deletions cpp/buildArtifact/createCMakeLists.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,20 @@ set( ENV{CMAKE_BUILD_PARALLEL_LEVEL} 4 )
################################################################
# Preprocessor settings
option(SUPPORT_OSC_1_0 \"Build the artifacts supporting OSC standard version 1.0\" ON)
option(SUPPORT_OSC_1_1 \"Build the artifacts supporting OSC standard version 1.1\" ON)
option(SUPPORT_OSC_1_2 \"Build the artifacts supporting OSC standard version 1.2\" ON)
if (SUPPORT_OSC_1_0)
add_definitions(-DSUPPORT_OSC_1_0)
endif (SUPPORT_OSC_1_0)
if (SUPPORT_OSC_1_1)
add_definitions(-DSUPPORT_OSC_1_1)
endif (SUPPORT_OSC_1_1)
if (SUPPORT_OSC_1_2)
add_definitions(-DSUPPORT_OSC_1_2)
endif (SUPPORT_OSC_1_2)
if( WIN32 )
add_definitions( -D_CRT_SECURE_NO_WARNINGS )
else( WIN32 )
Expand Down

0 comments on commit f00bb46

Please sign in to comment.