correct issue for compiling ios 24/7424/3
authorAngelo Mantellini (manangel) <[email protected]>
Wed, 5 Jul 2017 14:00:49 +0000 (16:00 +0200)
committerJacques SAMAIN <[email protected]>
Wed, 5 Jul 2017 14:43:54 +0000 (14:43 +0000)
Change-Id: I0b55752383af8e8d8e10ccf09dc515edf93ee41c
Signed-off-by: Angelo Mantellini (manangel) <[email protected]>
Common/Info.plist
libdash/CMakeLists.txt
libdash/source/helpers/Block.h
libdash/source/helpers/BlockStream.h
libdash/source/helpers/Path.h
libdash/source/helpers/String.h
libdash/source/helpers/Time.h
viper.pro

index 8e33963..25ef921 100644 (file)
@@ -34,9 +34,9 @@
                                <string>waw</string>
                                <string>wma</string>
                        </array>
-                       <key>CFBundleTypeIconFile</key>
-                       <string>document.icns</string>
-                       <key>CFBundleTypeName</key>
+                        <key>CFBundleTypeIconFile</key>
+                        <string>Viper.icns</string>
+                        <key>CFBundleTypeName</key>
                        <string>Audio file</string>
                        <key>CFBundleTypeRole</key>
                        <string>Viewer</string>
                                <string>utf</string>
                        </array>
                        <key>CFBundleTypeIconFile</key>
-                       <string>document.icns</string>
+                        <string>Viper.icns</string>
                        <key>CFBundleTypeName</key>
                        <string>Subtitles file</string>
                        <key>CFBundleTypeRole</key>
        <key>CFBundleExecutable</key>
        <string>@EXECUTABLE@</string>
        <key>CFBundleIconFile</key>
-       <string>Cisco.icns</string>
+        <string>Viper.icns</string>
        <key>CFBundleIdentifier</key>
        <string>com.cisco.@EXECUTABLE@</string>
        <key>CFBundleInfoDictionaryVersion</key>
index ada76ad..9135339 100644 (file)
@@ -12,6 +12,12 @@ if(ANDROID_API)
        set(CURL_LIBRARIES "$ENV{DISTILLERY_ROOT_DIR}/usr/lib/libcurl.a" "$ENV{DISTILLERY_ROOT_DIR}/usr/lib/libcurl-library.a")
        set(ANDROID_LIBRARIES "${ANDROID_NDK}/platforms/android-23/arch-arm/usr/lib/libz.a" "$ENV{NDK}/sources/cxx-stl/gnu-libstdc++/4.9/libs/$ENV{ABI}/libgnustl_shared.so"  "${ANDROID_NDK}/platforms/android-23/arch-arm/usr/lib/liblog.so")
        set(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} ${ANDROID_C_FLAGS} -std=c++0x -g -DLOG_BUILD")
+elseif (COMPILE_FOR_IOS)
+       set(CMAKE_CXX_FLAGS "-std=c++0x -g -DLOG_BUILD")
+       find_package(LibXml2 REQUIRED)
+       find_host_package(OpenSSL REQUIRED)
+       find_package(ZLIB REQUIRED)
+       find_host_package(CURL REQUIRED)
 else ()
        set(CMAKE_CXX_FLAGS "-std=c++0x -g -DLOG_BUILD")
        find_package(LibXml2 REQUIRED)
@@ -179,7 +185,11 @@ include_directories(${WLIB_INCLUDE_DIRS})
 include_directories(${CURL_INCLUDE_DIRS})
 include_directories(include)
 
-add_library(dash SHARED ${SOURCE_FILES})
+if (COMPILE_FOR_IOS OR COMPILE_FOR_IOS_SIMULATOR)
+  add_library(dash STATIC ${SOURCE_FILES})
+else()
+  add_library(dash SHARED ${SOURCE_FILES})
+endif()
 set_target_properties(dash PROPERTIES LINKER_LANGUAGE CXX)
 target_link_libraries(dash ${CURL_LIBRARIES} ${ZLIB_LIBRARIES} ${CURL_LIBRARIES} ${LIBXML2_LIBRARIES} ${CURL_LIBRARIES} ${ANDROID_LIBRARIES} ${CURL_LIBRARIES})
 message("libxml ${LIBXML2_LIBRARIES} ${LIBXML2_INCLUDE_DIR}")
index c71462e..9f8f957 100644 (file)
@@ -13,6 +13,8 @@
 #define __BLOCK_H__
 
 #include "config.h"
+#include <stddef.h>
+#include <stdlib.h>
 
 namespace dash
 {
index 4b8b3fd..2c4529f 100644 (file)
@@ -13,7 +13,9 @@
 #define __BLOCKSTREAM_H__
 
 #include "config.h"
-
+#include <stddef.h>
+#include <stdint.h>
+#include <deque>
 #include "Block.h"
 
 namespace dash
index 1c791ba..a86f73c 100644 (file)
 #define PATH_H_
 
 #include "config.h"
+#include <stdlib.h>
+#include <vector>
+#include <string>
+#include <iostream>
+#include <sstream>
 
 namespace dash
 {
index 73ac6db..b2aa955 100644 (file)
 #define STRING_H_
 
 #include "config.h"
+#include <string>
+#include <iostream>
+#include <sstream>
+#include <vector>
 
 namespace dash
 {
index e7de0cd..1b8bbdd 100644 (file)
@@ -14,6 +14,7 @@
 
 #include <time.h>
 #include "config.h"
+#include <string>
 
 namespace dash
 {
index 836eab9..257a077 100644 (file)
--- a/viper.pro
+++ b/viper.pro
@@ -288,8 +288,12 @@ unix:!macx:!android {
 
 macx:!ios {
 
+    QMAKE_INFO_PLIST = $$COMMON/Info.plist
+    ICON = $$COMMON/Viper.icns
+    QMAKE_RPATHDIR += /usr/local/lib
     INCLUDEPATH += /usr/local/include
     INCLUDEPATH += /usr/local/include/libdash
+    INCLUDEPATH += $$[QT_HOST_PREFIX]/include/
     equals(TRANSPORT_LIBRARY, "HICNET") {
         LIBS += -L"/usr/local/lib" -framework CoreServices -ldash -lavformat -lavutil -lavcodec -lboost_system -lboost_regex -lswscale -lhicnet -lssl -lcrypto
                DEFINES += "HICNET=ON"