Here are some variables you can use when creating custom build phases and conditional build settings:
ACTION
is the name of the build action being performed (such as clean
, build
, install
, installhdrs
, installsrc
)
PRODUCT_NAME
is the name of the product being built without its extension.
TARGET_NAME
is the name of the target being built.
SRCROOT
is the directory where Project Builder stores the source code when installing the target
OBJROOT
is the directory for your project's intermediate files.
SYMROOT
is the directory for your target's product.
DSTROOT
and INSTALL_PATH
determine where the target is installed. The destination is the concatenation of DSTROOT
and INSTALL_PATH
.
INSTALL_OWNER
is the account name for the owner of the target's product. The default is root.
INSTALL_GROUP
is the group name for the owner of the target's product. The default is wheel.
INSTALL_MODE_FLAG
specifies the chmod
flags for the target's product. The default is a-w,a+rX
.
TEMP_FILES_DIR
is the directory for your target's intermediate files.
DERIVED_SOURCES_DIR
specifies the directory for temporary, generated source code files.
LOCAL_ADMIN_APPS_DIR
is the directory for administration applications available to all users.
LOCAL_APPS_DIR
is the directory for general-purpose applications available to all users
LOCAL_DEVELOPER_DIR
is the directory for developer applications available to all users.
LOCAL_LIBRARY_DIR
is the directory for libraries available to all users.
USER_APPS_DIR
is the directory for applications available only to the user currently logged-in.
USER_LIBRARY_DIR
is the directory for libraries available only to the user currently logged-in.
Creating Conditional Build Settings
Creating a Scripting Build Phase