|
1 | 1 | var path = require('path'), |
| 2 | + util = require('util'), |
2 | 3 | M_EXTENSION = /[.]m$/, SOURCE_FILE = 'sourcecode.c.objc', |
3 | 4 | H_EXTENSION = /[.]h$/, HEADER_FILE = 'sourcecode.c.h', |
4 | 5 | BUNDLE_EXTENSION = /[.]bundle$/, BUNDLE = '"wrapper.plug-in"', |
5 | 6 | XIB_EXTENSION = /[.]xib$/, XIB_FILE = 'file.xib', |
6 | 7 | DYLIB_EXTENSION = /[.]dylib$/, DYLIB = '"compiled.mach-o.dylib"', |
7 | | - FRAMEWORK_EXTENSION = /[.]framework/, FRAMEWORK = 'wrapper.framework', |
| 8 | + FRAMEWORK_EXTENSION = /[.]framework$/, FRAMEWORK = 'wrapper.framework', |
8 | 9 | ARCHIVE_EXTENSION = /[.]a$/, ARCHIVE = 'archive.ar', |
9 | 10 | PNG_EXTENSION = /[.]png/, PNG_IMAGE = "image.png", |
10 | 11 | DEFAULT_SOURCE_TREE = '"<group>"', |
@@ -97,7 +98,7 @@ function pbxFile(filepath, opt) { |
97 | 98 | if (opt.compilerFlags) { |
98 | 99 | if (!this.settings) |
99 | 100 | this.settings = {}; |
100 | | - this.settings.COMPILER_FLAGS = opt.compilerFlags; |
| 101 | + this.settings.COMPILER_FLAGS = util.format('"%s"', opt.compilerFlags); |
101 | 102 | } |
102 | 103 | } |
103 | 104 |
|
|
0 commit comments