-
Notifications
You must be signed in to change notification settings - Fork 214
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1.Split third_party CMakeLists.txt to three part to solve ExternalPro…
…ject_Add build sequence problem. 2.Fix curdir issue.
- Loading branch information
1 parent
f95e19b
commit d06ae83
Showing
6 changed files
with
73 additions
and
56 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,18 @@ | ||
cmake_minimum_required(VERSION 3.4.1) | ||
include(ExternalProject) | ||
|
||
set(libogg_src ${CMAKE_CURRENT_SOURCE_DIR}/libogg/src) | ||
ExternalProject_Add(external_libogg | ||
GIT_REPOSITORY "https://github.com/xiph/ogg.git" | ||
GIT_TAG "934385378f45f11586b03b6214bf5f363649f3b6" | ||
SOURCE_DIR "${libogg_src}" | ||
CONFIGURE_COMMAND ${CMAKE_COMMAND} ${libogg_src} | ||
-DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE} | ||
-DANDROID_ABI=${ANDROID_ABI} | ||
-DCMAKE_INSTALL_PREFIX=${CMAKE_CURRENT_BINARY_DIR}/build/libogg/${ANDROID_ABI} | ||
INSTALL_COMMAND ${CMAKE_MAKE_PROGRAM} install | ||
&& | ||
${CMAKE_COMMAND} -E copy | ||
${CMAKE_CURRENT_BINARY_DIR}/build/libogg/${ANDROID_ABI}/lib/libogg.a | ||
${CMAKE_CURRENT_SOURCE_DIR}/libogg/lib/${ANDROID_ABI}/ | ||
) |
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,18 @@ | ||
cmake_minimum_required(VERSION 3.4.1) | ||
include(ExternalProject) | ||
|
||
set(libopus_src ${CMAKE_CURRENT_SOURCE_DIR}/libopus/src) | ||
ExternalProject_Add(external_libopus | ||
GIT_REPOSITORY "https://github.com/xiph/opus" | ||
GIT_TAG "ad8fe90db79b7d2a135e3dfd2ed6631b0c5662ab" | ||
SOURCE_DIR "${libopus_src}" | ||
CONFIGURE_COMMAND ${CMAKE_COMMAND} ${libopus_src} | ||
-DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE} | ||
-DANDROID_ABI=${ANDROID_ABI} | ||
-DCMAKE_INSTALL_PREFIX=${CMAKE_CURRENT_BINARY_DIR}/build/libopus/${ANDROID_ABI} | ||
INSTALL_COMMAND ${CMAKE_MAKE_PROGRAM} install | ||
&& | ||
${CMAKE_COMMAND} -E copy | ||
${CMAKE_CURRENT_BINARY_DIR}/build/libopus/${ANDROID_ABI}/lib/libopus.a | ||
${CMAKE_CURRENT_SOURCE_DIR}/libopus/lib/${ANDROID_ABI}/ | ||
) |
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,23 @@ | ||
cmake_minimum_required(VERSION 3.4.1) | ||
include(ExternalProject) | ||
|
||
set(opus_tools_src ${CMAKE_CURRENT_SOURCE_DIR}/opus_tools/src) | ||
ExternalProject_Add(external_opus_tools | ||
GIT_REPOSITORY "https://github.com/xiph/opus-tools/" | ||
GIT_TAG "14f650f64260115098d55fb91e1f83110cb628d3" | ||
SOURCE_DIR "${opus_tools_src}" | ||
CONFIGURE_COMMAND sh ${CMAKE_CURRENT_SOURCE_DIR}/build/include_files_helper.sh ${CMAKE_CURRENT_SOURCE_DIR}/build/ | ||
COMMAND ${CMAKE_COMMAND} -E copy | ||
${CMAKE_CURRENT_BINARY_DIR}/build/libogg/${ANDROID_ABI}/include/ogg/config_types.h | ||
${CMAKE_CURRENT_SOURCE_DIR}/../src/main/cpp/libogg/ | ||
COMMAND ${CMAKE_COMMAND} ${opus_tools_src} | ||
-DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE} | ||
-DANDROID_ABI=${ANDROID_ABI} | ||
-DCMAKE_INSTALL_PREFIX=${CMAKE_CURRENT_BINARY_DIR}/build/opus_tools/${ANDROID_ABI} | ||
BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/build/opus_tools/${ANDROID_ABI}/lib/ | ||
INSTALL_COMMAND "" | ||
COMMAND | ||
${CMAKE_COMMAND} -E copy | ||
${CMAKE_CURRENT_BINARY_DIR}/build/opus_tools/${ANDROID_ABI}/lib/libopus_header.a | ||
${CMAKE_CURRENT_SOURCE_DIR}/opus_tools/lib/${ANDROID_ABI}/ | ||
) |
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