From 4a47427abf3ac3830dcde317de3c69ffc756189c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B1=9F=E6=88=98?= <40414978+PatriceJiang@users.noreply.github.com> Date: Fri, 21 May 2021 17:53:41 +0800 Subject: [PATCH] [3.2] update external version (#3541) --- native/external/config.json | 4 ++-- native/utils/generate_compile_commands_mac.sh | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100755 native/utils/generate_compile_commands_mac.sh diff --git a/native/external/config.json b/native/external/config.json index 361680f87e..c5ea5ad6c6 100644 --- a/native/external/config.json +++ b/native/external/config.json @@ -1,9 +1,9 @@ { - "version": "v3d-gfx-45", + "version": "v3d-gfx-46", "from": { "type": "github", "owner": "cocos-creator", "name": "engine-native-external", - "checkout": "v3d-gfx-45" + "checkout": "v3d-gfx-46" } } diff --git a/native/utils/generate_compile_commands_mac.sh b/native/utils/generate_compile_commands_mac.sh new file mode 100755 index 0000000000..d379a1fc41 --- /dev/null +++ b/native/utils/generate_compile_commands_mac.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +mkdir -p build +cp utils/CMakeLists.header.txt build/CMakeLists.txt +cmake -Sbuild -Bbuild -DCC_USE_GLES2=OFF -DCC_USE_VULKAN=OFF -DCC_USE_GLES3=OFF -DCC_USE_METAL=ON \ + -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \ + -G"Unix Makefiles" +cp build/compile_commands.json . \ No newline at end of file