compile tools.
This commit is contained in:
parent
d42b38c5dc
commit
af9dc3c906
6
Makefile
6
Makefile
|
@ -13,6 +13,12 @@ cmake_clean:
|
|||
clean_code:
|
||||
@rm -rf !(Makefile)
|
||||
|
||||
install_cmake:
|
||||
$(MAKE) -C tools/cmake all
|
||||
|
||||
compile_llvm:
|
||||
$(MAKE) -C tools/clang-tidy all
|
||||
|
||||
all:cmake
|
||||
$(MAKE) -C cmake-shell all
|
||||
|
||||
|
|
|
@ -7,6 +7,6 @@ add_definitions(-DAPP_MANAGER_HTTP_SERVER_IP=\"${APP_MANAGER_HTTP_SERVER_IP}\")
|
|||
if (NOT DEFINED APP_MANAGER_HTTP_SERVER_PORT)
|
||||
message(FATAL_ERROR "You should set http listen port.
|
||||
Example: set(APP_MANAGER_HTTP_SERVER_PORT \"8888\")
|
||||
Refer to:${CMAKE_SOURCE_DIR_IPCSDK}/builde/cmake/toolchain/linux.toolchain.cmake")
|
||||
Refer to:${IPC_SDK_PATH}/builde/cmake/toolchain/linux.toolchain.cmake")
|
||||
endif()
|
||||
add_definitions(-DAPP_MANAGER_HTTP_SERVER_PORT=${APP_MANAGER_HTTP_SERVER_PORT})
|
||||
|
|
1
tools/clang-tidy/.gitignore
vendored
Normal file
1
tools/clang-tidy/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
llvm-project
|
7
tools/clang-tidy/CMakeLists.txt
Normal file
7
tools/clang-tidy/CMakeLists.txt
Normal file
|
@ -0,0 +1,7 @@
|
|||
|
||||
add_custom_target(
|
||||
compile_llvm
|
||||
COMMAND echo "Compile llvm."
|
||||
COMMAND git clone https://github.com/llvm/llvm-project.git
|
||||
WORKING_DIRECTORY ${IPC_SDK_PATH}/tools/clang-tidy
|
||||
)
|
14
tools/clang-tidy/Makefile
Normal file
14
tools/clang-tidy/Makefile
Normal file
|
@ -0,0 +1,14 @@
|
|||
all:
|
||||
@if [ ! -d "llvm-project" ]; then \
|
||||
echo "llvm-project not exist"; \
|
||||
git clone https://github.com/llvm/llvm-project.git; \
|
||||
cd llvm-project/ && mkdir build; \
|
||||
cd llvm-project/build && cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DLLVM_TARGETS_TO_BUILD="X86" -DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra" ../llvm; \
|
||||
fi
|
||||
@if [ ! -d "llvm-project/build" ]; then \
|
||||
cd llvm-project/ && mkdir build; \
|
||||
fi
|
||||
# @git clone https://github.com/llvm/llvm-project.git
|
||||
# @cd llvm-project/ && mkdir build
|
||||
@cd llvm-project/build && cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DLLVM_TARGETS_TO_BUILD="X86" -DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra" ../llvm
|
||||
@cd llvm-project/build && make -j8
|
1
tools/cmake/.gitignore
vendored
Normal file
1
tools/cmake/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
cmake-3.27.4
|
8
tools/cmake/Makefile
Normal file
8
tools/cmake/Makefile
Normal file
|
@ -0,0 +1,8 @@
|
|||
all:
|
||||
@sudo apt-get update
|
||||
@sudo apt-get install openssl
|
||||
@sudo apt-get install libssl-dev
|
||||
@tar zxvf cmake-3.27.4.tar.gz
|
||||
@cd cmake-3.27.4/ && ./bootstrap
|
||||
@cd cmake-3.27.4/ && make
|
||||
@cd cmake-3.27.4/ && sudo make install
|
Loading…
Reference in New Issue
Block a user