No description
Find a file
Ashwin Natesan ca68f61641 Builds: Modular cmake scripts added
Cmake scripts are now modular. Separate scripts now handle
build specifications for each target and dependency.

Toolchain files have been added for armv7, armv8 builds.

Bug: 213579857
Test: Builds using cmake
Test: Builds in OSS-fuzz

Change-Id: Iac62b443c0a0de09a2ce6553a660db2c3d5dc846
2022-02-02 11:14:55 +05:30
cmake Builds: Modular cmake scripts added 2022-02-02 11:14:55 +05:30
common Builds: Modular cmake scripts added 2022-02-02 11:14:55 +05:30
decoder Builds: Modular cmake scripts added 2022-02-02 11:14:55 +05:30
encoder Builds: Modular cmake scripts added 2022-02-02 11:14:55 +05:30
fuzzer Builds: Modular cmake scripts added 2022-02-02 11:14:55 +05:30
test Builds: Modular cmake scripts added 2022-02-02 11:14:55 +05:30
Android.bp [LSC] Add LOCAL_LICENSE_KINDS to external/libavc 2021-02-14 10:37:21 -08:00
CMakeLists.txt Builds: Modular cmake scripts added 2022-02-02 11:14:55 +05:30
libavc_blocklist.txt Enable cfi for libavc 2020-12-17 05:43:36 -08:00
METADATA Add METADATA to libavc: Apache2=NOTICE 2020-04-30 16:15:18 -07:00
MODULE_LICENSE_APACHE2 Add MODULE_LICENSE_* and NOTICE file for libavc projet. 2016-03-14 14:36:00 -07:00
NOTICE Add MODULE_LICENSE_* and NOTICE file for libavc projet. 2016-03-14 14:36:00 -07:00
OWNERS Rename OWNERS-codecs to match naming policies 2021-03-04 19:25:56 -08:00
PREUPLOAD.cfg point to new repo hooks for mainline uploads 2020-05-26 15:16:18 -07:00
README.md Builds: Modular cmake scripts added 2022-02-02 11:14:55 +05:30

LIBAVC

Getting Started Document

LibAVC build steps

Supports:

  • aarch32/aarch64 on Linux.
  • aarch32/aarch64 on Android.
  • x86_32/x86_64 on Linux.

Native Builds

Use the following commands for building on the target machine

$ cd external/libavc
$ mkdir build
$ cd build
$ cmake ..
$ make

Cross-compiler based builds

Building for x86_32 on a x86_64 Linux machine

$ cd external/libavc
$ mkdir build
$ cd build
$ CFLAGS="-m32" CXXFLAGS="-m32" LDFLAGS="-m32" cmake ..
$ make

Building for aarch32/aarch64

Update 'CMAKE_C_COMPILER', 'CMAKE_CXX_COMPILER', 'CMAKE_C_COMPILER_AR', and 'CMAKE_CXX_COMPILER_AR' in CMAKE_TOOLCHAIN_FILE passed below

$ cd external/libavc
$ mkdir build
$ cd build

For aarch64

$ cmake .. -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchains/aarch64_toolchain.cmake
$ make

For aarch32

$ cmake .. -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchains/aarch32_toolchain.cmake
$ make