Skip to content

Commit ac3b563

Browse files
committed
change cmakelists and readme again
1 parent e94ecbc commit ac3b563

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141

4242
# Ignore build folders
4343
**/build
44+
**/lib
4445
# Ignore platform specific build folders
4546
build-*/
4647

CMakeLists.txt

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
44
set(CMAKE_OSX_ARCHITECTURES "arm64;x86_64")
55
set(CMAKE_CXX_VISIBILITY_PRESET hidden)
66

7-
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /MT")
7+
if (MSVC)
8+
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /MT")
9+
endif()
810

911
project(ffmpeg-api VERSION 1.0.0)
1012

@@ -16,6 +18,7 @@ add_library(${PROJECT_NAME} SHARED
1618

1719
set_property(TARGET ${PROJECT_NAME} PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Final>:Final>")
1820

21+
1922
if (NOT DEFINED ENV{GEODE_SDK})
2023
message(FATAL_ERROR "Unable to find Geode SDK! Please define GEODE_SDK environment variable to point to Geode")
2124
else()
@@ -39,8 +42,14 @@ if (WIN32)
3942
${CMAKE_SOURCE_DIR}/lib/swscale.lib
4043
${CMAKE_SOURCE_DIR}/lib/libx264.lib
4144
${CMAKE_SOURCE_DIR}/lib/x265-static.lib
42-
Ws2_32.lib mfplat.lib mf.lib secur32.lib crypt32.lib mfuuid.lib
43-
mf mfplat mfuuid bcrypt strmiids.lib
45+
${CMAKE_SOURCE_DIR}/lib/ws2_32.lib
46+
${CMAKE_SOURCE_DIR}/lib/mfplat.lib
47+
${CMAKE_SOURCE_DIR}/lib/mf.lib
48+
${CMAKE_SOURCE_DIR}/lib/secur32.lib
49+
${CMAKE_SOURCE_DIR}/lib/crypt32.lib
50+
${CMAKE_SOURCE_DIR}/lib/mfuuid.lib
51+
${CMAKE_SOURCE_DIR}/lib/bcrypt.lib
52+
${CMAKE_SOURCE_DIR}/lib/strmiids.lib
4453
) # windows
4554
elseif (ANDROID)
4655
if (ANDROID_ABI STREQUAL "arm64-v8a")

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,13 @@ To get the needed libraries on Windows, you can use vcpkg:
6161
```sh
6262
vcpkg install ffmpeg[core,avcodec,avformat,avutil,swscale,swresample,amf,x264,x265,nvcodec]:x64-windows-static --recurse
6363
```
64+
the other libraries are part of the Windows SDK
6465

6566
## Android
66-
Clone [this](https://github.com/EclipseMenu/ffmpeg-android-maker/) repository and run ffmpeg-android-maker.sh, this will produce static libraries in the build folder:
67+
To get the needed libraries on Android, you can use [this](https://github.com/EclipseMenu/ffmpeg-android-maker/) script. Read the README in the repository for further instructions.
6768
```sh
6869
git clone https://github.com/EclipseMenu/ffmpeg-android-maker/
6970
cd ffmpeg-android-maker
7071
./ffmpeg-android-maker.sh
7172
```
72-
Read the README in the repository for further instructions.
73-
7473
You can either run it natively on Linux or using WSL on Windows.

0 commit comments

Comments
 (0)