aboutsummaryrefslogtreecommitdiff
path: root/backends.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2014-03-28 23:42:01 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2014-03-28 23:42:01 +0200
commitb549875b68bc13e7af6dc436763027fc6e74ca8b (patch)
tree5e6f52ee214b67adfc3590b805aadaabf9659bef /backends.py
parent6f5a16176fdcc30c00b816ddb10933db422b65c0 (diff)
downloadmeson-b549875b68bc13e7af6dc436763027fc6e74ca8b.zip
meson-b549875b68bc13e7af6dc436763027fc6e74ca8b.tar.gz
meson-b549875b68bc13e7af6dc436763027fc6e74ca8b.tar.bz2
Finally can generate an entire xcodeproj file. Next up: debugging it to work.
Diffstat (limited to 'backends.py')
-rw-r--r--backends.py34
1 files changed, 34 insertions, 0 deletions
diff --git a/backends.py b/backends.py
index 66a49d7..8b70f1e 100644
--- a/backends.py
+++ b/backends.py
@@ -2022,6 +2022,7 @@ class XCodeBackend(Backend):
self.write_line('name = %s;' % buildtype)
self.indent_level-=1
self.write_line('};')
+
# Then the all target.
for buildtype in self.buildtypes:
self.write_line('%s /* %s */ = {' % (self.buildall_configurations[buildtype], buildtype))
@@ -2049,6 +2050,39 @@ class XCodeBackend(Backend):
self.write_line('name = %s;' % buildtype)
self.indent_level-=1
self.write_line('};')
+
+ # Now finally targets.
+ for target_name, target in self.build.targets.items():
+ for buildtype in self.buildtypes:
+ valid = self.buildconfmap[target_name][buildtype]
+ self.write_line('%s /* %s */ = {' % (self.buildall_configurations[buildtype], buildtype))
+ self.indent_level+=1
+ self.write_line('isa = XCBuildConfiguration;')
+ self.write_line('buildSettings = {')
+ self.indent_level += 1
+ self.write_line('COMBINE_HIDPI_IMAGES = YES;')
+ self.write_line('EXECUTABLE_PREFIX = "%s";' % target.prefix)
+ self.write_line('EXECUTABLE_SUFFIX = "%s";' % target.suffix)
+ self.write_line('GCC_GENERATE_DEBUGGING_SYMBOLS = NO;')
+ self.write_line('GCC_INLINES_ARE_PRIVATE_EXTERN = NO;')
+ self.write_line('GCC_OPTIMIZATION_LEVEL = 0;')
+ self.write_line('GCC_PREPROCESSOR_DEFINITIONS = ("");')
+ self.write_line('GCC_SYMBOLS_PRIVATE_EXTERN = NO;')
+ self.write_line('INSTALL_PATH = "";')
+ self.write_line('LIBRARY_SEARCH_PATHS = "";')
+ self.write_line('OTHER_CFLAGS = " ";')
+ self.write_line('OTHER_LDFLAGS = " ";')
+ self.write_line('OTHER_REZFLAGS = "";')
+ self.write_line('PRODUCT_NAME = %s;' % target_name)
+ self.write_line('SECTORDER_FLAGS = "";')
+ self.write_line('SYMROOT = %s;' % self.environment.get_build_dir())
+ self.write_line('USE_HEADERMAP = NO;')
+ self.write_line('WARNING_CFLAGS = ("-Wmost", "-Wno-four-char-constants", "-Wno-unknown-pragmas", );')
+ self.indent_level-=1
+ self.write_line('};')
+ self.write_line('name = %s;' % buildtype)
+ self.indent_level-=1
+ self.write_line('};')
self.ofile.write('/* End XCBuildConfiguration section */\n')
def generate_xc_configurationList(self):