mirror of
https://github.com/wgh136/flutter_qjs.git
synced 2025-09-27 05:27:23 +00:00
fix cmake build
This commit is contained in:
@@ -1,7 +0,0 @@
|
||||
cmake_minimum_required(VERSION 3.7 FATAL_ERROR)
|
||||
project(ffiquickjs LANGUAGES CXX)
|
||||
|
||||
include("${CMAKE_CURRENT_SOURCE_DIR}/../cxx/quickjs.cmake")
|
||||
|
||||
add_library(ffiquickjs SHARED ${CXX_LIB_DIR}/ffi.cpp)
|
||||
target_link_libraries(ffiquickjs PRIVATE quickjs)
|
@@ -13,12 +13,13 @@ This plugin is a simple js engine for flutter using the `quickjs` project. Plugi
|
||||
s.license = { :file => '../LICENSE' }
|
||||
s.author = { 'ekibun' => 'soekibun@gmail.com' }
|
||||
s.source = { :path => '.' }
|
||||
s.source_files = 'Classes/**/*'
|
||||
s.compiler_flags = '-DDUMP_LEAKS'
|
||||
s.source_files = ['Classes/**/*', 'cxx/*.{c,cpp}']
|
||||
s.dependency 'FlutterMacOS'
|
||||
|
||||
s.platform = :osx, '10.11'
|
||||
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' }
|
||||
s.vendored_libraries = 'build/Debug/libffiquickjs.dylib'
|
||||
s.prepare_command = 'sh make.sh'
|
||||
s.prepare_command = 'sh ../cxx/prebuild.sh'
|
||||
s.swift_version = '5.0'
|
||||
end
|
||||
|
@@ -1,12 +0,0 @@
|
||||
###
|
||||
# @Description:
|
||||
# @Author: ekibun
|
||||
# @Date: 2020-09-24 00:50:13
|
||||
# @LastEditors: ekibun
|
||||
# @LastEditTime: 2020-09-24 00:51:43
|
||||
###
|
||||
mkdir build
|
||||
cd build
|
||||
cmake .. -G Xcode -DCMAKE_OSX_ARCHITECTURES=x86_64
|
||||
cmake --build . --config Debug
|
||||
cd ..
|
Reference in New Issue
Block a user