#!/bin/sh # Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # This script is a convenience to run GYP for /src/chrome/chrome_nibs.gyp # with the Xcode generator (as you likely use ninja). Documentation: # http://dev.chromium.org/developers/design-documents/mac-xib-files set -e global RELSRC := "$[dirname $0]/../.." global SRC := $[cd $RELSRC && pwd] export PYTHONPATH="$PYTHONPATH:$SRC/build" export GYP_GENERATORS=xcode "$SRC/tools/gyp/gyp" -I"$SRC/build/common.gypi" "$SRC/chrome/chrome_nibs.gyp" echo "You can now edit XIB files in Xcode using:" echo " $SRC/chrome/chrome_nibs.xcodeproj" (CommandList children: [ (C {(set)} {(-e)}) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:RELSRC) op: Equal rhs: { (CommandSubPart command_list: (CommandList children:[(C {(dirname)} {(DQ ($ VSub_Number "$0"))})]) left_token: spids: [30 36] ) (/../..) } spids: [29] ) ] spids: [29] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:SRC) op: Equal rhs: { (CommandSubPart command_list: (CommandList children: [ (AndOr children: [(C {(cd)} {(DQ ($ VSub_Name "$RELSRC"))}) (C {(pwd)})] op_id: Op_DAmp ) ] ) left_token: spids: [40 50] ) } spids: [39] ) ] spids: [39] ) (C {(export)} {(Lit_VarLike "PYTHONPATH=") (DQ ($ VSub_Name "$PYTHONPATH") (":") ($ VSub_Name "$SRC") (/build)) } ) (C {(export)} {(Lit_VarLike "GYP_GENERATORS=") (xcode)}) (C {(DQ ($ VSub_Name "$SRC") (/tools/gyp/gyp))} {(-I) (DQ ($ VSub_Name "$SRC") (/build/common.gypi))} {(DQ ($ VSub_Name "$SRC") (/chrome/chrome_nibs.gyp))} ) (C {(echo)} {(DQ ("You can now edit XIB files in Xcode using:"))}) (C {(echo)} {(DQ (" ") ($ VSub_Name "$SRC") (/chrome/chrome_nibs.xcodeproj))}) ] )