2014-04-11 10:48:37 +03:00
|
|
|
ARCH = arm
|
2014-10-22 10:18:53 +03:00
|
|
|
include $(SRC_PATH)build/msvc-common.mk
|
2014-04-09 18:46:42 -07:00
|
|
|
CFLAGS_OPT += -MD
|
2014-04-11 10:14:31 +03:00
|
|
|
CFLAGS_DEBUG += -MDd
|
2015-04-17 14:10:12 +08:00
|
|
|
CFLAGS += -DWINAPI_FAMILY=WINAPI_FAMILY_PHONE_APP -DWINDOWS_PHONE
|
2015-03-13 12:20:17 +02:00
|
|
|
# Ignore warnings about the main function prototype when building with -ZW
|
|
|
|
CXXFLAGS += -ZW -wd4447
|
|
|
|
LDFLAGS += -nodefaultlib:kernel32.lib -nodefaultlib:ole32.lib WindowsPhoneCore.lib
|
2015-04-17 14:10:12 +08:00
|
|
|
UTSHLDFLAGS=-def:ut.def
|
2015-03-13 12:20:17 +02:00
|
|
|
# Ignore warnings about code built with -ZW in .lib files
|
|
|
|
AR_OPTS += -ignore:4264
|
2014-04-29 11:03:17 +03:00
|
|
|
|
2015-03-13 12:20:17 +02:00
|
|
|
# WelsThreadLib requires building with -ZW, since it uses new Windows Runtime
|
|
|
|
# classes for creating threads.
|
|
|
|
# If linking an .exe that contains Windows Runtime code, the first object
|
|
|
|
# file linked into the exe also needs to be built with -ZW (otherwise the build
|
|
|
|
# fails with "vccorlib_lib_should_be_specified_before_msvcrt_lib_to_linker",
|
|
|
|
# so set it on all files.
|