Skip to content

Commit

Permalink
[libtheora] Fix non-MSVC x86 builds / triplets (microsoft#27646)
Browse files Browse the repository at this point in the history
* [libtheora] Fix non-MSVC x86 builds / triplets

* Run x-add-version
  • Loading branch information
past-due authored Nov 7, 2022
1 parent 94b63bd commit 415aa1c
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 10 deletions.
45 changes: 37 additions & 8 deletions ports/libtheora/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,25 @@ file(GLOB HEADERS
"include/theora/theoraenc.h"
)

if(MSVC)
set(LIBTHEORA_COMMON_X86
"lib/x86_vc/mmxfrag.c"
"lib/x86_vc/mmxidct.c"
"lib/x86_vc/mmxstate.c"
"lib/x86_vc/x86cpu.c"
"lib/x86_vc/x86state.c"
)
else()
set(LIBTHEORA_COMMON_X86
"lib/x86/mmxfrag.c"
"lib/x86/mmxidct.c"
"lib/x86/mmxstate.c"
"lib/x86/sse2idct.c"
"lib/x86/x86cpu.c"
"lib/x86/x86state.c"
)
endif()

set(LIBTHEORA_COMMON
"lib/apiwrapper.c"
"lib/bitpack.c"
Expand All @@ -22,13 +41,25 @@ set(LIBTHEORA_COMMON
"lib/state.c"
"lib/quant.c"

"lib/x86_vc/mmxfrag.c"
"lib/x86_vc/mmxidct.c"
"lib/x86_vc/mmxstate.c"
"lib/x86_vc/x86cpu.c"
"lib/x86_vc/x86state.c"
${LIBTHEORA_COMMON_X86}
)

if(MSVC)
set(LIBTHEORA_ENC_X86
"lib/x86_vc/mmxencfrag.c"
"lib/x86_vc/mmxfdct.c"
"lib/x86_vc/x86enc.c"
)
else()
set(LIBTHEORA_ENC_X86
"lib/x86/mmxencfrag.c"
"lib/x86/mmxfdct.c"
"lib/x86/x86enc.c"
"lib/x86/x86enquant.c"
"lib/x86/sse2encfrag.c"
)
endif()

set(LIBTHEORA_ENC
"lib/analyze.c"
"lib/encapiwrapper.c"
Expand All @@ -43,9 +74,7 @@ set(LIBTHEORA_ENC
"lib/rate.c"
"lib/tokenize.c"

"lib/x86_vc/mmxencfrag.c"
"lib/x86_vc/mmxfdct.c"
"lib/x86_vc/x86enc.c"
${LIBTHEORA_ENC_X86}
)

set(LIBTHEORA_DEC
Expand Down
2 changes: 1 addition & 1 deletion ports/libtheora/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "libtheora",
"version-string": "1.2.0alpha1-20170719",
"port-version": 4,
"port-version": 5,
"description": "Theora is a free and open video compression format from the Xiph.org Foundation.",
"homepage": "https://github.com/xiph/theora",
"license": null,
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -4270,7 +4270,7 @@
},
"libtheora": {
"baseline": "1.2.0alpha1-20170719",
"port-version": 4
"port-version": 5
},
"libtins": {
"baseline": "4.3",
Expand Down
5 changes: 5 additions & 0 deletions versions/l-/libtheora.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "ee3ae063e330da252b75c91b2b8a4a9392fc8a46",
"version-string": "1.2.0alpha1-20170719",
"port-version": 5
},
{
"git-tree": "77e6aad4fc7e821831290f3e17d368ea17609117",
"version-string": "1.2.0alpha1-20170719",
Expand Down

0 comments on commit 415aa1c

Please sign in to comment.