fix cmake build

This commit is contained in:
ekibun
2021-01-21 19:50:16 -08:00
parent 2d7156ffb2
commit 9bbb68441f
13 changed files with 25 additions and 73 deletions

View File

@@ -14,13 +14,12 @@ This plugin is a simple js engine for flutter using the `quickjs` project. Plugi
s.author = { 'ekibun' => 'soekibun@gmail.com' }
s.source = { :path => '.' }
s.compiler_flags = '-DDUMP_LEAKS'
s.source_files = ['Classes/**/*', 'cxx/*']
s.public_header_files = 'Classes/**/*.h'
s.source_files = ['Classes/**/*', 'cxx/*.{c,cpp}']
s.dependency 'Flutter'
s.platform = :ios, '8.0'
# Flutter.framework does not contain a i386 slice.
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' }
s.prepare_command = 'sh pre.sh'
s.prepare_command = 'sh ../cxx/prebuild.sh'
s.swift_version = '5.0'
end