File tree Expand file tree Collapse file tree 3 files changed +18
-7
lines changed Expand file tree Collapse file tree 3 files changed +18
-7
lines changed Original file line number Diff line number Diff line change 3
3
4
4
language : c
5
5
6
- sudo : false
6
+ dist : trusty
7
+ sudo : required
8
+ # sudo: false
7
9
8
10
cache :
9
11
apt : true
@@ -40,6 +42,9 @@ before_install:
40
42
- ln -s $(which gcc-4.8) bin/gcc
41
43
- ln -s $(which c++-4.8) bin/c++
42
44
- ln -s $(which g++-4.8) bin/g++
45
+ # - curl "http://ftp.gnu.org/gnu/automake/automake-1.13.1.tar.gz" > automake-1.13.1.tar.gz
46
+ # - tar -zxvf automake-1.13.1.tar.gz
47
+ # - (cd automake-1.13.1 && ./configure --prefix=`pwd`/../ && make -j5 && make install)
43
48
- export PATH=$PWD/bin:$PATH
44
49
45
50
install :
Original file line number Diff line number Diff line change @@ -162,6 +162,6 @@ $(OUTPUT_DIR)/spec/base:
162
162
ln -sf ../../../spec $(OUTPUT_DIR ) /spec/base
163
163
164
164
test : $(OUTPUT_DIR ) /spec $(OUTPUT_DIR ) /.busted
165
- cd $(OUTPUT_DIR ) && busted -l ./luajit --exclude-tags=notest
165
+ cd $(OUTPUT_DIR ) && ./luajit $( shell which busted) ./spec/base/unit
166
166
167
167
.PHONY : test
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ cmake_minimum_required(VERSION 2.8.3)
3
3
4
4
SET (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR} /../cmake_modules" )
5
5
include ("koreader_thirdparty_common" )
6
+ include ("koreader_thirdparty_git" )
6
7
7
8
enable_language (C CXX)
8
9
@@ -16,14 +17,19 @@ set(CFG_ENV_VAR "CC=\"${CC}\" CXX=\"${CXX}\" CPPFLAGS=\"${CPPFLAGS}\" LDFLAGS=\"
16
17
set (CFG_OPTS "-q --prefix=${BINARY_DIR} --disable-static --enable-shared --host=\" ${CHOST} \" " )
17
18
set (CFG_CMD_STR "${CFG_ENV_VAR} ${SOURCE_DIR} /configure ${CFG_OPTS} " )
18
19
20
+ ko_write_gitclone_script(
21
+ GIT_CLONE_SCRIPT_FILENAME
22
+ https://github.com/glennrp/libpng.git
23
+ v1.6.21
24
+ ${SOURCE_DIR}
25
+ )
26
+
19
27
set (LIBPNG_VER "1.6.19" )
20
28
include (ExternalProject)
21
29
ExternalProject_Add(
22
- libpng
23
- URL http://download.sourceforge.net/libpng/libpng-${LIBPNG_VER} .tar.gz
24
- URL_MD5 3121bdc77c365a87e054b9f859f421fe
25
- DOWNLOAD_DIR ${KO_DOWNLOAD_DIR}
26
- # PATCH_COMMAND sh autogen.sh
30
+ ${PROJECT_NAME}
31
+ DOWNLOAD_COMMAND ${CMAKE_COMMAND} -P ${GIT_CLONE_SCRIPT_FILENAME}
32
+ PATCH_COMMAND sh autogen.sh
27
33
CONFIGURE_COMMAND sh -c ${CFG_CMD_STR}
28
34
BUILD_COMMAND $(MAKE) -j${PARALLEL_JOBS} --silent
29
35
INSTALL_COMMAND $(MAKE) -j${PARALLEL_JOBS} --silent install
You can’t perform that action at this time.
0 commit comments