forked from fealebenpae/node-xcode
-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathheader-search.js
More file actions
16 lines (14 loc) · 652 Bytes
/
header-search.js
File metadata and controls
16 lines (14 loc) · 652 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
var PEG = require('pegjs'),
fs = require('fs'),
pbx = fs.readFileSync('test/parser/projects/header-search.pbxproj', 'utf-8'),
grammar = fs.readFileSync('lib/parser/pbxproj.pegjs', 'utf-8'),
parser = PEG.buildParser(grammar),
rawProj = parser.parse(pbx),
project = rawProj.project;
exports['should read a decimal value correctly'] = function (test) {
var debug = project.objects['XCBuildConfiguration']['C01FCF4F08A954540054247B'],
hsPaths = debug.buildSettings['HEADER_SEARCH_PATHS'],
expected = '"\\"$(TARGET_BUILD_DIR)/usr/local/lib/include\\""';
test.equal(hsPaths[0], expected);
test.done();
}