Skip to content

Commit 3db8635

Browse files
committed
[project] reorganize
1 parent eade9bb commit 3db8635

File tree

13 files changed

+669
-8
lines changed

13 files changed

+669
-8
lines changed
File renamed without changes.
File renamed without changes.

test/parser/build-config.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
var PEG = require('pegjs'),
2+
fs = require('fs'),
3+
pbx = fs.readFileSync('test/parser/projects/build-config.pbxproj', 'utf-8'),
4+
grammar = fs.readFileSync('lib/parser/pbxproj.pegjs', 'utf-8'),
5+
parser = PEG.buildParser(grammar),
6+
rawProj = parser.parse(pbx),
7+
project = rawProj.project;
8+
9+
exports['should parse the build config section'] = function (test) {
10+
// if it gets this far it's worked
11+
test.done();
12+
}

test/hash.js renamed to test/parser/hash.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
var PEG = require('pegjs'),
22
fs = require('fs'),
3-
pbx = fs.readFileSync('test/projects/hash.pbxproj', 'utf-8'),
4-
grammar = fs.readFileSync('pbxproj.pegjs', 'utf-8'),
3+
pbx = fs.readFileSync('test/parser/projects/hash.pbxproj', 'utf-8'),
4+
grammar = fs.readFileSync('lib/parser/pbxproj.pegjs', 'utf-8'),
55
parser = PEG.buildParser(grammar),
66
rawProj = parser.parse(pbx),
77
project = rawProj.project;
Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
// !$*UTF8*$!
2+
{
3+
archiveVersion = 1;
4+
classes = {
5+
};
6+
objectVersion = 45;
7+
objects = {
8+
9+
10+
/* Begin XCBuildConfiguration section */
11+
1D6058940D05DD3E006BFB54 /* Debug */ = {
12+
isa = XCBuildConfiguration;
13+
buildSettings = {
14+
ALWAYS_SEARCH_USER_PATHS = NO;
15+
ARCHS = (
16+
armv6,
17+
armv7,
18+
);
19+
COPY_PHASE_STRIP = NO;
20+
GCC_DYNAMIC_NO_PIC = NO;
21+
GCC_OPTIMIZATION_LEVEL = 0;
22+
GCC_PRECOMPILE_PREFIX_HEADER = YES;
23+
GCC_PREFIX_HEADER = "KitchenSinktablet-Prefix.pch";
24+
INFOPLIST_FILE = "KitchenSinktablet-Info.plist";
25+
IPHONEOS_DEPLOYMENT_TARGET = 3.0;
26+
ONLY_ACTIVE_ARCH = NO;
27+
PRODUCT_NAME = "KitchenSinktablet";
28+
TARGETED_DEVICE_FAMILY = "1,2";
29+
};
30+
name = Debug;
31+
};
32+
1D6058950D05DD3E006BFB54 /* Release */ = {
33+
isa = XCBuildConfiguration;
34+
buildSettings = {
35+
ALWAYS_SEARCH_USER_PATHS = NO;
36+
ARCHS = (
37+
armv6,
38+
armv7,
39+
);
40+
COPY_PHASE_STRIP = YES;
41+
GCC_PRECOMPILE_PREFIX_HEADER = YES;
42+
GCC_PREFIX_HEADER = "KitchenSinktablet-Prefix.pch";
43+
INFOPLIST_FILE = "KitchenSinktablet-Info.plist";
44+
IPHONEOS_DEPLOYMENT_TARGET = 3.0;
45+
ONLY_ACTIVE_ARCH = NO;
46+
PRODUCT_NAME = "KitchenSinktablet";
47+
TARGETED_DEVICE_FAMILY = "1,2";
48+
};
49+
name = Release;
50+
};
51+
C01FCF4F08A954540054247B /* Debug */ = {
52+
isa = XCBuildConfiguration;
53+
baseConfigurationReference = 307D28A1123043350040C0FA /* PhoneGapBuildSettings.xcconfig */;
54+
buildSettings = {
55+
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
56+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution";
57+
GCC_C_LANGUAGE_STANDARD = c99;
58+
GCC_VERSION = com.apple.compilers.llvmgcc42;
59+
GCC_WARN_ABOUT_RETURN_TYPE = YES;
60+
GCC_WARN_UNUSED_VARIABLE = YES;
61+
IPHONEOS_DEPLOYMENT_TARGET = 3.0;
62+
OTHER_LDFLAGS = (
63+
"-weak_framework",
64+
UIKit,
65+
"-weak_framework",
66+
AVFoundation,
67+
"-weak_framework",
68+
CoreMedia,
69+
"-weak_library",
70+
/usr/lib/libSystem.B.dylib,
71+
"-all_load",
72+
"-Obj-C",
73+
);
74+
PREBINDING = NO;
75+
SDKROOT = iphoneos;
76+
SKIP_INSTALL = NO;
77+
USER_HEADER_SEARCH_PATHS = "\"$(PHONEGAPLIB)/Classes/JSON\" \"$(PHONEGAPLIB)/Classes\"";
78+
};
79+
name = Debug;
80+
};
81+
C01FCF5008A954540054247B /* Release */ = {
82+
isa = XCBuildConfiguration;
83+
baseConfigurationReference = 307D28A1123043350040C0FA /* PhoneGapBuildSettings.xcconfig */;
84+
buildSettings = {
85+
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
86+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution";
87+
GCC_C_LANGUAGE_STANDARD = c99;
88+
GCC_VERSION = com.apple.compilers.llvmgcc42;
89+
GCC_WARN_ABOUT_RETURN_TYPE = YES;
90+
GCC_WARN_UNUSED_VARIABLE = YES;
91+
IPHONEOS_DEPLOYMENT_TARGET = 3.0;
92+
OTHER_LDFLAGS = (
93+
"-weak_framework",
94+
UIKit,
95+
"-weak_framework",
96+
AVFoundation,
97+
"-weak_framework",
98+
CoreMedia,
99+
"-weak_library",
100+
/usr/lib/libSystem.B.dylib,
101+
"-all_load",
102+
"-Obj-C",
103+
);
104+
PREBINDING = NO;
105+
SDKROOT = iphoneos;
106+
SKIP_INSTALL = NO;
107+
USER_HEADER_SEARCH_PATHS = "\"$(PHONEGAPLIB)/Classes/JSON\" \"$(PHONEGAPLIB)/Classes\"";
108+
};
109+
name = Release;
110+
};
111+
/* End XCBuildConfiguration section */
112+
113+
};
114+
rootObject = 29B97313FDCFA39411CA2CEA /* Project object */;
115+
}

test/parser/projects/full.pbxproj

Lines changed: 534 additions & 0 deletions
Large diffs are not rendered by default.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)