Force -s on ar in xcode builds
[ghc.git] / distrib / MacOS / GHC.xcodeproj / project.pbxproj
1 // !$*UTF8*$!
2 {
3         archiveVersion = 1;
4         classes = {
5         };
6         objectVersion = 44;
7         objects = {
8
9 /* Begin PBXBuildFile section */
10                 8D07F2C00486CC7A007CD1D0 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 089C1666FE841158C02AAC07 /* InfoPlist.strings */; };
11                 E72A15E90D54ADB90059C234 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 089C1666FE841158C02AAC07 /* InfoPlist.strings */; };
12 /* End PBXBuildFile section */
13
14 /* Begin PBXFileReference section */
15                 089C1667FE841158C02AAC07 /* English */ = {isa = PBXFileReference; fileEncoding = 10; lastKnownFileType = text.plist.strings; name = English; path = English.lproj/InfoPlist.strings; sourceTree = "<group>"; };
16                 8D07F2C70486CC7A007CD1D0 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist; path = Info.plist; sourceTree = "<group>"; };
17                 8D07F2C80486CC7A007CD1D0 /* GHC.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = GHC.framework; sourceTree = BUILT_PRODUCTS_DIR; };
18                 E72A15EE0D54ADB90059C234 /* GHC.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = GHC.framework; sourceTree = BUILT_PRODUCTS_DIR; };
19                 E72A15EF0D54ADB90059C234 /* Info copy.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Info copy.plist"; sourceTree = "<group>"; };
20 /* End PBXFileReference section */
21
22 /* Begin PBXGroup section */
23                 034768DDFF38A45A11DB9C8B /* Products */ = {
24                         isa = PBXGroup;
25                         children = (
26                                 8D07F2C80486CC7A007CD1D0 /* GHC.framework */,
27                                 E72A15EE0D54ADB90059C234 /* GHC.framework */,
28                         );
29                         name = Products;
30                         sourceTree = "<group>";
31                 };
32                 0867D691FE84028FC02AAC07 /* GHC */ = {
33                         isa = PBXGroup;
34                         children = (
35                                 08FB77ACFE841707C02AAC07 /* Source */,
36                                 089C1665FE841158C02AAC07 /* Resources */,
37                                 0867D69AFE84028FC02AAC07 /* External Frameworks and Libraries */,
38                                 034768DDFF38A45A11DB9C8B /* Products */,
39                         );
40                         name = GHC;
41                         sourceTree = "<group>";
42                 };
43                 0867D69AFE84028FC02AAC07 /* External Frameworks and Libraries */ = {
44                         isa = PBXGroup;
45                         children = (
46                         );
47                         name = "External Frameworks and Libraries";
48                         sourceTree = "<group>";
49                 };
50                 089C1665FE841158C02AAC07 /* Resources */ = {
51                         isa = PBXGroup;
52                         children = (
53                                 8D07F2C70486CC7A007CD1D0 /* Info.plist */,
54                                 089C1666FE841158C02AAC07 /* InfoPlist.strings */,
55                                 E72A15EF0D54ADB90059C234 /* Info copy.plist */,
56                         );
57                         name = Resources;
58                         sourceTree = "<group>";
59                 };
60                 08FB77ACFE841707C02AAC07 /* Source */ = {
61                         isa = PBXGroup;
62                         children = (
63                         );
64                         name = Source;
65                         sourceTree = "<group>";
66                 };
67 /* End PBXGroup section */
68
69 /* Begin PBXNativeTarget section */
70                 8D07F2BC0486CC7A007CD1D0 /* GHC-relocatable */ = {
71                         isa = PBXNativeTarget;
72                         buildConfigurationList = 4FADC24208B4156D00ABE55E /* Build configuration list for PBXNativeTarget "GHC-relocatable" */;
73                         buildPhases = (
74                                 8D07F2BF0486CC7A007CD1D0 /* Resources */,
75                                 E76B00450D52DFDB00A05A2F /* ShellScript */,
76                         );
77                         buildRules = (
78                         );
79                         comments = "Supported targets: build\n\nPrecondition: Fully compiled tree (i.e., \"sh boot; ./configure; make\" was already executed)\n\nThis project creates a Mac OS X framework that encapsulates a *relocatable* *binary* GHC distribution.\n\n*  The framework is versioned using GHC's ProjectVersionInt. and we call the current version directory in the following CONTENTS_FOLDER_BUILD.\n\n* This target installs into CONTENTS_FOLDER_BUILD/ghc/ the same contents that is in a binary-dist tar ball.\n\n* The idea is that at framework installation time, a post install script will perform \n\n    ./configure --prefix=CONTENTS_FOLDER_INSTALL/usr; make install \n\n   in that ghc/ directory, where CONTENTS_FOLDER_INSTALL is the path that CONTENTS_FOLDER_BUILD has after the package containing the framework was installed by the package installer.  This effectively rellocates the ghc installation to its final destination.";
80                         dependencies = (
81                         );
82                         name = "GHC-relocatable";
83                         productInstallPath = "$(HOME)/Library/Frameworks";
84                         productName = GHC;
85                         productReference = 8D07F2C80486CC7A007CD1D0 /* GHC.framework */;
86                         productType = "com.apple.product-type.framework";
87                 };
88                 E72A15E70D54ADB90059C234 /* GHC-systemwide */ = {
89                         isa = PBXNativeTarget;
90                         buildConfigurationList = E72A15EB0D54ADB90059C234 /* Build configuration list for PBXNativeTarget "GHC-systemwide" */;
91                         buildPhases = (
92                                 E72A15E80D54ADB90059C234 /* Resources */,
93                                 E72A15EA0D54ADB90059C234 /* ShellScript */,
94                         );
95                         buildRules = (
96                         );
97                         comments = "Supported targets: build, install\n\nPrecondition: We are in a distribution tree, not a vanilla tree from darcs - i.e., \"sh boot\" was already executed.\n\nThis project creates a Mac OS X framework at /Library/Frameworks.\n\n*  The framework is versioned using GHC's ProjectVersionInt.\n\n* The target configures the tree for the deployment location and builds the tree.\n\n* This target installs the framework not into its final destination, but into a build directory using the DESTDIR feature of GHC build system (unless the deployment flag in the build rules is set).\n\n* The idea is that the framework at the build location is being turned into a package and the package installer eventually puts its at its final destination. \n\nTODO: build and install documentation";
98                         dependencies = (
99                         );
100                         name = "GHC-systemwide";
101                         productInstallPath = "$(HOME)/Library/Frameworks";
102                         productName = GHC;
103                         productReference = E72A15EE0D54ADB90059C234 /* GHC.framework */;
104                         productType = "com.apple.product-type.framework";
105                 };
106 /* End PBXNativeTarget section */
107
108 /* Begin PBXProject section */
109                 0867D690FE84028FC02AAC07 /* Project object */ = {
110                         isa = PBXProject;
111                         buildConfigurationList = 4FADC24608B4156D00ABE55E /* Build configuration list for PBXProject "GHC" */;
112                         compatibilityVersion = "Xcode 3.0";
113                         hasScannedForEncodings = 1;
114                         mainGroup = 0867D691FE84028FC02AAC07 /* GHC */;
115                         productRefGroup = 034768DDFF38A45A11DB9C8B /* Products */;
116                         projectDirPath = "";
117                         projectRoot = "";
118                         targets = (
119                                 E72A15E70D54ADB90059C234 /* GHC-systemwide */,
120                                 8D07F2BC0486CC7A007CD1D0 /* GHC-relocatable */,
121                         );
122                 };
123 /* End PBXProject section */
124
125 /* Begin PBXResourcesBuildPhase section */
126                 8D07F2BF0486CC7A007CD1D0 /* Resources */ = {
127                         isa = PBXResourcesBuildPhase;
128                         buildActionMask = 2147483647;
129                         files = (
130                                 8D07F2C00486CC7A007CD1D0 /* InfoPlist.strings in Resources */,
131                         );
132                         runOnlyForDeploymentPostprocessing = 0;
133                 };
134                 E72A15E80D54ADB90059C234 /* Resources */ = {
135                         isa = PBXResourcesBuildPhase;
136                         buildActionMask = 2147483647;
137                         files = (
138                                 E72A15E90D54ADB90059C234 /* InfoPlist.strings in Resources */,
139                         );
140                         runOnlyForDeploymentPostprocessing = 0;
141                 };
142 /* End PBXResourcesBuildPhase section */
143
144 /* Begin PBXShellScriptBuildPhase section */
145                 E72A15EA0D54ADB90059C234 /* ShellScript */ = {
146                         isa = PBXShellScriptBuildPhase;
147                         buildActionMask = 2147483647;
148                         comments = "Build and install both code and documentation.  Building includes configuring the tree with the right prefix.\n\nNB: Why use a run script build phase instead of an external target (with a dependency)?  Because we need to be underneath the GHC target to get the right build settings.";
149                         files = (
150                         );
151                         inputPaths = (
152                         );
153                         outputPaths = (
154                         );
155                         runOnlyForDeploymentPostprocessing = 0;
156                         shellPath = /bin/sh;
157                         shellScript = "# We need to be at the top of the ghc tree\ncd ../..\n\nPREFIX=${INSTALL_PATH}/${CONTENTS_FOLDER_PATH}/usr\n\nif [ ${ACTION} = build ]; then\n  ./configure --prefix=${PREFIX}\n  MAKE_ACTION=\n  DOCS_ACTION=html\nelse\n  MAKE_ACTION=${ACTION}\n  DOCS_ACTION=install-docs\nfi\n\n# - Yes, it's the vanilla install target that must see HADDOCK_DOCS=YES, not the install-docs target.\n# - We must explictly force the creation of a symbol table in .a files on BSD, and not all versions of Cabal\n#   do that consistently; hence, the EXTRA_AR_ARGS.\nmake DESTDIR=${DSTROOT} HADDOCK_DOCS=YES EXTRA_AR_ARGS=-s ${MAKE_ACTION}\nmake DESTDIR=${DSTROOT} XMLDocWays=html ${DOCS_ACTION}";
158                 };
159                 E76B00450D52DFDB00A05A2F /* ShellScript */ = {
160                         isa = PBXShellScriptBuildPhase;
161                         buildActionMask = 2147483647;
162                         comments = "Generate the binary distribution tree.";
163                         files = (
164                         );
165                         inputPaths = (
166                         );
167                         outputPaths = (
168                                 "$(TARGET_BUILD_DIR)/$(CONTENTS_FOLDER_PATH)/ghc",
169                         );
170                         runOnlyForDeploymentPostprocessing = 0;
171                         shellPath = /bin/sh;
172                         shellScript = "if [ ${ACTION} = build ]; then\n  make -C ../.. BIN_DIST_TOPDIR_ABS=${TARGET_BUILD_DIR}/${CONTENTS_FOLDER_PATH} BIN_DIST_NAME=ghc binary-dist\nfi\n";
173                 };
174 /* End PBXShellScriptBuildPhase section */
175
176 /* Begin PBXVariantGroup section */
177                 089C1666FE841158C02AAC07 /* InfoPlist.strings */ = {
178                         isa = PBXVariantGroup;
179                         children = (
180                                 089C1667FE841158C02AAC07 /* English */,
181                         );
182                         name = InfoPlist.strings;
183                         sourceTree = "<group>";
184                 };
185 /* End PBXVariantGroup section */
186
187 /* Begin XCBuildConfiguration section */
188                 4FADC24308B4156D00ABE55E /* Debug */ = {
189                         isa = XCBuildConfiguration;
190                         buildSettings = {
191                                 COPY_PHASE_STRIP = NO;
192                                 DYLIB_COMPATIBILITY_VERSION = 1;
193                                 DYLIB_CURRENT_VERSION = 1;
194                                 FRAMEWORK_VERSION = A;
195                                 GCC_DYNAMIC_NO_PIC = NO;
196                                 GCC_ENABLE_FIX_AND_CONTINUE = YES;
197                                 GCC_MODEL_TUNING = G5;
198                                 GCC_OPTIMIZATION_LEVEL = 0;
199                                 GCC_PRECOMPILE_PREFIX_HEADER = YES;
200                                 GCC_PREFIX_HEADER = GHC_Prefix.pch;
201                                 INFOPLIST_FILE = Info.plist;
202                                 INSTALL_PATH = "$(HOME)/Library/Frameworks";
203                                 LIBRARY_STYLE = DYNAMIC;
204                                 MACH_O_TYPE = mh_dylib;
205                                 PRODUCT_NAME = GHC;
206                                 WRAPPER_EXTENSION = framework;
207                                 ZERO_LINK = YES;
208                         };
209                         name = Debug;
210                 };
211                 4FADC24408B4156D00ABE55E /* Release */ = {
212                         isa = XCBuildConfiguration;
213                         buildSettings = {
214                                 ARCHS = (
215                                         ppc,
216                                         i386,
217                                 );
218                                 DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
219                                 DYLIB_COMPATIBILITY_VERSION = 1;
220                                 DYLIB_CURRENT_VERSION = 1;
221                                 FRAMEWORK_VERSION = A;
222                                 GCC_MODEL_TUNING = G5;
223                                 GCC_PRECOMPILE_PREFIX_HEADER = YES;
224                                 GCC_PREFIX_HEADER = GHC_Prefix.pch;
225                                 INFOPLIST_FILE = Info.plist;
226                                 INSTALL_PATH = "$(HOME)/Library/Frameworks";
227                                 LIBRARY_STYLE = DYNAMIC;
228                                 MACH_O_TYPE = mh_dylib;
229                                 PRODUCT_NAME = GHC;
230                                 VERSIONING_SYSTEM = "";
231                                 WRAPPER_EXTENSION = framework;
232                         };
233                         name = Release;
234                 };
235                 4FADC24708B4156D00ABE55E /* Debug */ = {
236                         isa = XCBuildConfiguration;
237                         buildSettings = {
238                                 GCC_WARN_ABOUT_RETURN_TYPE = YES;
239                                 GCC_WARN_UNUSED_VARIABLE = YES;
240                                 PREBINDING = NO;
241                                 SDKROOT = "$(DEVELOPER_SDK_DIR)/MacOSX10.5.sdk";
242                         };
243                         name = Debug;
244                 };
245                 4FADC24808B4156D00ABE55E /* Release */ = {
246                         isa = XCBuildConfiguration;
247                         buildSettings = {
248                                 GCC_WARN_ABOUT_RETURN_TYPE = YES;
249                                 GCC_WARN_UNUSED_VARIABLE = YES;
250                                 PREBINDING = NO;
251                                 SDKROOT = "$(DEVELOPER_SDK_DIR)/MacOSX10.5.sdk";
252                                 SHORT_VERSION_STRING = "";
253                         };
254                         name = Release;
255                 };
256                 E72A15EC0D54ADB90059C234 /* Debug */ = {
257                         isa = XCBuildConfiguration;
258                         buildSettings = {
259                                 COPY_PHASE_STRIP = NO;
260                                 DYLIB_COMPATIBILITY_VERSION = 1;
261                                 DYLIB_CURRENT_VERSION = 1;
262                                 FRAMEWORK_VERSION = A;
263                                 GCC_DYNAMIC_NO_PIC = NO;
264                                 GCC_ENABLE_FIX_AND_CONTINUE = YES;
265                                 GCC_MODEL_TUNING = G5;
266                                 GCC_OPTIMIZATION_LEVEL = 0;
267                                 GCC_PRECOMPILE_PREFIX_HEADER = YES;
268                                 GCC_PREFIX_HEADER = GHC_Prefix.pch;
269                                 INFOPLIST_FILE = "/Users/chak/Code/ghc/distrib/MacOS/Info copy.plist";
270                                 INSTALL_PATH = "$(HOME)/Library/Frameworks";
271                                 LIBRARY_STYLE = DYNAMIC;
272                                 MACH_O_TYPE = mh_dylib;
273                                 PRODUCT_NAME = GHC;
274                                 WRAPPER_EXTENSION = framework;
275                                 ZERO_LINK = YES;
276                         };
277                         name = Debug;
278                 };
279                 E72A15ED0D54ADB90059C234 /* Release */ = {
280                         isa = XCBuildConfiguration;
281                         buildSettings = {
282                                 ARCHS = (
283                                         ppc,
284                                         i386,
285                                 );
286                                 DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
287                                 DYLIB_COMPATIBILITY_VERSION = 1;
288                                 DYLIB_CURRENT_VERSION = 1;
289                                 FRAMEWORK_VERSION = A;
290                                 GCC_MODEL_TUNING = G5;
291                                 GCC_PRECOMPILE_PREFIX_HEADER = YES;
292                                 GCC_PREFIX_HEADER = GHC_Prefix.pch;
293                                 INFOPLIST_FILE = "/Users/chak/Code/ghc/distrib/MacOS/Info copy.plist";
294                                 INSTALL_PATH = /Library/Frameworks;
295                                 LIBRARY_STYLE = DYNAMIC;
296                                 MACH_O_TYPE = mh_dylib;
297                                 PRODUCT_NAME = GHC;
298                                 VERSIONING_SYSTEM = "";
299                                 WRAPPER_EXTENSION = framework;
300                         };
301                         name = Release;
302                 };
303 /* End XCBuildConfiguration section */
304
305 /* Begin XCConfigurationList section */
306                 4FADC24208B4156D00ABE55E /* Build configuration list for PBXNativeTarget "GHC-relocatable" */ = {
307                         isa = XCConfigurationList;
308                         buildConfigurations = (
309                                 4FADC24308B4156D00ABE55E /* Debug */,
310                                 4FADC24408B4156D00ABE55E /* Release */,
311                         );
312                         defaultConfigurationIsVisible = 0;
313                         defaultConfigurationName = Release;
314                 };
315                 4FADC24608B4156D00ABE55E /* Build configuration list for PBXProject "GHC" */ = {
316                         isa = XCConfigurationList;
317                         buildConfigurations = (
318                                 4FADC24708B4156D00ABE55E /* Debug */,
319                                 4FADC24808B4156D00ABE55E /* Release */,
320                         );
321                         defaultConfigurationIsVisible = 0;
322                         defaultConfigurationName = Release;
323                 };
324                 E72A15EB0D54ADB90059C234 /* Build configuration list for PBXNativeTarget "GHC-systemwide" */ = {
325                         isa = XCConfigurationList;
326                         buildConfigurations = (
327                                 E72A15EC0D54ADB90059C234 /* Debug */,
328                                 E72A15ED0D54ADB90059C234 /* Release */,
329                         );
330                         defaultConfigurationIsVisible = 0;
331                         defaultConfigurationName = Release;
332                 };
333 /* End XCConfigurationList section */
334         };
335         rootObject = 0867D690FE84028FC02AAC07 /* Project object */;
336 }