From a5083e80b01504769ea79643d9df7aa56f7a0e02 Mon Sep 17 00:00:00 2001 From: johnche Date: Thu, 12 Dec 2024 16:18:49 +0800 Subject: [PATCH] =?UTF-8?q?ios=E4=B8=8B=E7=BC=96=E8=AF=91=E9=9D=99?= =?UTF-8?q?=E6=80=81=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1739fca..2146c6e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -135,7 +135,11 @@ if(NOT MSVC) list(APPEND qjs_libs m) endif() -add_library(PapiQjs SHARED ${qjs_sources} ${eastl_headers} ${eastl_sources}) +if ( APPLE AND IOS ) + add_library(PapiQjs STATIC ${qjs_sources} ${eastl_headers} ${eastl_sources}) +else () + add_library(PapiQjs SHARED ${qjs_sources} ${eastl_headers} ${eastl_sources}) +endif() target_compile_definitions(PapiQjs PRIVATE ${qjs_defines}) target_include_directories(PapiQjs PUBLIC $