2014-04-11 10:48:37 +03:00
|
|
|
include build/platform-arch.mk
|
|
|
|
ifeq ($(ASM_ARCH), x86)
|
|
|
|
ifeq ($(ENABLE64BIT), Yes)
|
|
|
|
ASMFLAGS += -f win64
|
|
|
|
ASMFLAGS_PLATFORM = -DWIN64
|
|
|
|
else
|
|
|
|
ASMFLAGS += -f win32 -DPREFIX
|
|
|
|
endif
|
|
|
|
else
|
|
|
|
endif
|
|
|
|
ifeq ($(ASM_ARCH), arm)
|
|
|
|
CCAS = gas-preprocessor.pl -as-type armasm -force-thumb -- armasm
|
2014-05-08 14:07:54 +03:00
|
|
|
CCASFLAGS = -nologo -DHAVE_NEON
|
2014-04-11 10:48:37 +03:00
|
|
|
endif
|
|
|
|
|
2014-02-12 22:12:33 +02:00
|
|
|
CC=cl
|
2013-12-28 00:01:38 +02:00
|
|
|
CXX=cl
|
|
|
|
AR=lib
|
|
|
|
CXX_O=-Fo$@
|
2014-05-16 08:53:59 +03:00
|
|
|
# -D_VARIADIC_MAX=10 is required to fix building gtest on MSVC 2012, but
|
|
|
|
# since we don't (easily) know which version of MSVC we use here, we add
|
|
|
|
# it unconditionally. The same issue can also be worked around by adding
|
|
|
|
# -DGTEST_HAS_TR1_TUPLE=0 instead, but we prefer this version since it
|
|
|
|
# matches what gtest itself does.
|
2014-05-06 11:14:41 +03:00
|
|
|
CFLAGS += -nologo -W3 -EHsc -fp:precise -Zc:wchar_t -Zc:forScope -D_VARIADIC_MAX=10
|
2013-12-28 00:01:38 +02:00
|
|
|
CXX_LINK_O=-nologo -Fe$@
|
|
|
|
AR_OPTS=-nologo -out:$@
|
2014-04-09 18:46:42 -07:00
|
|
|
CFLAGS_OPT=-O2 -Ob1 -Oy- -Zi -GF -Gm- -GS -Gy -DNDEBUG
|
2014-04-29 11:40:32 +03:00
|
|
|
CFLAGS_DEBUG=-Od -Oy- -ZI -RTC1 -D_DEBUG
|
2013-12-28 00:01:38 +02:00
|
|
|
CFLAGS_M32=
|
|
|
|
CFLAGS_M64=
|
|
|
|
LINK_LIB=$(1).lib
|
|
|
|
LIBSUFFIX=lib
|
|
|
|
LIBPREFIX=
|
2014-01-23 16:14:09 +02:00
|
|
|
EXEEXT=.exe
|
2014-03-18 11:21:46 +02:00
|
|
|
OBJ=obj
|
2014-02-19 11:51:50 +02:00
|
|
|
SHAREDLIBSUFFIX=dll
|
|
|
|
SHARED=-LD
|
2014-05-04 15:55:17 +03:00
|
|
|
SHLDFLAGS=-link -def:openh264.def -implib:$(PROJECT_NAME)_dll.lib
|
2014-05-04 15:54:16 +03:00
|
|
|
EXTRA_LIBRARY=$(PROJECT_NAME)_dll.lib
|