//
//  app.xcconfig
//  app
//
//  Depends on setting of TARGETED_DEVICE_FAMILY, which must be set in the target properties
//  (appears in GUI as "Targeted Device Family" under the "Deployment" category).
//
//  At the very least, you should set a proper value for CONFIG_BUNDLE_DISPLAY_NAME.

#include "../../../core/projects/xcode/Core.xcconfig"
IPSP_CONFIGURATION = IPAD_DATA_LAYER
#include "../../../modules/ipsp/projects/xcode/ipsp.xcconfig"

// Application name as it appears on the home screen
CONFIG_BUNDLE_DISPLAY_NAME = The Sims 3 Deluxe

// .app name (unique per target to save on rebuilds)
PRODUCT_NAME = SIMS3_$(TARGETED_DEVICE_FAMILY_NAME)

// Bundle name in Info.plist
CONFIG_BUNDLE_NAME_IPAD = $(PRODUCT_NAME)
CONFIG_BUNDLE_NAME_IPHONE = $(PRODUCT_NAME)
CONFIG_BUNDLE_NAME_UNIVERSAL = $(PRODUCT_NAME)

// Default bundle ID for development.  Overridden by build_props when building on Jambuild
CONFIG_BUNDLE_ID = com.ea.sims3deluxe.ipad.inc

// NAJ = 466965151, ROW = 466966101
ITUNES_ID = 466965151

FACEBOOK_APP_ID_LIVE = 244518238972002
FACEBOOK_APP_ID_STAGE = 316162628447543

CONFIG_PRODUCT_ID = ea34463
CONFIG_SELL_ID = ea827119
PRODUCT_ID = 25880

// WDA (NA)
CONFIG_WDA_APPID = 6301D37C-3B88-4742-8AB2-A1254DBEBBC3
CONFIG_WDA_URLSCHEME = simsfreeplay001

// Info.plist is shared between all build configurations and targets by default
INFOPLIST_FILE = Info.plist

// Code signing identity is any developer until distribution
CODE_SIGN_IDENTITY[sdk=iphoneos*] = iPhone Developer

// Precompiled header is required for fast builds, and includes common headers into all source
// builds
GCC_PREFIX_HEADER = Prefix.pch

// Header search paths
PATH_APP = ../..
PATH_CORE = ../../../core
PATH_IPSP = ../../../modules/ipsp
PATH_BURSTLY = ../../../modules/burstly
PATH_CURL = ../../../modules/curl
PATH_FACEBOOK = ../../../modules/facebook
PATH_TWITTER = ../../../modules/twitter
PATH_CRASHLYTICS = ../../../modules/crashlytics
PATH_GAMECENTER = ../../../modules/gamecenter
PATH_CLOUDCELL = ../../../modules/Cloudcell
USER_HEADER_SEARCH_PATHS = $(PATH_CORE)/src $(PATH_APP)/src $(PATH_IPSP)/src $(PATH_BURSTLY)/src $(PATH_CURL)/src $(PATH_FACEBOOK)/src $(PATH_TWITTER)/src $(PATH_GAMECENTER)/src $(PATH_CLOUDCELL) $(PATH_CRASHLYTICS)/src

OTHER_LDFLAGS = $(inherited) -lz -ObjC -weak_framework UIKit -weak_library /usr/lib/libSystem.B.dylib

// Common symbols from Sims 3 Ambitions, required for compilation.  TODO remove these symbols from code; they are not meant to be configurable
SYMBOLS_BASE_APP_COMMON = USE_IPHONE USE_MULTILANG USE_OPENGLESRENDERER JSR184 IGNORE_VERTEX_NORMALS USE_3D USE_THREADED_LOOP USE_THEADED_LOADING DISABLE_CLEANING USE_EXTBUILD FEATURE_FISHING FEATURE_GARDENING  ENABLEDOOREDITS DEBUG_LOOKUPS USE_SOUND CHEAT_MODIFIABLE_TIME

// Symbols from Sims 3 Ambitions currently not enabled
SYMBOLS_BASE_APP_COMMON_DISABLED = USE_DMGFEATURE_IMPORTEXPORT MORE_GAMES USE_SOUND USE_EAMTXSTORE USE_SPYWARE 

// Custom preprocessor symbols for use by application only (not visible by Core)
SYMBOLS_BASE_APP_Debug = $(SYMBOLS_BASE_APP_COMMON) DEBUG_TOOLS CHEAT_MENU PERF_TOOLS MANUAL_ZOOM
SYMBOLS_BASE_APP_Release = $(SYMBOLS_BASE_APP_COMMON) MANUAL_ZOOM
SYMBOLS_BASE_APP_Dist = $(SYMBOLS_BASE_APP_COMMON) MANUAL_ZOOM
SYMBOLS_BASE_APP = $(SYMBOLS_TARGET) $(SYMBOLS_BASE_APP_$(CONFIGURATION)) $(IPSP_SYMBOLS)

// // Friendly targeted device family name from XCode's TARGETED_DEVICE_FAMILY enum
// Cannot read from TARGETED_DEVICE_FAMILY, as it is "1,2" for universal builds
TARGETED_DEVICE_FAMILY_NAME = UNIVERSAL

// Create IM_TARGET_* symbols
SYMBOLS_TARGET_IPHONE_IF_IPHONE = IM_TARGET_IPHONE
SYMBOLS_TARGET_IPHONE_IF_UNIVERSAL = IM_TARGET_IPHONE
SYMBOLS_TARGET_IPHONE = $(SYMBOLS_TARGET_IPHONE_IF_$(TARGETED_DEVICE_FAMILY_NAME))
SYMBOLS_TARGET_IPAD_IF_IPAD = IM_TARGET_IPAD
SYMBOLS_TARGET_IPAD_IF_UNIVERSAL = IM_TARGET_IPAD
SYMBOLS_TARGET_IPHONE = $(SYMBOLS_TARGET_IPAD_IF_$(TARGETED_DEVICE_FAMILY_NAME))
SYMBOLS_TARGET = $(SYMBOLS_TARGET_IPHONE) $(SYMBOLS_TARGET_IPAD)

OTHER_CFLAGS = $(CORE_OTHER_CFLAGS) -Wall -Wno-reorder -Wno-sign-compare -Wno-unknown-pragmas -Wno-deprecated-declarations
OTHER_CPLUSPLUSFLAGS = $(OTHER_CFLAGS)
