commit | ca68f6164121302134981ab4ba82a13cdc858bc0 | [log] [tgz] |
---|---|---|
author | Ashwin Natesan <ashwin.natesan@ittiam.com> | Tue Jan 04 13:44:43 2022 +0530 |
committer | Ashwin Natesan <ashwin.natesan@ittiam.com> | Wed Feb 02 11:14:55 2022 +0530 |
tree | 7d62dbc89370c1a8e9438d4965eeb196a9603c3e | |
parent | 58baa890fb93b12a9ae3e09f96172604d1c9d1c8 [diff] |
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
Supports:
Use the following commands for building on the target machine
$ cd external/libavc $ mkdir build $ cd build $ cmake .. $ make
$ cd external/libavc $ mkdir build $ cd build $ CFLAGS="-m32" CXXFLAGS="-m32" LDFLAGS="-m32" cmake .. $ make
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
$ cmake .. -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchains/aarch64_toolchain.cmake $ make
$ cmake .. -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchains/aarch32_toolchain.cmake $ make