-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test: ./avcenc ./avcdec Change-Id: If03196cf979d7f6638b99d5b13afba6df3364178
- Loading branch information
1 parent
045d0c9
commit 266cda3
Showing
14 changed files
with
134 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
set(SYSTEM_NAME Android) | ||
set(CMAKE_SYSTEM_NAME Android) | ||
|
||
if(NOT ANDROID_PLATFORM) | ||
set(ANDROID_PLATFORM android-23) | ||
endif() | ||
|
||
# Choose target architecture with: | ||
# -DANDROID_ABI={armeabi-v7a, arm64-v8a, x86, x86_64} | ||
if(NOT ANDROID_ABI) | ||
set(ANDROID_ABI arm64-v8a) | ||
endif() | ||
|
||
if(ANDROID_ABI MATCHES "^armeabi") | ||
set(SYSTEM_PROCESSOR aarch32) | ||
else() | ||
set(SYSTEM_PROCESSOR aarch64) | ||
endif() | ||
|
||
# Toolchain files don't have access to cached variables: | ||
# https://gitlab.kitware.com/cmake/cmake/issues/16170. Set an intermediate | ||
# environment variable when loaded the first time. | ||
if(AVC_ANDROID_NDK_PATH) | ||
set(ENV{AVC_ANDROID_NDK_PATH} "${AVC_ANDROID_NDK_PATH}") | ||
else() | ||
set(AVC_ANDROID_NDK_PATH "$ENV{AVC_ANDROID_NDK_PATH}") | ||
endif() | ||
|
||
if(NOT AVC_ANDROID_NDK_PATH) | ||
message(FATAL_ERROR "AVC_ANDROID_NDK_PATH not set.") | ||
return() | ||
endif() | ||
|
||
include("${AVC_ANDROID_NDK_PATH}/build/cmake/android.toolchain.cmake") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
libavc_add_fuzzer(avc_dec_fuzzer libavcdec SOURCES | ||
if(NOT "${SYSTEM_NAME}" STREQUAL "Darwin") | ||
libavc_add_fuzzer(avc_dec_fuzzer libavcdec SOURCES | ||
${AVC_ROOT}/fuzzer/avc_dec_fuzzer.cpp) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
libavc_add_fuzzer(avc_enc_fuzzer libavcenc SOURCES | ||
if(NOT "${SYSTEM_NAME}" STREQUAL "Darwin") | ||
libavc_add_fuzzer(avc_enc_fuzzer libavcenc SOURCES | ||
${AVC_ROOT}/fuzzer/avc_enc_fuzzer.cpp) | ||
endif() |