IVGCVSW-3400 Fixed include directives for Gatord builds
authorMatteo Martincigh <matteo.martincigh@arm.com>
Thu, 17 Oct 2019 12:26:21 +0000 (13:26 +0100)
committerMatteo Martincigh <matteo.martincigh@arm.com>
Thu, 17 Oct 2019 12:34:28 +0000 (13:34 +0100)
 * Using proper include directives with include paths
 * The relative paths used were causing trouble when building
   on other CI systems

Signed-off-by: Matteo Martincigh <matteo.martincigh@arm.com>
Change-Id: I897a80d1f56fbdbc3c714a50a0598210d8f0a03c

CMakeLists.txt
tests/profiling/gatordmock/GatordMockService.cpp
tests/profiling/gatordmock/GatordMockService.hpp
tests/profiling/gatordmock/PeriodicCounterCaptureCommandHandler.cpp
tests/profiling/gatordmock/PeriodicCounterCaptureCommandHandler.hpp
tests/profiling/gatordmock/tests/GatordMockTests.cpp

index 6bc6573..499f721 100644 (file)
@@ -905,7 +905,7 @@ if(BUILD_GATORD_MOCK)
         tests/profiling/gatordmock/PeriodicCounterCaptureCommandHandler.hpp
         )
 
-    include_directories( ${Boost_INCLUDE_DIRS} src/profiling)
+    include_directories(${Boost_INCLUDE_DIRS} src/profiling)
 
     add_library_ex(gatordMockService STATIC ${gatord_mock_sources})
 
@@ -915,9 +915,10 @@ if(BUILD_GATORD_MOCK)
         target_link_libraries(GartordMock pthread)
     endif()
 
-    target_link_libraries(GartordMock armnn gatordMockService)
     target_link_libraries(GartordMock
-        ${Boost_PROGRAM_OPTIONS_LIBRARY} ${Boost_SYSTEM_LIBRARY}
-        )
+        armnn
+        gatordMockService
+        ${Boost_PROGRAM_OPTIONS_LIBRARY}
+        ${Boost_SYSTEM_LIBRARY})
 
 endif()
index f4146c2..b5531c4 100644 (file)
@@ -2,9 +2,10 @@
 // Copyright © 2019 Arm Ltd. All rights reserved.
 // SPDX-License-Identifier: MIT
 //
+
 #include "GatordMockService.hpp"
 
-#include "../../src/profiling/CommandHandlerRegistry.hpp"
+#include <CommandHandlerRegistry.hpp>
 
 #include <cerrno>
 #include <fcntl.h>
@@ -16,7 +17,6 @@
 #include <sys/un.h>
 #include <unistd.h>
 
-
 namespace armnn
 {
 
index 1aba2e8..c860f16 100644 (file)
@@ -5,13 +5,13 @@
 
 #pragma once
 
+#include <CommandHandlerRegistry.hpp>
+#include <Packet.hpp>
+
 #include <string>
 #include <thread>
 #include <atomic>
 
-#include "../../src/profiling/CommandHandlerRegistry.hpp"
-#include "../../src/profiling/Packet.hpp"
-
 namespace armnn
 {
 
index 5a70f68..f3bf796 100644 (file)
@@ -3,13 +3,14 @@
 // SPDX-License-Identifier: MIT
 //
 
-#include <iostream>
-
-#include "../../../src/profiling/ProfilingUtils.hpp"
 #include "PeriodicCounterCaptureCommandHandler.hpp"
 
+#include <ProfilingUtils.hpp>
+
 #include <boost/numeric/conversion/cast.hpp>
 
+#include <iostream>
+
 namespace armnn
 {
 
@@ -144,4 +145,4 @@ void PeriodicCounterCaptureCommandHandler::operator()(const profiling::Packet& p
 
 }    // namespace gatordmock
 
-}    // namespace armnn
\ No newline at end of file
+}    // namespace armnn
index 7f46d8e..7d6471b 100644 (file)
@@ -5,8 +5,8 @@
 
 #pragma once
 
-#include "../../armnn/src/profiling/Packet.hpp"
-#include "../../armnn/src/profiling/CommandHandlerFunctor.hpp"
+#include <Packet.hpp>
+#include <CommandHandlerFunctor.hpp>
 
 #include <vector>
 
@@ -51,4 +51,4 @@ private:
 
 } // namespace gatordmock
 
-} // namespace armnn
\ No newline at end of file
+} // namespace armnn
index 66778cd..a6297e9 100644 (file)
@@ -3,14 +3,14 @@
 // SPDX-License-Identifier: MIT
 //
 
+#include "../GatordMockService.hpp"
 #include "../MockUtils.hpp"
 #include "../PeriodicCounterCaptureCommandHandler.hpp"
 
-#include "../../src/profiling/CommandHandlerRegistry.hpp"
-#include "../GatordMockService.hpp"
+#include <CommandHandlerRegistry.hpp>
+#include <ProfilingService.hpp>
 
-#include "../../src/profiling/ProfilingService.hpp"
-#include "../../src/profiling/test/SendCounterPacketTests.hpp"
+#include <test/SendCounterPacketTests.hpp>
 
 #include <boost/cast.hpp>
 #include <boost/test/test_tools.hpp>