Skip to content

Commit 14d1e87

Browse files
authored
Merge branch 'develop' into hotfix/dynamically_link_libraries
2 parents 21dfde7 + f628d40 commit 14d1e87

File tree

1,052 files changed

+10071
-51109
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,052 files changed

+10071
-51109
lines changed

CMakeLists.txt

+4-39
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ include(${CMAKE_SOURCE_DIR}/tools/cmake/helpers/platform.cmake)
3939
#Jenkins integration section
4040
#dont modify this section if you dont know details about integration with Jenkins!!!
4141
set (HMI "web" CACHE STRING "HMI type")
42-
option(HMI2 "Use Qt HMI" OFF)
4342
option(EXTENDED_MEDIA_MODE "Turn on and off extended Madia Manager features relates to PulseAudio A2DP and GStreamer" OFF)
4443
option(BUILD_SHARED_LIBS "Build all libraries as shared (if ON) or static (if OFF)" OFF)
4544
option(BUILD_BT_SUPPORT "Bluetooth support" ON)
@@ -90,15 +89,12 @@ else ()
9089
endif()
9190

9291
if (HMI_TYPE_OPTION)
93-
if (${HMI_TYPE_OPTION} STREQUAL "HTML5")
94-
message(STATUS "Jenkins integration: select HTML5 HMI")
95-
set (HMI "web")
96-
elseif (${HMI_TYPE_OPTION} STREQUAL "NONE")
92+
if (${HMI_TYPE_OPTION} STREQUAL "NONE")
9793
message(STATUS "Jenkins integration: select HMI none")
9894
set (HMI "no")
9995
else ()
100-
message(STATUS "Jenkins integration: select QML HMI none")
101-
set (HMI "qt")
96+
message(STATUS "Jenkins integration: select HTML5 HMI")
97+
set (HMI "web")
10298
endif()
10399
endif()
104100

@@ -324,48 +320,17 @@ if (EXTENDED_MEDIA_MODE)
324320
add_definitions(${GLIB2_CFLAGS})
325321
endif()
326322

327-
if(HMI STREQUAL "qt")
328-
if(CMAKE_SYSTEM_NAME STREQUAL "QNX")
329-
set(qt_version "4.8.5")
330-
else()
331-
set(qt_version "5.1.0")
332-
endif()
333-
334-
execute_process(
335-
COMMAND ${CMAKE_SOURCE_DIR}/FindQt.sh -v ${qt_version}
336-
OUTPUT_VARIABLE qt_bin_dir
337-
)
338-
message(STATUS "Binary directory Qt ${qt_version} is ${qt_bin_dir}")
339-
set(ENV{PATH} ${qt_bin_dir}:$ENV{PATH})
340-
341-
if(CMAKE_SYSTEM_NAME STREQUAL "QNX")
342-
find_package(Qt4 ${qt_version} REQUIRED QtCore QtGui QtDBus QtDeclarative)
343-
else ()
344-
find_package(Qt5Core REQUIRED)
345-
find_package(Qt5DBus REQUIRED)
346-
find_package(Qt5Qml REQUIRED)
347-
find_package(Qt5Quick REQUIRED)
348-
set(qmlplugindump_binary ${qt_bin_dir}/qmlplugindump)
349-
endif()
350-
endif()
351-
352323
# Building application
353324

354325
# --- Type HMI
355-
if (HMI STREQUAL "qt")
356-
set(QT_HMI ON)
357-
add_definitions(-DQT_HMI)
358-
elseif (HMI STREQUAL "web")
326+
if (HMI STREQUAL "web")
359327
set(WEB_HMI ON)
360328
add_definitions(-DWEB_HMI)
361329
else ()
362330
set(HMI "no")
363331
add_definitions(-DNO_HMI)
364332
endif ()
365333

366-
if (HMI STREQUAL "qt" AND NOT DEFINED HMIADAPTER)
367-
set(HMIADAPTER "dbus")
368-
endif()
369334
if (HMI STREQUAL "web" AND NOT DEFINED HMIADAPTER)
370335
set(HMIADAPTER "messagebroker")
371336
endif()

FindQt.sh

-174
This file was deleted.

README.md

-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ The dependencies for SDL Core vary based on the configuration. You can change SD
6565
| Flag | Description | Dependencies |
6666
|------|-------------|--------------|
6767
|Web HMI|Use HTML5 HMI|chromium-browser|
68-
|HMI2|Build with QT HMI|QT5, dbus-*dev|
6968
|EXTENDED_MEDIA_MODE|Support Video and Audio Streaming|Opengl es2, gstreamer1.0*|
7069
|Bluetooth|Enable bluetooth transport adapter|libbluetooth3, libbluetooth-dev, bluez-tools|
7170
|Testing framework|Needed to support running unit tests|libgtest-dev|

src/appMain/life_cycle.cc

+1
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ bool LifeCycle::StartComponents() {
153153
security_manager_->AddListener(app_manager_);
154154

155155
app_manager_->AddPolicyObserver(crypto_manager_);
156+
app_manager_->AddPolicyObserver(protocol_handler_);
156157
if (!crypto_manager_->Init()) {
157158
LOG4CXX_ERROR(logger_, "CryptoManager initialization fail.");
158159
return false;

src/appMain/main.cc

-20
Original file line numberDiff line numberDiff line change
@@ -90,23 +90,6 @@ bool InitHmi(std::string hmi_link) {
9090
.Execute();
9191
}
9292
#endif // WEB_HMI
93-
94-
#ifdef QT_HMI
95-
/**
96-
* Initialize HTML based HMI.
97-
* @return true if success otherwise false.
98-
*/
99-
bool InitHmi() {
100-
std::string kStartHmi = "./start_hmi.sh";
101-
struct stat sb;
102-
if (stat(kStartHmi.c_str(), &sb) == -1) {
103-
LOG4CXX_FATAL(logger_, "HMI start script doesn't exist!");
104-
return false;
105-
}
106-
107-
return utils::System(kStartHmi).Execute();
108-
}
109-
#endif // QT_HMI
11093
}
11194

11295
/**
@@ -178,16 +161,13 @@ int32_t main(int32_t argc, char** argv) {
178161
if (profile_instance.server_address() == kLocalHostAddress) {
179162
LOG4CXX_INFO(logger_, "Start HMI on localhost");
180163

181-
#ifndef NO_HMI
182164
#ifdef WEB_HMI
183-
184165
if (!InitHmi(profile_instance.link_to_web_hmi())) {
185166
LOG4CXX_INFO(logger_, "InitHmi successful");
186167
} else {
187168
LOG4CXX_WARN(logger_, "Failed to init HMI");
188169
}
189170
#endif
190-
#endif // #ifndef NO_HMI
191171
}
192172
}
193173
// --------------------------------------------------------------------------

src/appMain/sdl_preloaded_pt.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
625],
1414
"endpoints": {
1515
"0x07": {
16-
"default": ["http://policies.telematics.ford.com/api/policies"]
16+
"default": ["http://localhost:3000/api/1/policies/proprietary"]
1717
},
1818
"0x04": {
19-
"default": ["http://ivsu.software.ford.com/api/getsoftwareupdates"]
19+
"default": ["http://localhost:3000/api/1/softwareUpdate"]
2020
},
2121
"queryAppsUrl": {
2222
"default": ["http://sdl.shaid.server"]

src/appMain/smartDeviceLink.ini

+6
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,12 @@ ReadDIDRequest = 5, 1
8989
GetVehicleDataRequest = 5, 1
9090
PluginFolder = plugins
9191

92+
; The time used during switch transport procedure
93+
AppTransportChangeTimer = 500
94+
95+
; The time used as addition for AppTransportChangeTimer
96+
AppTransportChangeTimerAddition = 0
97+
9298
[MEDIA MANAGER]
9399
; where 3 is a number of retries and 1000 is a timeout in milliseconds for request frequency
94100
StartStreamRetry = 3, 1000

src/components/application_manager/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,7 @@ set (HMI_COMMANDS_SOURCES
324324
${COMMANDS_SOURCE_DIR}/hmi/on_system_error_notification.cc
325325
${COMMANDS_SOURCE_DIR}/hmi/basic_communication_system_request.cc
326326
${COMMANDS_SOURCE_DIR}/hmi/basic_communication_system_response.cc
327+
${COMMANDS_SOURCE_DIR}/hmi/basic_communication_on_awake_sdl.cc
327328
${COMMANDS_SOURCE_DIR}/hmi/sdl_policy_update.cc
328329
${COMMANDS_SOURCE_DIR}/hmi/sdl_policy_update_response.cc
329330
${COMMANDS_SOURCE_DIR}/hmi/on_received_policy_update.cc

0 commit comments

Comments
 (0)