Skip to content

Commit

Permalink
Handle Makefile generation with Xcode generator.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghislain MARY committed Jun 20, 2016
1 parent c75ad5a commit eec0d49
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions prepare.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,17 +232,17 @@ def install_git_hook(self):
shutil.copyfile(".git-pre-commit", git_hook_path)
os.chmod(git_hook_path, 0755)

def generate_makefile(self, generator):
def generate_makefile(self, generator, project_file=''):
platforms = self.args.target
arch_targets = ""
for arch in platforms:
arch_targets += """
{arch}: {arch}-build
{arch}-build:
\t{generator} WORK/ios-{arch}/cmake
\t{generator} WORK/ios-{arch}/cmake/{project_file}
\t@echo "Done"
""".format(arch=arch, generator=generator)
""".format(arch=arch, generator=generator, project_file=project_file)
multiarch = ""
for arch in platforms[1:]:
multiarch += \
Expand Down

0 comments on commit eec0d49

Please sign in to comment.