Skip to content
Closed
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
56 changes: 56 additions & 0 deletions .appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# This file was automatically generated by conda-smithy. To update a component of this
# file, make changes to conda-forge.yml and/or recipe/meta.yaml, and run
# "conda smithy rerender".

environment:

BINSTAR_TOKEN:
# The BINSTAR_TOKEN secure variable. This is defined canonically in conda-forge.yml.
secure: ipv/06DzgA7pzz2CIAtbPxZSsphDtF+JFyoWRnXkn3O8j7oRe3rzqj3LOoq2DZp4

matrix:
- CONFIG: win_c_compilervs2008
CONDA_INSTALL_LOCN: C:\Miniconda36-x64

- CONFIG: win_c_compilervs2015
CONDA_INSTALL_LOCN: C:\Miniconda36-x64


# We always use a 64-bit machine, but can build x86 distributions
# with the TARGET_ARCH variable.
platform:
- x64

install:
# If there is a newer build queued for the same PR, cancel this one.
- cmd: |
powershell -Command "(New-Object Net.WebClient).DownloadFile('https://raw.githubusercontent.com/conda-forge/conda-forge-ci-setup-feedstock/master/recipe/ff_ci_pr_build.py', 'ff_ci_pr_build.py')"
ff_ci_pr_build -v --ci "appveyor" "%APPVEYOR_ACCOUNT_NAME%/%APPVEYOR_PROJECT_SLUG%" "%APPVEYOR_BUILD_NUMBER%" "%APPVEYOR_PULL_REQUEST_NUMBER%"
del ff_ci_pr_build.py

# Cywing's git breaks conda-build. (See https://github.com/conda-forge/conda-smithy-feedstock/pull/2.)
- cmd: rmdir C:\cygwin /s /q

# Add path, activate `conda` and update conda.
- cmd: call %CONDA_INSTALL_LOCN%\Scripts\activate.bat
- cmd: conda.exe update --yes --quiet conda

- cmd: set PYTHONUNBUFFERED=1

# Add our channels.
- cmd: conda.exe config --set show_channel_urls true
- cmd: conda.exe config --remove channels defaults
- cmd: conda.exe config --add channels defaults
- cmd: conda.exe config --add channels conda-forge

# Configure the VM.
- cmd: conda.exe install -n root --quiet --yes conda-forge-ci-setup=1
- cmd: run_conda_forge_build_setup

# Skip .NET project specific build phase.
build: off

test_script:
- conda.exe build recipe -m .ci_support\%CONFIG%.yaml --quiet
deploy_script:
- cmd: upload_or_check_non_existence .\recipe conda-forge --channel=main -m .ci_support\%CONFIG%.yaml
2 changes: 2 additions & 0 deletions .ci_support/win_c_compilervs2008.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
c_compiler:
- vs2008
2 changes: 2 additions & 0 deletions .ci_support/win_c_compilervs2015.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
c_compiler:
- vs2015
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Current build status

[![Linux](https://img.shields.io/circleci/project/github/conda-forge/libtheora-feedstock/master.svg?label=Linux)](https://circleci.com/gh/conda-forge/libtheora-feedstock)
[![OSX](https://img.shields.io/travis/conda-forge/libtheora-feedstock/master.svg?label=macOS)](https://travis-ci.org/conda-forge/libtheora-feedstock)
![Windows disabled](https://img.shields.io/badge/Windows-disabled-lightgrey.svg)
[![Windows](https://img.shields.io/appveyor/ci/conda-forge/libtheora-feedstock/master.svg?label=Windows)](https://ci.appveyor.com/project/conda-forge/libtheora-feedstock/branch/master)

Current release info
====================
Expand Down
19 changes: 8 additions & 11 deletions recipe/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ set(THEORA_SRC
lib/analyze.c
lib/apiwrapper.c
lib/bitpack.c
lib/collect.c
lib/decapiwrapper.c
lib/decinfo.c
lib/decode.c
Expand All @@ -70,15 +69,13 @@ set(THEORA_SRC
lib/rate.c
lib/state.c
lib/tokenize.c
lib/x86/mmxencfrag.c
lib/x86/mmxfdct.c
lib/x86/mmxfrag.c
lib/x86/mmxidct.c
lib/x86/mmxstate.c
lib/x86/sse2idct.c
lib/x86/x86cpu.c
lib/x86/x86enquant.c
lib/x86/x86state.c
lib/x86_vc/mmxencfrag.c
lib/x86_vc/mmxfdct.c
lib/x86_vc/mmxfrag.c
lib/x86_vc/mmxidct.c
lib/x86_vc/mmxstate.c
lib/x86_vc/x86enc.c
lib/x86_vc/x86state.c
)

add_library(THEORA SHARED
Expand Down Expand Up @@ -113,4 +110,4 @@ install(TARGETS THEORA
file(GLOB INCLUDE_FILES ${CMAKE_CURRENT_SOURCE_DIR}/*.h)
# Copy .h files to include dir.
install(DIRECTORY ${THEORA_SOURCE_DIR}/include/theora DESTINATION include
FILES_MATCHING PATTERN "*.h")
FILES_MATCHING PATTERN "*.h")
4 changes: 2 additions & 2 deletions recipe/bld.bat
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ mkdir build
cd build

:: Configure using the CMakeFiles
%LIBRARY_BIN%\cmake -G "NMake Makefiles" -DCMAKE_INSTALL_PREFIX:PATH="%LIBRARY_PREFIX%" -DCMAKE_BUILD_TYPE:STRING=Release ..
cmake -G "NMake Makefiles" -DCMAKE_INSTALL_PREFIX:PATH="%LIBRARY_PREFIX%" -DCMAKE_BUILD_TYPE:STRING=Release ..
if errorlevel 1 exit 1

:: Build!
nmake
if errorlevel 1 exit 1

nmake install
if errorlevel 1 exit 1
if errorlevel 1 exit 1
6 changes: 3 additions & 3 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ source:
sha256: b6ae1ee2fa3d42ac489287d3ec34c5885730b1296f0801ae577a35193d3affbc

build:
number: 1
skip: True # [win]
number: 1

requirements:
build:
- pkg-config
- pkg-config # [unix]
- cmake # [win]
- {{ compiler("c") }}

host:
Expand Down