mirror of
https://gitee.com/jiuyilian/embedded-framework.git
synced 2025-01-06 10:16:51 -05:00
Add goahead.
This commit is contained in:
parent
ae20412ee7
commit
fcc0a7b1ec
1
Makefile
1
Makefile
|
@ -19,6 +19,7 @@ all:cmake
|
||||||
clean:
|
clean:
|
||||||
@if [ -d "cmake-shell" ]; then \
|
@if [ -d "cmake-shell" ]; then \
|
||||||
echo "cmake-shell exist"; \
|
echo "cmake-shell exist"; \
|
||||||
|
make -C cmake-shell External_lib_clean; \
|
||||||
make -C cmake-shell clean; \
|
make -C cmake-shell clean; \
|
||||||
fi
|
fi
|
||||||
@echo "IPC clean."
|
@echo "IPC clean."
|
||||||
|
|
9
external/CMakeLists.txt
vendored
9
external/CMakeLists.txt
vendored
|
@ -1,2 +1,9 @@
|
||||||
|
|
||||||
add_subdirectory(sqlite3/sqlite-3430000)
|
add_subdirectory(sqlite3/sqlite-3430000)
|
||||||
|
add_subdirectory(goahead-5.2.0)
|
||||||
|
|
||||||
|
add_custom_target(
|
||||||
|
External_lib_clean
|
||||||
|
COMMAND rm -rf goahead-5.2.0/GoAhead
|
||||||
|
WORKING_DIRECTORY ${EXTERNAL_SOURCE_PATH}
|
||||||
|
)
|
6
external/README.md
vendored
6
external/README.md
vendored
|
@ -1,3 +1,7 @@
|
||||||
# 1. 第三方库
|
# 1. 第三方库
|
||||||
|
|
||||||
   该目录存放仓库依赖的三方库源码。
|
   该目录存放仓库依赖的三方库源码。
|
||||||
|
|
||||||
|
## 1.1. goahead
|
||||||
|
|
||||||
|
make CC=arm-rockchip830-linux-uclibcgnueabihf-gcc ARCH=arm PROFILE=static
|
27
external/goahead-5.2.0/CMakeLists.txt
vendored
Normal file
27
external/goahead-5.2.0/CMakeLists.txt
vendored
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
include(${CMAKE_SOURCE_DIR_IPCSDK}/build/global_config.cmake)
|
||||||
|
set(EXECUTABLE_OUTPUT_PATH ${EXEC_OUTPUT_PATH})
|
||||||
|
set(LIBRARY_OUTPUT_PATH ${LIBS_OUTPUT_PATH})
|
||||||
|
|
||||||
|
if(${TARGET_PLATFORM} MATCHES ${DEFINE_LINUX})
|
||||||
|
SET(SET_ARCH "x86")
|
||||||
|
else()
|
||||||
|
SET(SET_ARCH "arm")
|
||||||
|
endif()
|
||||||
|
# build goahead before make libgo.a
|
||||||
|
add_custom_command(
|
||||||
|
OUTPUT ${EXTERNAL_SOURCE_PATH}/goahead-5.2.0/GoAhead/Makefile
|
||||||
|
COMMAND echo "tar zxvf goahead-5.2.0.tar.gz"
|
||||||
|
COMMAND tar zxvf goahead-5.2.0.tar.gz
|
||||||
|
WORKING_DIRECTORY ${EXTERNAL_SOURCE_PATH}/goahead-5.2.0/
|
||||||
|
)
|
||||||
|
add_custom_command(
|
||||||
|
OUTPUT ${EXTERNAL_LIBS_OUTPUT_PATH}/libgo.a
|
||||||
|
DEPENDS ${EXTERNAL_SOURCE_PATH}/goahead-5.2.0/GoAhead/Makefile
|
||||||
|
COMMAND make CC=${CMAKE_C_COMPILER} ARCH=${SET_ARCH} PROFILE=static
|
||||||
|
COMMAND mv ${EXTERNAL_SOURCE_PATH}/goahead-5.2.0/GoAhead/build/linux-${SET_ARCH}-static/bin/libgo.a ${EXTERNAL_LIBS_OUTPUT_PATH}/libgo.a
|
||||||
|
WORKING_DIRECTORY ${EXTERNAL_SOURCE_PATH}/goahead-5.2.0/GoAhead
|
||||||
|
)
|
||||||
|
add_custom_target(
|
||||||
|
libgo.a
|
||||||
|
DEPENDS ${EXTERNAL_LIBS_OUTPUT_PATH}/libgo.a
|
||||||
|
)
|
BIN
external/goahead-5.2.0/goahead-5.2.0.tar.gz
vendored
Normal file
BIN
external/goahead-5.2.0/goahead-5.2.0.tar.gz
vendored
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user