-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.ninja
165 lines (147 loc) · 5.71 KB
/
build.ninja
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
name = Chapters
lowername = chapters
# Build file for Chapters
# Generated at 01/04/21 20:29:15
stagedir = _
location = /Library/MobileSubstrate/DynamicLibraries/
dragondir = $$DRAGONBUILD
sysroot = -isysroot $dragondir/sdks/iPhoneOS.sdk
proj_build_dir = .dragon
objdir = $proj_build_dir/obj
signdir = $proj_build_dir/sign
builddir = $proj_build_dir/build
build_target_file = $proj_build_dir/$stagedir/$location$name.dylib
pwd = .
resource_dir = Resources
toolchain-prefix = arm64-apple-darwin14-
stage = mkdir -p .dragon/_/Library/PreferenceBundles/ChaptersPrefs.bundle; $
cp [email protected] $
.dragon/_/Library/PreferenceBundles/ChaptersPrefs.bundle; cp $
Prefs.plist $
.dragon/_/Library/PreferenceBundles/ChaptersPrefs.bundle/Info.plist; cp $
HomePlus.plist .dragon/_/Library/PreferenceBundles/ChaptersPrefs.bundle
stage2 = cp $name.plist $
$proj_build_dir/_/Library/MobileSubstrate/DynamicLibraries/$name.plist
internalsigntarget = $signdir/$build_target_file.unsigned
internalsymtarget = $signdir/$build_target_file.unsym
fwSearch = -F$dragondir/sdks/iPhoneOS.sdk/System/Library/PrivateFrameworks/ $
-F$dragondir/frameworks
libSearch = -L$dragondir/lib -L.
modulesinternal = -fmodules -fcxx-modules -fmodule-name=$name $
-fbuild-session-file=$proj_build_dir/modules/ $
-fmodules-validate-once-per-build-session -fmodules-prune-after=345600 $
-fmodules-prune-interval=86400
cc = clang
codesign = ldid
cxx = clang++
dsym = dsymutil
ld = clang++
lipo = lipo
logos = $dragondir/src/logos/bin/logos.pl
optool = $dragondir/bin/optool
plutil = plutil
swift = swift
targetvers = 10.0
targetprefix = -miphoneos-version-min=
targetos = iphoneos
triple =
frameworks = -framework UIKit -framework Foundation
libs =
macros =
arc = -fobjc-arc
btarg =
debug = -fcolor-diagnostics
entfile =
entflag = -S
optim = 0
warnings = -Wall
cinclude = -I$dragondir/include -I$dragondir/vendor/include $
-I$dragondir/include/_fallback -I$DRAGONBUILD/headers/ -I$pwd
header_includes = -Iinclude/
public_headers =
usrCflags =
usrLDflags =
libflags =
lopts = -dynamiclib -ggdb -Xlinker -segalign -Xlinker 4000 -framework $
CydiaSubstrate
typeldflags =
cflags = -w
ldflags =
lflags =
lfflags =
swiftflags =
theosshim =
internalcflags = $cinclude $debug $fwSearch $cflags $btarg -O$optim $
$targetprefix$targetvers $sysroot $header_includes $arc $triple $
$theosshim $macros $warnings $modulesinternal
internalldflags = $internalcflags $typeldflags $frameworks $libs $libflags $
$lopts $libSearch $ldflags $libs
internallflags =
internallfflags =
internalswiftflags = -color-diagnostics -enable-objc-interop -sdk $
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk $
-L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos $
-g -L/usr/lib/swift -swift-version 5 -module-name $name
rule linkarmv7
command = $ld -arch armv7 $internallflags $internalldflags -o $out $in
description = Linking $in with $ld [armv7]
rule linkarm64
command = $ld -arch arm64 $internallflags $internalldflags -o $out $in
description = Linking $in with $ld [arm64]
rule linkarm64e
command = $ld -arch arm64e $internallflags $internalldflags -o $out $in
description = Linking $in with $ld [arm64e]
rule objcxxarmv7
command = $cxx -arch armv7 $internalcflags -c $in -o $out
description = Compiling $in with $cxx [armv7]
rule lipo
command = $lipo -create $in -output $out
description = Merging architechtures
rule objcxxarm64e
command = $cxx -arch arm64e $internalcflags -c $in -o $out
description = Compiling $in with $cxx [arm64e]
rule debug
command = $dsym \"$in\" 2&> /dev/null; cp $in $out
description = Generating Debug Symbols for $name
rule stage
command = $stage && $stage2
description = Running Stage for $name
rule objcarm64
command = $cc -arch arm64 $internalcflags -c $in -o $out
description = Compiling $in with $cc [arm64]
rule objcarmv7
command = $cc -arch armv7 $internalcflags -c $in -o $out
description = Compiling $in with $cc [armv7]
rule sign
command = $codesign $entflag$entfile $in && cp $in $out
description = Signing $name
rule objcarm64e
command = $cc -arch arm64e $internalcflags -c $in -o $out
description = Compiling $in with $cc [arm64e]
rule objcxxarm64
command = $cxx -arch arm64 $internalcflags -c $in -o $out
description = Compiling $in with $cxx [arm64]
build $builddir/armv7/CHPManager.m.o: objcarmv7 Chapters/CHPManager.m
build $builddir/armv7/CHPPageLabelView.m.o: objcarmv7 $
Chapters/CHPPageLabelView.m
build $builddir/armv7/Chapters.mm.o: objcxxarmv7 Chapters.mm
build $builddir/$name.armv7: linkarmv7 $builddir/armv7/CHPManager.m.o $
$builddir/armv7/CHPPageLabelView.m.o $builddir/armv7/Chapters.mm.o
build $builddir/arm64/CHPManager.m.o: objcarm64 Chapters/CHPManager.m
build $builddir/arm64/CHPPageLabelView.m.o: objcarm64 $
Chapters/CHPPageLabelView.m
build $builddir/arm64/Chapters.mm.o: objcxxarm64 Chapters.mm
build $builddir/$name.arm64: linkarm64 $builddir/arm64/CHPManager.m.o $
$builddir/arm64/CHPPageLabelView.m.o $builddir/arm64/Chapters.mm.o
build $builddir/arm64e/CHPManager.m.o: objcarm64e Chapters/CHPManager.m
build $builddir/arm64e/CHPPageLabelView.m.o: objcarm64e $
Chapters/CHPPageLabelView.m
build $builddir/arm64e/Chapters.mm.o: objcxxarm64e Chapters.mm
build $builddir/$name.arm64e: linkarm64e $builddir/arm64e/CHPManager.m.o $
$builddir/arm64e/CHPPageLabelView.m.o $builddir/arm64e/Chapters.mm.o
build $internalsymtarget: lipo $builddir/$name.armv7 $builddir/$name.arm64 $
$builddir/$name.arm64e
build $internalsigntarget: debug $internalsymtarget
build $build_target_file: sign $internalsigntarget
build stage: stage build.ninja
default $build_target_file