Skip to content
This repository has been archived by the owner on Nov 20, 2020. It is now read-only.

Build static library for WIN32 #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 9 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ language: C

# Try using multiple Lua Implementations
env:
- TOOL="" # Use native compiler (GCC usually)
- COMPILER="clang" # Use clang
# - COMPILER="fortran" # Use fortran, make sure to modify the matrix section
- TOOL="gcc" # Use native compiler (GCC usually)
- TOOL="clang" # Use clang
- TOOL="i686-w64-mingw32" # 32bit MinGW
- TOOL="x86_64-w64-mingw32" # 64bit MinGW
- TOOL="arm-linux-gnueabihf" # ARM hard-float (hf), linux
Expand All @@ -20,23 +19,23 @@ matrix:
- env: TOOL="i686-w64-mingw32"
- env: TOOL="x86_64-w64-mingw32"
- env: TOOL="arm-linux-gnueabihf"

# Install dependencies
install:
- git clone git://github.com/LuaDist/_util.git ~/_util
- ~/_util/travis install
- git clone git://github.com/LuaDist/Tools.git ~/_tools
- ~/_tools/travis/travis install

# Bootstap
before_script:
- ~/_util/travis bootstrap
- ~/_tools/travis/travis bootstrap

# Build the module
script:
- ~/_util/travis build
- ~/_tools/travis/travis build

# Execute additional tests or commands
#after_script:
# - ~/_util/travis test
after_script:
- ~/_tools/travis/travis test

# Only watch the master branch
branches:
Expand Down
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ set ( SRC jmemnobs.c jaricom.c jcapimin.c jcapistd.c jcarith.c jccoefct.c jccolo
jidctflt.c jidctfst.c jidctint.c jquant1.c jquant2.c jutils.c jmemmgr.c cderror.h
cdjpeg.h jdct.h jinclude.h jmemsys.h jpegint.h jversion.h transupp.h )

add_library ( jpeg ${SRC} ${HEADERS} )
if ( WIN32 )
add_library ( jpeg STATIC ${SRC} ${HEADERS} )
else ( WIN32 )
add_library ( jpeg ${SRC} ${HEADERS} )
endif ( WIN32 )

add_executable ( cjpeg cdjpeg.c cjpeg.c rdbmp.c rdgif.c rdppm.c rdrle.c rdtarga.c
rdswitch.c )
Expand Down