File tree Expand file tree Collapse file tree 4 files changed +31
-11
lines changed Expand file tree Collapse file tree 4 files changed +31
-11
lines changed Original file line number Diff line number Diff line change 1
1
os :
2
2
- linux
3
+ - osx
3
4
4
5
language : cpp
5
6
@@ -8,15 +9,15 @@ compiler:
8
9
- clang
9
10
10
11
before_script :
12
+ - env | sort
11
13
- date -u
12
14
- uname -a
13
- - lsb_release -a
14
- - sudo apt-add-repository "deb http://archive.ubuntu.com/ubuntu trusty main restricted universe multiverse"
15
- - sudo apt-add-repository "deb http://archive.ubuntu.com/ubuntu trusty-updates main restricted universe multiverse"
16
- - sudo apt-add-repository "deb http://security.ubuntu.com/ubuntu trusty-security main restricted universe multiverse"
17
- - sudo apt-get update -qq
18
- - sudo apt-get install -qq gcc g++ scons swig swig2.0
19
- - sudo apt-get install -qq libavdevice-dev libavformat-dev libavcodec-dev libavutil-dev libswscale-dev libavresample-dev python-dev freeglut3-dev libxmu-dev doxygen
15
+
16
+ - chmod +x tools/travis.linux.install.deps.sh
17
+ - chmod +x tools/travis.osx.install.deps.sh
18
+
19
+ - if [ "${TRAVIS_OS_NAME}" = "linux" ]; then ./tools/travis.linux.install.deps.sh; fi
20
+ - if [ "${TRAVIS_OS_NAME}" = "osx" ]; then ./tools/travis.osx.install.deps.sh; fi
20
21
21
22
script :
22
23
- mkdir build
Original file line number Diff line number Diff line change @@ -73,8 +73,10 @@ if(SWIG_FOUND)
73
73
74
74
# Create 'avtranscoder-py' shared lib
75
75
swig_add_module (avtranscoder-py python ${AVTRANSCODER_BINDING_FILE} )
76
- set_target_properties (${SWIG_MODULE_avtranscoder-py_REAL_NAME} PROPERTIES SOVERSION ${AVTRANSCODER_VERSION_MAJOR} )
77
- set_target_properties (${SWIG_MODULE_avtranscoder-py_REAL_NAME} PROPERTIES VERSION ${AVTRANSCODER_VERSION} )
76
+ if (NOT APPLE )
77
+ set_target_properties (${SWIG_MODULE_avtranscoder-py_REAL_NAME} PROPERTIES SOVERSION ${AVTRANSCODER_VERSION_MAJOR} )
78
+ set_target_properties (${SWIG_MODULE_avtranscoder-py_REAL_NAME} PROPERTIES VERSION ${AVTRANSCODER_VERSION} )
79
+ endif ()
78
80
swig_link_libraries (avtranscoder-py avtranscoder-shared ${PYTHON_LIBRARIES} )
79
81
80
82
# Install python interface
@@ -101,8 +103,10 @@ if(SWIG_FOUND)
101
103
102
104
# Create 'avtranscoder-java' shared lib
103
105
swig_add_module (avtranscoder-java java ${AVTRANSCODER_BINDING_FILE} )
104
- set_target_properties (${SWIG_MODULE_avtranscoder-java_REAL_NAME} PROPERTIES SOVERSION ${AVTRANSCODER_VERSION_MAJOR} )
105
- set_target_properties (${SWIG_MODULE_avtranscoder-java_REAL_NAME} PROPERTIES VERSION ${AVTRANSCODER_VERSION} )
106
+ if (NOT APPLE )
107
+ set_target_properties (${SWIG_MODULE_avtranscoder-java_REAL_NAME} PROPERTIES SOVERSION ${AVTRANSCODER_VERSION_MAJOR} )
108
+ set_target_properties (${SWIG_MODULE_avtranscoder-java_REAL_NAME} PROPERTIES VERSION ${AVTRANSCODER_VERSION} )
109
+ endif ()
106
110
swig_link_libraries (avtranscoder-java avtranscoder-shared )
107
111
108
112
# Post build of java binding : compile java files (generate class files) and create jar
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ lsb_release -a
3
+
4
+ sudo apt-add-repository " deb http://archive.ubuntu.com/ubuntu trusty main restricted universe multiverse"
5
+ sudo apt-add-repository " deb http://archive.ubuntu.com/ubuntu trusty-updates main restricted universe multiverse"
6
+ sudo apt-add-repository " deb http://security.ubuntu.com/ubuntu trusty-security main restricted universe multiverse"
7
+ sudo apt-get update -qq
8
+ sudo apt-get install -qq gcc g++ cmake swig swig2.0
9
+ sudo apt-get install -qq libavdevice-dev libavformat-dev libavcodec-dev libavutil-dev libswscale-dev libavresample-dev python-dev freeglut3-dev libxmu-dev doxygen
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ brew update
4
+
5
+ brew install gcc cmake swig
6
+ brew install ffmpeg freeglut doxygen
You can’t perform that action at this time.
0 commit comments